Skip to content

Instantly share code, notes, and snippets.

@sixones
Created August 17, 2009 13:51
Show Gist options
  • Save sixones/169127 to your computer and use it in GitHub Desktop.
Save sixones/169127 to your computer and use it in GitHub Desktop.
edit /opt/local/var/macports/sources/rsync.macports.org/releases/ports/devel/libsdl/Portfile
after line 40 paste:
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 LDGLAGS='-W1,-syslibroot,${sdkrootpath} -arch i386 -mmacosx-version-min=10.5'
}
end result (line 38-54):
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 LDGLAGS='-W1,-syslibroot,${sdkrootpath} -arch i386 -mmacosx-version-min=10.5'
}
variant no_x11 {
configure.args-append --without-x
depends_lib-delete \
port:xorg-libXext \
port:xorg-libXrandr \
port:xrender
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment