[71885] trunk/dports/games/PlasmaClient/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Sep 25 20:31:59 PDT 2010


Revision: 71885
          http://trac.macports.org/changeset/71885
Author:   ryandesign at macports.org
Date:     2010-09-25 20:31:55 -0700 (Sat, 25 Sep 2010)
Log Message:
-----------
PlasmaClient: specify the libsdl we want to link with, so we don't accidentally use an SDL.framework if the user has one; help Tiger find the right libsdl LDFLAGS

Modified Paths:
--------------
    trunk/dports/games/PlasmaClient/Portfile

Modified: trunk/dports/games/PlasmaClient/Portfile
===================================================================
--- trunk/dports/games/PlasmaClient/Portfile	2010-09-26 03:10:31 UTC (rev 71884)
+++ trunk/dports/games/PlasmaClient/Portfile	2010-09-26 03:31:55 UTC (rev 71885)
@@ -6,6 +6,7 @@
 
 name                        PlasmaClient
 version                     0.0-233
+revision                    1
 categories                  games
 platforms                   darwin
 maintainers                 ryandesign
@@ -59,7 +60,9 @@
 
 configure.args              -DBULLET_INCLUDE_DIR:PATH=${prefix}/include/bullet \
                             -DPYTHON_INCLUDE_DIR:PATH=${frameworks_dir}/Python.framework/Versions/2.6/Headers \
-                            -DPYTHON_LIBRARY:FILEPATH=${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.dylib
+                            -DPYTHON_LIBRARY:FILEPATH=${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.dylib \
+                            -DSDL_INCLUDE_DIR=${prefix}/include/SDL \
+                            -DSDL_LIBRARY=${prefix}/lib/libSDL.dylib
 
 post-build {
     reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/PlasmaClient
@@ -74,10 +77,6 @@
     xinstall -d -m 777 ${destroot}${prefix}/var/log/${name}
 }
 
-platform darwin 8 {
-    configure.ldflags-append -lcrypto -ljpeg -lz -lSDLmain
-}
-
 notes "
 To run PlasmaClient, write your Myst Online: URU Live again username and password into the preferences plist like this:
 
@@ -87,6 +86,13 @@
 (replacing YOURUSERNAME with your username and YOURPASSWORD with your password). Then open PlasmaClient in ${applications_dir}.
 "
 
+platform darwin 8 {
+    depends_build-append port:pkgconfig
+    pre-configure {
+        configure.ldflags-append -lcrypto -ljpeg -lz [exec pkg-config sdl --libs]
+    }
+}
+
 livecheck.type              regex
 livecheck.url               ${hg.url}
 livecheck.version           [lindex [split ${version} -] 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100925/0d1d0d08/attachment.html>


More information about the macports-changes mailing list