[31811] trunk/dports/print/espgs/Portfile

simon at macports.org simon at macports.org
Sat Dec 8 04:00:27 PST 2007


Revision: 31811
          http://trac.macosforge.org/projects/macports/changeset/31811
Author:   simon at macports.org
Date:     2007-12-08 04:00:13 -0800 (Sat, 08 Dec 2007)

Log Message:
-----------
print/espgs: Fixed build failure, closes #13159. Also removed cd command and unnecessary variant.

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

Modified: trunk/dports/print/espgs/Portfile
===================================================================
--- 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
-}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071208/a630f25c/attachment.html


More information about the macports-changes mailing list