source: trunk/dports/print/espgs/Portfile @ 75159

Last change on this file since 75159 was 75159, checked in by rmstonecipher@…, 9 years ago

graphics/libpng upgraded version from 1.2.44 to 1.4.5 per ticket #23125, increased revision on all ports directly dependent upon libpng12.dylib

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 75159 2011-01-17 02:00:53Z rmstonecipher@macports.org $
2
3PortSystem          1.0
4
5name                espgs
6version             7.07.1
7revision            4
8categories          print textproc
9platforms           darwin
10maintainers         nomaintainer
11description         Interpreter for PostScript and PDF
12long_description    Easy Software Products now produces maintenance updates \
13                    of GNU Ghostscript under the name ESP Ghostscript. These \
14                    updates incorporate bug fixes to the current GNU version \
15                    of Ghostscript as well as the latest CUPS, GIMP-print, \
16                    and other add-ons to Ghostscript.
17
18homepage            http://www.cups.org/ghostscript.php
19master_sites        sourceforge \
20                    http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts \
21                    http://www.ijg.org/files/:jpeg \
22                    sourceforge:libpng:libpng
23distname            ${name}-${version}-source
24set std_fonts       ghostscript-fonts-std-8.11
25set other_fonts     ghostscript-fonts-other-6.0
26set png_src         libpng-1.2.8
27distfiles           ${distname}${extract.suffix} \
28                    ${std_fonts}${extract.suffix}:fonts \
29                    ${other_fonts}${extract.suffix}:fonts \
30                    ${png_src}${extract.suffix}:libpng
31checksums           ${name}-${version}-source${extract.suffix} md5 20dfdc45c3aeb9893b75d41087f828d9 \
32                    ${std_fonts}${extract.suffix} md5 6865682b095f8c4500c54b285ff05ef6 \
33                    ${other_fonts}${extract.suffix} md5 1a643ae62ef166562e4d422b1a601272 \
34                    ${png_src}${extract.suffix} md5 cac1512878fb98f2456df6dc50bc9bc7
35worksrcdir          ${name}-${version}
36
37depends_lib         port:jpeg \
38                    port:libpng \
39                    port:zlib
40
41# Should be depends_extract, but that isn't implemented
42# To understand why doing this, please check official document:
43# http://www.ghostscript.com/doc/AFPL/8.00/Make.htm#Third-party_libraries
44post-extract {
45    system "cd ${workpath}; mv ${png_src} ${worksrcdir}/libpng"
46}
47
48configure.args      --without-gimp-print \
49                    --disable-cups \
50                    --mandir=${prefix}/share/man \
51                    --with-fontpath="${prefix}/share/ghostscript/fonts:/usr/share/ghostscript/fonts"
52
53pre-build {
54    # Ensure the macports include/ directory is added. Don't know why
55    # configure doesn't do this already.
56    set search {CFLAGS=-O2 $(GCFLAGS) $(XCFLAGS) $(ACDEFS)}
57    reinplace "s|${search}|${search} -I${prefix}/include|g" \
58        ${worksrcpath}/Makefile
59}
60
61build.target
62destroot.destdir    prefix=${destroot}${prefix} datadir=${destroot}${prefix}/share
63
64post-destroot {
65    system "mkdir -p ${destroot}${prefix}/share/ghostscript/"
66    system "cd ${workpath} && \
67            tar -cf - fonts | \
68            tar -xf - -C ${destroot}${prefix}/share/ghostscript/"
69}
70
71variant x11 {
72    depends_lib-append      port:xorg-libXext port:xorg-libXt
73    configure.args-append   --with-x
74}
75
76# Their Makefile.in is busted
77configure.cflags-append ${configure.cppflags}
78
Note: See TracBrowser for help on using the repository browser.