Skip to content

Instantly share code, notes, and snippets.

@mkroehnert
Created September 17, 2010 17:48
Show Gist options
  • Save mkroehnert/584622 to your computer and use it in GitHub Desktop.
Save mkroehnert/584622 to your computer and use it in GitHub Desktop.
From 42e1a441b84340249a9793581825acce2167fda0 Mon Sep 17 00:00:00 2001
From: mkroehnert <mkroehnert@users.sourceforge.net>
Date: Fri, 17 Sep 2010 19:45:29 +0200
Subject: [PATCH] [subversion] fix building of perl/swig bindings on OS X 10.5.8
---
Library/Formula/subversion.rb | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index b55228c..764e5e3 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -104,8 +104,14 @@ class Subversion <Formula
arches = "-arch x86_64"
end
+ if MACOS_VERSION < 10.6
+ perl_version = "5.8.8"
+ else
+ perl_version = "5.10.0"
+ end
+
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
system "make swig-pl"
system "make install-swig-pl"
--
1.7.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment