[100912] trunk/dports/devel/libsdl/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Dec 31 13:27:13 PST 2012


Revision: 100912
          https://trac.macports.org/changeset/100912
Author:   jeremyhu at 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 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121231/1204669f/attachment.html>


More information about the macports-changes mailing list