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

nox at macports.org nox at macports.org
Sat Apr 18 06:58:48 PDT 2009


Revision: 49822
          http://trac.macports.org/changeset/49822
Author:   nox at macports.org
Date:     2009-04-18 06:58:47 -0700 (Sat, 18 Apr 2009)
Log Message:
-----------
libsdl: Exec reinplace calls only when the no_x11 variant is not selected (closes #19291).

Modified Paths:
--------------
    trunk/dports/devel/libsdl/Portfile

Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile	2009-04-18 13:57:04 UTC (rev 49821)
+++ trunk/dports/devel/libsdl/Portfile	2009-04-18 13:58:47 UTC (rev 49822)
@@ -52,20 +52,22 @@
 post-configure {
     set sdl_config_h "${worksrcpath}/include/SDL_config.h"
 
-    if {[file exists "${prefix}/lib/libX11.6.dylib"]} {
-        reinplace "/libX11.6.dylib/s|\".*\"|\"${prefix}/lib/libX11.6.dylib\"|" ${sdl_config_h}
-    }
+    if {![variant_isset no_x11]} {
+        if {[file exists "${prefix}/lib/libX11.6.dylib"]} {
+            reinplace "/libX11.6.dylib/s|\".*\"|\"${prefix}/lib/libX11.6.dylib\"|" ${sdl_config_h}
+        }
 
-    if {[file exists "${prefix}/lib/libXext.6.dylib"]} {
-        reinplace "/libXext.6.dylib/s|\".*\"|\"${prefix}/lib/libXext.6.dylib\"|" ${sdl_config_h}
-    }
+        if {[file exists "${prefix}/lib/libXext.6.dylib"]} {
+            reinplace "/libXext.6.dylib/s|\".*\"|\"${prefix}/lib/libXext.6.dylib\"|" ${sdl_config_h}
+        }
 
-    if {[file exists "${prefix}/lib/libXrandr.2.dylib"]} {
-        reinplace "/libXrandr.2.dylib/s|\".*\"|\"${prefix}/lib/libXrandr.2.dylib\"|" ${sdl_config_h}
-    }
+        if {[file exists "${prefix}/lib/libXrandr.2.dylib"]} {
+            reinplace "/libXrandr.2.dylib/s|\".*\"|\"${prefix}/lib/libXrandr.2.dylib\"|" ${sdl_config_h}
+        }
 
-    if {[file exists "${prefix}/lib/libXrender.1.dylib"]} {
-        reinplace "/libXrender.1.dylib/s|\".*\"|\"${prefix}/lib/libXrender.1.dylib\"|" ${sdl_config_h}
+        if {[file exists "${prefix}/lib/libXrender.1.dylib"]} {
+            reinplace "/libXrender.1.dylib/s|\".*\"|\"${prefix}/lib/libXrender.1.dylib\"|" ${sdl_config_h}
+        }
     }
 
     # For universal, let SDL_endian.h figure out our endianness at compile time
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090418/9d3cbbb7/attachment.html>


More information about the macports-changes mailing list