Fix Subversion + Perl compile on 10.5 [mkroehnert]

This commit is contained in:
Adam Vandenberg 2010-09-17 17:13:54 -07:00
parent 4c0adbc350
commit 3330efdd4b

View file

@ -104,8 +104,15 @@ class Subversion <Formula
arches = "-arch x86_64" arches = "-arch x86_64"
end end
# Use verison-appropriate system Perl
if MACOS_VERSION < 10.6
perl_version = "5.8.8"
else
perl_version = "5.10.0"
end
inreplace "Makefile" do |s| inreplace "Makefile" do |s|
s.change_make_var! "SWIG_PL_INCLUDES", "$(SWIG_INCLUDES) #{arches} -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" s.change_make_var! "SWIG_PL_INCLUDES", "$(SWIG_INCLUDES) #{arches} -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I/System/Library/Perl/#{perl_version}/darwin-thread-multi-2level/CORE"
end end
system "make swig-pl" system "make swig-pl"
system "make install-swig-pl" system "make install-swig-pl"
@ -118,7 +125,7 @@ class Subversion <Formula
end end
if build_ruby? if build_ruby?
ENV.j1 ENV.j1 # This build isn't parallel safe
system "make swig-rb" system "make swig-rb"
system "make install-swig-rb" system "make install-swig-rb"
end end