[43380] trunk/dports/x11/xrender/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Dec 9 22:34:56 PST 2008


Revision: 43380
          http://trac.macports.org/changeset/43380
Author:   jeremyhu at macports.org
Date:     2008-12-09 22:34:56 -0800 (Tue, 09 Dec 2008)
Log Message:
-----------
xrender: Only do the Tiger hackery if we are using Tiger X11 and don't have xorg-libX11 installed

Modified Paths:
--------------
    trunk/dports/x11/xrender/Portfile

Modified: trunk/dports/x11/xrender/Portfile
===================================================================
--- trunk/dports/x11/xrender/Portfile	2008-12-10 05:51:49 UTC (rev 43379)
+++ trunk/dports/x11/xrender/Portfile	2008-12-10 06:34:56 UTC (rev 43380)
@@ -41,12 +41,11 @@
 }
 
 platform macosx {
-    # TODO: We should only do this if port:xorg-libX11 isn't installed
-    if {${os.major} < 9} {
+    if {${os.major} < 9 && ![file exists ${prefix}/lib/pkgconfig/x11.pc]} {
         # Xregion.h isn't in the Tiger X11 SDK, so slight hack here...
         configure.cppflags-append -I${prefix}/include -I${filespath}/include
 
-	# Apple's versions of X11 prior to XQuartz provide neither x11.pc nor xproto.pc
+        # Apple's versions of X11 prior to XQuartz provide neither x11.pc nor xproto.pc
         configure.env-append \
             X_CFLAGS="-I${x11prefix}/include -DXTHREADS" \
             X_LIBS="-L${x11prefix}/lib -lX11"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081209/372627bc/attachment.html>


More information about the macports-changes mailing list