[32288] trunk/dports/textproc/pdftk/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Dec 23 09:50:16 PST 2007
Revision: 32288
http://trac.macosforge.org/projects/macports/changeset/32288
Author: ryandesign at macports.org
Date: 2007-12-23 09:50:14 -0800 (Sun, 23 Dec 2007)
Log Message:
-----------
pdftk: fail more gracefully if gcj-mp-42 is not present, for example on Leopard PPC as a result of #13553
Modified Paths:
--------------
trunk/dports/textproc/pdftk/Portfile
Modified: trunk/dports/textproc/pdftk/Portfile
===================================================================
--- trunk/dports/textproc/pdftk/Portfile 2007-12-23 17:42:45 UTC (rev 32287)
+++ trunk/dports/textproc/pdftk/Portfile 2007-12-23 17:50:14 UTC (rev 32288)
@@ -40,6 +40,17 @@
depends_lib \
port:libiconv
+pre-fetch {
+ if {![file exists ${prefix}/bin/gcj-mp-4.2]} {
+ return -code error "
+
+Cannot build ${name} because ${prefix}/bin/gcj-mp-4.2 is missing,
+possibly because of this gcc bug:
+http://trac.macports.org/projects/macports/ticket/13553
+"
+ }
+}
+
pre-build {
reinplace "s|^\\(CPPFLAGS=\\)|\\1 ${configure.cppflags}|" ${worksrcpath}/Makefile.MacOSX
reinplace "s|^\\(CXXFLAGS=\\)|\\1 ${configure.cxxflags} ${configure.ldflags}|" ${worksrcpath}/Makefile.MacOSX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071223/c982141b/attachment.html
More information about the macports-changes
mailing list