|
Lines 15-34
Link Here
|
| 15 |
ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ |
15 |
ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ |
| 16 |
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ |
16 |
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ |
| 17 |
${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV} |
17 |
${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV} |
|
|
18 |
EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} |
| 18 |
|
19 |
|
| 19 |
MAINTAINER= andreas@FreeBSD.org |
20 |
MAINTAINER= andreas@FreeBSD.org |
| 20 |
|
21 |
|
| 21 |
Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html |
22 |
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract |
| 22 |
|
|
|
| 23 |
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract |
| 24 |
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png |
23 |
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png |
| 25 |
|
24 |
|
| 26 |
PLIST_SUB= GS_VERSION=${PORTVERSION} |
25 |
Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html |
| 27 |
USE_XLIB= yes |
26 |
|
| 28 |
EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} |
|
|
| 29 |
WRKSRC= ${WRKDIR}/gs${PORTVERSION} |
27 |
WRKSRC= ${WRKDIR}/gs${PORTVERSION} |
|
|
28 |
USE_XLIB= yes |
| 29 |
USE_GMAKE= yes |
| 30 |
MAKEFILE= src/unix-gcc.mak |
30 |
MAKEFILE= src/unix-gcc.mak |
| 31 |
CFLAGS+= -I${PREFIX}/include |
31 |
PLIST_SUB= GS_VERSION=${PORTVERSION} |
| 32 |
# Note: the order that the manpages are listed here matters because |
32 |
# Note: the order that the manpages are listed here matters because |
| 33 |
# some of them are symbolic links |
33 |
# some of them are symbolic links |
| 34 |
MAN1= gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \ |
34 |
MAN1= gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \ |
|
Lines 58-69
Link Here
|
| 58 |
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ |
58 |
CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ |
| 59 |
stc740ih.upp stc740p.upp stc740pl.upp |
59 |
stc740ih.upp stc740p.upp stc740pl.upp |
| 60 |
|
60 |
|
| 61 |
# encrypted PDF support. can't be packaged due to export control issues. |
61 |
# replacement for pdf_sec.ps, that allows you to read encrypted PDF files |
| 62 |
.if defined(PDFENCRYPT) |
62 |
DECRYPT_PDF= pdf_sec.ps |
| 63 |
MASTER_SITES+= http://www.ozemail.com.au/~geoffk/pdfencrypt/ |
|
|
| 64 |
DISTFILES+= pdf_sec.ps |
| 65 |
RESTRICTED= "Crypto; export controlled, RC4 in PostScript code included" |
| 66 |
.endif |
| 67 |
|
63 |
|
| 68 |
.if defined(A4) |
64 |
.if defined(A4) |
| 69 |
CFLAGS+= -DA4 |
65 |
CFLAGS+= -DA4 |
|
Lines 79-88
Link Here
|
| 79 |
post-extract: |
75 |
post-extract: |
| 80 |
@${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \ |
76 |
@${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \ |
| 81 |
${WRKSRC}/jpeg |
77 |
${WRKSRC}/jpeg |
| 82 |
@cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HP8XX_DRV} |
78 |
@${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HP8XX_DRV} |
| 83 |
@cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HPDJ_DRV} |
79 |
@${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HPDJ_DRV} |
| 84 |
# additional HPDJ driver |
80 |
# additional HPDJ driver |
| 85 |
@${TAR} -xf ${WRKDIR}/hpdj-2.6/hpdj.tar -C ${WRKSRC}/src |
81 |
@${TAR} -C ${WRKSRC}/src -xf ${WRKDIR}/hpdj-2.6/hpdj.tar |
| 86 |
@${CAT} ${WRKSRC}/src/contrib.mak-5.94.add >> ${WRKSRC}/src/contrib.mak |
82 |
@${CAT} ${WRKSRC}/src/contrib.mak-5.94.add >> ${WRKSRC}/src/contrib.mak |
| 87 |
@${PATCH} -d ${WRKSRC}/src --forward --quiet -E \ |
83 |
@${PATCH} -d ${WRKSRC}/src --forward --quiet -E \ |
| 88 |
< ${WRKSRC}/src/zmedia2.c-5.50.diff |
84 |
< ${WRKSRC}/src/zmedia2.c-5.50.diff |
|
Lines 100-130
Link Here
|
| 100 |
|
96 |
|
| 101 |
pre-install: |
97 |
pre-install: |
| 102 |
@${MKDIR} ${PREFIX}/share/ghostscript |
98 |
@${MKDIR} ${PREFIX}/share/ghostscript |
| 103 |
@(cd ${PREFIX}/share/ghostscript ; \ |
99 |
${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD} |
| 104 |
${TAR} -xzf ${DISTDIR}/${GS_FONTS_STD}) |
100 |
${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER} |
| 105 |
@(cd ${PREFIX}/share/ghostscript ; \ |
|
|
| 106 |
${TAR} -xzf ${DISTDIR}/${GS_FONTS_OTHER}) |
| 107 |
|
101 |
|
| 108 |
post-install: |
102 |
post-install: |
| 109 |
@strip ${PREFIX}/bin/gs |
103 |
@strip ${PREFIX}/bin/gs |
| 110 |
@${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin |
104 |
${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin |
| 111 |
@${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin |
105 |
${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin |
| 112 |
@${MKDIR} ${PREFIX}/libexec/lpr |
106 |
@${MKDIR} ${PREFIX}/libexec/lpr |
| 113 |
@${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr |
107 |
${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr |
| 114 |
@${INSTALL_DATA} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1 |
108 |
${INSTALL_MAN} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1 |
| 115 |
.for i in ${CONTRIB_UPP} |
109 |
.for i in ${CONTRIB_UPP} |
| 116 |
@${INSTALL_DATA} ${FILESDIR}/$i \ |
110 |
${INSTALL_DATA} ${FILESDIR}/${i} \ |
| 117 |
${PREFIX}/share/ghostscript/${PORTVERSION}/lib |
111 |
${PREFIX}/share/ghostscript/${PORTVERSION}/lib |
| 118 |
.endfor |
112 |
.endfor |
| 119 |
.if defined(PDFENCRYPT) |
113 |
${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ |
| 120 |
@${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ |
|
|
| 121 |
${PREFIX}/share/ghostscript/${PORTVERSION}/lib |
114 |
${PREFIX}/share/ghostscript/${PORTVERSION}/lib |
| 122 |
.endif |
115 |
.if !defined(NOPORTDOCS) |
| 123 |
.if !defined(NOPORTDOC) |
|
|
| 124 |
@${MKDIR} ${PREFIX}/share/ghostscript/hpdj |
116 |
@${MKDIR} ${PREFIX}/share/ghostscript/hpdj |
| 125 |
.for i in LGPL.txt NEWS README.hpdj example.mdf hpdj.html margins-A4.ps \ |
117 |
.for i in LGPL.txt NEWS README.hpdj example.mdf hpdj.html margins-A4.ps \ |
| 126 |
margins-A4Rotated.ps margins-Letter.ps margins-LetterRotated.ps |
118 |
margins-A4Rotated.ps margins-Letter.ps margins-LetterRotated.ps |
| 127 |
@ cd ${WRKSRC}/src; ${INSTALL_DATA} $i ${PREFIX}/share/ghostscript/hpdj |
119 |
${INSTALL_DATA} ${WRKSRC}/src/${i} ${PREFIX}/share/ghostscript/hpdj |
| 128 |
|
120 |
|
| 129 |
.endfor |
121 |
.endfor |
| 130 |
.endif |
122 |
.endif |