[67054] trunk/dports/science/root/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Tue Apr 27 21:14:24 PDT 2010


Revision: 67054
          http://trac.macports.org/changeset/67054
Author:   macsforever2000 at macports.org
Date:     2010-04-27 21:14:17 -0700 (Tue, 27 Apr 2010)
Log Message:
-----------
Maintainer fix for library linking. (#24680)

Modified Paths:
--------------
    trunk/dports/science/root/Portfile

Modified: trunk/dports/science/root/Portfile
===================================================================
--- trunk/dports/science/root/Portfile	2010-04-28 03:47:50 UTC (rev 67053)
+++ trunk/dports/science/root/Portfile	2010-04-28 04:14:17 UTC (rev 67054)
@@ -4,7 +4,7 @@
 
 name                root
 version             5.26.00
-revision            1
+revision            2
 categories          science
 maintainers         gmail.com:mattiafrancescomoro
 license             LGPLv2.1
@@ -32,6 +32,13 @@
     build.args      CC=${configure.cc} \
                     CXX=${configure.cxx} \
                     F77=${configure.f77}
+
+    reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
+    reinplace "s|\"/usr/include\"|\"${prefix}/include/\" \"/usr/include\"|g" ${worksrcpath}/configure
+    reinplace "s|/usr/lib |${prefix}/lib /usr/lib |g" ${worksrcpath}/configure
+    reinplace "s|/usr/include |${prefix}/include /usr/include |g" ${worksrcpath}/configure
+    reinplace "s|\"/usr/lib\"|\"${prefix}/lib/\" \"/usr/lib\"g|" ${worksrcpath}/configure
+
 }
 
 configure.args      --with-cc=${configure.cc} \
@@ -141,7 +148,7 @@
 variant xml description {Builds port with xml support} {
     configure.args-delete   --disable-xml
     configure.args-append   --enable-xml \
-                            --with-xml-incdir="${prefix}/include" \
+                            --with-xml-incdir="${prefix}/include/libxml2" \
                             --with-xml-libdir="${prefix}/lib"
     depends_lib-append      port:libxml2
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100427/8be6b345/attachment.html>


More information about the macports-changes mailing list