Modified: trunk/dports/devel/libsdl/Portfile (100911 => 100912)
--- 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 \