[47969] trunk/dports/graphics/jpeg/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Wed Mar 11 14:29:23 PDT 2009


Revision: 47969
          http://trac.macports.org/changeset/47969
Author:   mcalhoun at macports.org
Date:     2009-03-11 14:29:23 -0700 (Wed, 11 Mar 2009)
Log Message:
-----------
jpeg: Prevent linker from finding wrong library and header files.
Fixes #16411 (maintainer timeout).
Revision not increased because the library should have built correctly or not at all.

Modified Paths:
--------------
    trunk/dports/graphics/jpeg/Portfile

Modified: trunk/dports/graphics/jpeg/Portfile
===================================================================
--- trunk/dports/graphics/jpeg/Portfile	2009-03-11 21:26:37 UTC (rev 47968)
+++ trunk/dports/graphics/jpeg/Portfile	2009-03-11 21:29:23 UTC (rev 47969)
@@ -40,6 +40,14 @@
 post-patch {
     system "cd ${worksrcpath} &&
         tar zxf ${distpath}/droppatch.tar.gz"
+
+    # Reorder link flags so that so that local -L options come first (especially before -L${prefix}/lib)
+    #     (see http://trac.macports.org/ticket/16411).
+    reinplace "s|\\(.*\\)\\(\$(LDFLAGS)\\)\\(.*\\)\\(\$(LDLIBS)\\)\\(.*\\)|\\1\\4\\3\\2\\5|" ${worksrcpath}/makefile.cfg
+
+    # As in the case of -L, CPPFLAGS come before -I. during compilation.
+    configure.cppflags-append -isystem${prefix}/include
+    configure.cppflags-delete -I${prefix}/include
 }
 
 configure.args      --enable-shared --enable-static
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090311/3727a90a/attachment.html>


More information about the macports-changes mailing list