Changeset 1208 for trunk/dports
- Timestamp:
- Nov 9, 2002, 7:56:02 PM (21 years ago)
- Location:
- trunk/dports/print/ghostscript
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/print/ghostscript/Portfile
r1206 r1208 1 1 PortSystem 1.0 2 2 3 name ghostscript4 version 7.045 revision 03 name ghostscript 4 version 7.04 5 revision 0 6 6 7 categories print8 maintainers digdog@mac.com9 description AFPL Ghostscript, An interpreter for PostScript and PDF 7 categories print 8 maintainers digdog@opendarwin.org 9 platforms darwin freebsd 10 10 11 platforms darwin freebsd 12 master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/:source \ 13 http://www.gzip.org/zlib/:zlib \ 14 http://www.libpng.org/pub/png/src/:libpng \ 15 http://www.ijg.org/files/:jpeg 16 dist_subdir ${name} 17 distfiles ${distname}${extract.sufx}:source \ 18 zlib-1.1.4${extract.sufx}:zlib \ 19 libpng-1.2.5${extract.sufx}:libpng \ 20 jpegsrc.v6b${extract.sufx}:jpeg 21 checksums ${distname}${extract.sufx} md5 03f287193d998c9cfaad3c25db9c7fa8 \ 22 zlib-1.1.4${extract.sufx} md5 abc405d0bdd3ee22782d7aa20e440f08 \ 23 libpng-1.2.5${extract.sufx} md5 0cec860559f2f5f7145da3c6851bacb7 \ 24 jpegsrc.v6b${extract.sufx} md5 dbd5f3b47ed13132f04c685d608a7547 11 default_variants +afpl +thirdparty +fonts 25 12 26 worksrcdir gs${version} 27 pre-configure { system "mv ${workpath}/zlib-1.1.4 ${workpath}/${worksrcdir}/zlib && 28 mv ${workpath}/libpng-1.2.5 ${workpath}/${worksrcdir}/libpng && 29 mv ${workpath}/jpeg-6b ${workpath}/${worksrcdir}/jpeg " 30 system "cd ${workpath}/${worksrcdir} && 31 ln -sf src/configure.ac . && 32 ln -sf src/Makefile.in ." } 33 use_autoconf yes 34 autoconf.dir ${workpath}/${worksrcdir} 35 build.target.all {} 36 include contents 13 variant afpl { 14 version 7.04 15 description AFPL Ghostscript, An interpreter for PostScript and PDF 16 master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/:source 17 distfiles ${distname}${extract.sufx}:source 18 checksums ${distname}${extract.sufx} md5 03f287193d998c9cfaad3c25db9c7fa8 19 worksrcdir gs7.04 20 pre-configure { 21 cd ${workpath}/${worksrcdir} 22 system "ln -sf src/configure.ac ." 23 system "ln -sf src/Makefile.in ." 24 } 25 use_autoconf yes 26 autoconf.dir ${workpath}/${worksrcdir} 27 build.target.all 28 include afpl-contents 29 } 30 31 variant gnu { 32 version 7.05 33 description GNU Ghostscript, An interpreter for PostScript and PDF 34 master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs705/:source 35 distfiles ${distname}${extract.sufx}:source 36 checksums ${distname}${extract.sufx} md5 23e6cc8c4024c56a28479fad53f9bb80 37 worksrcdir ${distname} 38 pre-configure { 39 cd ${workpath}/${worksrcdir} 40 system "ln -sf src/configure.ac ." 41 system "ln -sf src/Makefile.in ." 42 } 43 use_autoconf yes 44 autoconf.dir ${workpath}/${worksrcdir} 45 build.target.all 46 include gnu-contents 47 } 48 49 variant devel { 50 version 7.30 51 description AFPL Ghostscript, an interpreter for PostScript and PDF 52 fetch.type cvs 53 cvs.root pserver:anonymous@cvs.ghostscript.com:/cvs/ghostscript 54 cvs.module gs7_30 55 worksrcdir gs 56 use_autoconf yes 57 autoconf.dir ${workpath}/${worksrcdir} 58 build.target.all 59 } 60 61 # Ghostscript uses these packages when running configure & compiling. I just download and 62 # extract them into the folder that Ghostscript required. Not sure if this could be done 63 # by using depends_extract (I don't know how to use dependencies as sources), when users 64 # already installed these pacakges, then we could just extract them directly from local 65 # ${distpath} without download them everytime. 66 variant thirdparty { 67 master_sites-append http://www.gzip.org/zlib/:zlib \ 68 http://www.libpng.org/pub/png/src/:libpng \ 69 http://www.ijg.org/files/:jpeg 70 distfiles-append zlib-1.1.4${extract.sufx}:zlib \ 71 libpng-1.2.5${extract.sufx}:libpng \ 72 jpegsrc.v6b${extract.sufx}:jpeg 73 checksums-append zlib-1.1.4${extract.sufx} md5 abc405d0bdd3ee22782d7aa20e440f08 \ 74 libpng-1.2.5${extract.sufx} md5 0cec860559f2f5f7145da3c6851bacb7 \ 75 jpegsrc.v6b${extract.sufx} md5 dbd5f3b47ed13132f04c685d608a7547 76 post-extract { 77 cd ${workpath} 78 system "mv zlib-1.1.4 ${worksrcdir}/zlib" 79 system "mv libpng-1.2.5 ${worksrcdir}/libpng" 80 system "mv jpeg-6b ${worksrcdir}/jpeg" 81 } 82 } 83 84 # Use AFPL fonts, cause they are same with GNU's. 85 variant fonts { 86 master_sites-append http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts 87 distfiles-append ghostscript-fonts-std-6.0${extract.sufx}:fonts \ 88 ghostscript-fonts-other-6.0${extract.sufx}:fonts 89 checksums-append ghostscript-fonts-std-6.0${extract.sufx} md5 8250132d6fcc6eb1419f505f06c7690b \ 90 ghostscript-fonts-other-6.0${extract.sufx} md5 1a643ae62ef166562e4d422b1a601272 91 post-install { if {![file exists ${prefix}/share/fonts]} {file mkdir ${prefix}/share/fonts} 92 system "install -o root -m 644 ${workpath}/fonts/*.* ${prefix}/share/fonts/" } 93 include fonts-contents 94 }
Note: See TracChangeset
for help on using the changeset viewer.