[36726] trunk/dports/python

simon at macports.org simon at macports.org
Tue May 13 04:38:56 PDT 2008


Revision: 36726
          http://trac.macosforge.org/projects/macports/changeset/36726
Author:   simon at macports.org
Date:     2008-05-13 04:38:55 -0700 (Tue, 13 May 2008)

Log Message:
-----------
python/py-game & python/py25-game: Fix wrong X11 include path on some installations, fixes #15130 and #10642.

Modified Paths:
--------------
    trunk/dports/python/py-game/Portfile
    trunk/dports/python/py25-game/Portfile

Modified: trunk/dports/python/py-game/Portfile
===================================================================
--- trunk/dports/python/py-game/Portfile	2008-05-13 11:34:46 UTC (rev 36725)
+++ trunk/dports/python/py-game/Portfile	2008-05-13 11:38:55 UTC (rev 36726)
@@ -37,6 +37,12 @@
 configure.env-append LOCALBASE=${prefix}
 configure.cmd   ${python.bin} config.py
 
+post-configure {
+    # Make sure the X11 include directory is found.
+    reinplace "s|-Ddarwin  -lSDL|-Ddarwin -lSDL -I${x11prefix}/include|g" \
+        ${worksrcpath}/Setup
+}
+
 platform darwin 9 {
     depends_lib-delete port:py-pyobjc
     depends_lib-append port:py-pyobjc2 port:py-pyobjc2-cocoa

Modified: trunk/dports/python/py25-game/Portfile
===================================================================
--- trunk/dports/python/py25-game/Portfile	2008-05-13 11:34:46 UTC (rev 36725)
+++ trunk/dports/python/py25-game/Portfile	2008-05-13 11:38:55 UTC (rev 36726)
@@ -38,6 +38,12 @@
 configure.env-append LOCALBASE=${prefix}
 configure.cmd   ${python.bin} config.py
 
+post-configure {
+    # Make sure the X11 include directory is found.
+    reinplace "s|-Ddarwin  -lSDL|-Ddarwin -lSDL -I${x11prefix}/include|g" \
+        ${worksrcpath}/Setup
+}
+
 platform darwin 9 {
     depends_lib-delete port:py25-pyobjc
     depends_lib-append port:py25-pyobjc2 port:py25-pyobjc2-cocoa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080513/10ae4ca9/attachment.html


More information about the macports-changes mailing list