Modified: trunk/dports/print/espgs/Portfile (31810 => 31811)
--- trunk/dports/print/espgs/Portfile 2007-12-08 11:15:54 UTC (rev 31810)
+++ trunk/dports/print/espgs/Portfile 2007-12-08 12:00:13 UTC (rev 31811)
@@ -41,15 +41,22 @@
# To understand why doing this, please check official document:
# http://www.ghostscript.com/doc/AFPL/8.00/Make.htm#Third-party_libraries
post-extract {
- cd ${workpath}
- system "mv ${png_src} ${worksrcdir}/libpng"
+ system "cd ${workpath}; mv ${png_src} ${worksrcdir}/libpng"
}
configure.args --without-gimp-print \
--disable-cups \
- --mandir='\${prefix}/share/man' \
+ --mandir=${prefix}/share/man \
--with-fontpath="${prefix}/share/ghostscript/fonts:/usr/share/ghostscript/fonts"
+pre-build {
+ # Ensure the macports include/ directory is added. Don't know why
+ # configure doesn't do this already.
+ set search {CFLAGS=-O2 $(GCFLAGS) $(XCFLAGS) $(ACDEFS)}
+ reinplace "s|${search}|${search} -I${prefix}/include|g" \
+ ${worksrcpath}/Makefile
+}
+
build.target
destroot.destdir prefix=${destroot}${prefix} datadir=${destroot}${prefix}/share
@@ -65,9 +72,3 @@
depends_lib-append lib:libX11:XFree86
configure.args-append --with-x
}
-
-variant extra_fonts {
- set other_fonts ghostscript-fonts-other-6.0
- distfiles-append ${other_fonts}${extract.suffix}:fonts
- checksums-append ${other_fonts}${extract.suffix} md5 1a643ae62ef166562e4d422b1a601272
-}