Modified: trunk/dports/textproc/pdftk/Portfile (32287 => 32288)
--- 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