Ticket #17107: Portfile.diff

File Portfile.diff, 2.3 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    1919                ghostscript-fonts-std-8.11.tar.gz:fonts \
    2020                ghostscript-fonts-other-6.0.tar.gz:fonts
    2121patchfiles      patch-src_macos-fw.mak.diff \
    22                 patch-src_macosx.mak.diff \
    23                 patch-src_unix-aux.mak.diff
     22                patch-src_macosx.mak.diff
    2423checksums       ${distname}.tar.gz md5 b22e689b237a6594d1ca408f2b55a891 \
    2524                ghostscript-fonts-std-8.11.tar.gz md5 6865682b095f8c4500c54b285ff05ef6 \
    2625                ghostscript-fonts-other-6.0.tar.gz md5 1a643ae62ef166562e4d422b1a601272
    2726
    28 depends_lib     lib:libX11.6:XFree86 \
     27depends_lib     lib:libX11:xorg \
    2928                port:cairo \
    3029                port:expat \
    3130                port:fontconfig \
    3231                port:libiconv \
    33                 port:pkgconfig
     32                port:zlib \
     33                path:bin/perl:perl5
     34
     35depends_build   port:pkgconfig
     36
     37# Can be removed once MacPorts 1.7.0 is released
     38if {![info exists frameworks_dir]} {
     39    set frameworks_dir ${prefix}/Library/Frameworks
     40}
    3441
    3542post-patch {
    3643    foreach f {src/macosx.mak src/macos-fw.mak} {
    3744        reinplace "s|@@DESTROOT@@|${destroot}|" ${worksrcpath}/${f}
    38         reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/${f}
     45        reinplace "s|@@FRAMEWORKS_DIR@@|${frameworks_dir}|" ${worksrcpath}/${f}
     46    }
     47
     48    # Ensure that MacPorts perl is used
     49    foreach f {lib/fixmswrd.pl toolbin/pscet_status.pl} {
     50        reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" ${worksrcpath}/${f}
    3951    }
    4052}
    4153
    42 # Ticket #11901, Thanks to Christian Cornelssen (ccorn@cs.tu-berlin.de).
    4354# Make included JasPer uses its own headers rather than the system ones
    4455configure.cppflags-delete       "-I${prefix}/include"
    45 configure.cppflags-append       "-I${worksrcpath}/jasper/src/libjasper/include"
    46 configure.cppflags-append       "-I${prefix}/include"
     56configure.cppflags-append       "-isystem${prefix}/include"
    4757
    48 configure.args  --disable-compile-inits \
    49                 --mandir='\${prefix}/share/man' \
     58configure.args  --x-includes=${x11prefix}/include \
     59                --x-libraries=${x11prefix}/lib \
     60                --disable-compile-inits \
    5061                --disable-cups
    5162
    5263build.target