Revision: 100912 https://trac.macports.org/changeset/100912 Author: jeremyhu@macports.org Date: 2012-12-31 13:27:13 -0800 (Mon, 31 Dec 2012) Log Message: ----------- libsdl: Address possible build failure, disable deprecated cocoa video Modified Paths: -------------- trunk/dports/devel/libsdl/Portfile Modified: trunk/dports/devel/libsdl/Portfile =================================================================== --- trunk/dports/devel/libsdl/Portfile 2012-12-31 20:50:50 UTC (rev 100911) +++ trunk/dports/devel/libsdl/Portfile 2012-12-31 21:27:13 UTC (rev 100912) @@ -9,6 +9,7 @@ name libsdl set my_name SDL version 1.2.15 +revision 1 categories devel multimedia platforms macosx freebsd license LGPL-2.1+ @@ -38,6 +39,17 @@ configure.args --disable-nasm \ --without-x +platform darwin { + if {${os.major} >= 12} { + configure.args-append --disable-video-cocoa + } + configure.ldflags-append -framework Carbon + + post-destroot { + reinplace "/Libs:/s/-lSDLmain/-lSDLmain -Wl,-framework,AppKit/" ${destroot}${prefix}/lib/pkgconfig/sdl.pc + } +} + variant x11 conflicts no_x11 { configure.args-delete --without-x configure.args-append --x-includes=${prefix}/include \