[30140] trunk/dports/devel/libsdl_image/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Oct 21 06:17:49 PDT 2007


Revision: 30140
          http://trac.macosforge.org/projects/macports/changeset/30140
Author:   nox at macports.org
Date:     2007-10-21 06:17:48 -0700 (Sun, 21 Oct 2007)

Log Message:
-----------
libsdl_image: Fixed a bug with image library dynamic loading.

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

Modified: trunk/dports/devel/libsdl_image/Portfile
===================================================================
--- trunk/dports/devel/libsdl_image/Portfile	2007-10-21 13:00:59 UTC (rev 30139)
+++ trunk/dports/devel/libsdl_image/Portfile	2007-10-21 13:17:48 UTC (rev 30140)
@@ -5,7 +5,7 @@
 name            libsdl_image
 set my_name     SDL_image
 version         1.2.6
-revision        1
+revision        2
 categories      devel graphics
 platforms       macosx
 maintainers     nox openmaintainer
@@ -27,6 +27,12 @@
 
 configure.args  --disable-sdltest
 
+post-configure {
+    # We need to pass absolute path to dlopen().
+    reinplace -E "/^DEFS =/s|(LOAD_\[A-Z\]+_DYNAMIC=\\\\\")|\\1${prefix}/lib/|g" \
+        ${worksrcpath}/Makefile
+}
+
 post-destroot {
     set docdir ${prefix}/share/doc/${name}-${version}
     xinstall -d ${destroot}${docdir}
@@ -35,6 +41,5 @@
 }
 
 livecheck.check regex
-livecheck.url   ${homepage}
 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071021/50b16d2c/attachment.html


More information about the macports-changes mailing list