[41252] trunk/dports/print/pdflib/Portfile

pguyot at kallisys.net pguyot at kallisys.net
Wed Oct 29 04:19:54 PDT 2008


Revision: 41252
          http://trac.macports.org/changeset/41252
Author:   pguyot at kallisys.net
Date:     2008-10-29 04:19:52 -0700 (Wed, 29 Oct 2008)
Log Message:
-----------
Fix universal variant

Modified Paths:
--------------
    trunk/dports/print/pdflib/Portfile

Modified: trunk/dports/print/pdflib/Portfile
===================================================================
--- trunk/dports/print/pdflib/Portfile	2008-10-29 10:31:50 UTC (rev 41251)
+++ trunk/dports/print/pdflib/Portfile	2008-10-29 11:19:52 UTC (rev 41252)
@@ -23,6 +23,8 @@
 patchfiles		patch-config-mkcommon.inc.diff patch-libs__pdcore__pc_util.diff \
 			patch-perl_Makefile.diff
 
+depends_build   port:libtool
+
 configure.args	--without-java --without-perl --without-py --without-tcl --without-ruby
 configure.ccache        no
 
@@ -84,5 +86,12 @@
 	configure.cxx	"/usr/bin/g++-4.0 -DPDF_TARGET_API_MAC_CLASSIC"
 }
 
+post-configure {
+    if {[variant_isset universal]} {
+        file delete ${worksrcpath}/libtool
+        file link -s ${worksrcpath}/libtool ${prefix}/bin/glibtool
+    }
+}
+
 livecheck.check     regex
 livecheck.regex     "PDFlib Lite \(\[\\d\\.\]+\)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081029/fdb930df/attachment.html>


More information about the macports-changes mailing list