Skip to content

Instantly share code, notes, and snippets.

@sixones
Created August 25, 2009 11:36
Show Gist options
  • Save sixones/174647 to your computer and use it in GitHub Desktop.
Save sixones/174647 to your computer and use it in GitHub Desktop.
Index: Portfile
===================================================================
--- Portfile (revision 53834)
+++ Portfile (working copy)
@@ -38,6 +38,14 @@
configure.args --enable-shared \
--mandir=${prefix}/share/man
+platform darwin 10 {
+ set build_arch i386
+ set sdkrootpath /Developer/SDKs/MacOSX10.5.sdk
+
+ configure.cflags-append -isysroot ${sdkrootpath} -arch i386 -mmacosx-version-min=10.5
+ configure.env-append SHLIB_LDFLAGS='-Wl,-syslibroot,${sdkrootpath} -arch i386 -mmacosx-version-min=10.5'
+}
+
variant no_x11 {
configure.args-append --without-x
depends_lib-delete \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment