[47572] trunk/dports/games/jnethack/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sat Feb 28 17:20:46 PST 2009


Revision: 47572
          http://trac.macports.org/changeset/47572
Author:   jeremyhu at macports.org
Date:     2009-02-28 17:20:45 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
jnethack: Only use x11prefix if we need to

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

Modified: trunk/dports/games/jnethack/Portfile
===================================================================
--- trunk/dports/games/jnethack/Portfile	2009-03-01 01:16:48 UTC (rev 47571)
+++ trunk/dports/games/jnethack/Portfile	2009-03-01 01:20:45 UTC (rev 47572)
@@ -61,7 +61,7 @@
         set jn_cflags "${jn_cflags} ${configure.universal_cflags}"
     }
 
-    if {[variant_isset x11]} {
+    if {[variant_isset x11] && ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
         set jn_cflags "${jn_cflags} -I${x11prefix}/include"
         set jn_ldflags "${jn_ldflags} -L${x11prefix}/lib"
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/109e43d5/attachment-0001.html>


More information about the macports-changes mailing list