diff options
author | Andreas Klemm <andreas@FreeBSD.org> | 2000-09-11 19:06:16 +0000 |
---|---|---|
committer | Andreas Klemm <andreas@FreeBSD.org> | 2000-09-11 19:06:16 +0000 |
commit | c7945503dffc1c1683ef00681efba8848535db5d (patch) | |
tree | f07b64cd44744ebbb5f12c135ab0241527cbca9c /print/ghostscript8 | |
parent | a0be6194bc8613e9a9a0de8a36c9f1d9477ab8d2 (diff) | |
download | ports-c7945503dffc1c1683ef00681efba8848535db5d.tar.gz ports-c7945503dffc1c1683ef00681efba8848535db5d.zip |
- Remove restriction of encrypted PDF support
- nonexistent -> NONEXISTENT
- Add USE_GMAKE
- portlint
- Fix usage of PREFIX/LOCALBASE
- Fix pkg/PLIST
PR: 21083
Submitted by: tkato@prontomail.ne.jp
Notes
Notes:
svn path=/head/; revision=32523
Diffstat (limited to 'print/ghostscript8')
-rw-r--r-- | print/ghostscript8/Makefile | 54 | ||||
-rw-r--r-- | print/ghostscript8/files/patch-aa | 8 | ||||
-rw-r--r-- | print/ghostscript8/pkg-plist | 2 |
3 files changed, 29 insertions, 35 deletions
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile index d2f3ceaa4070..f22bf77920f8 100644 --- a/print/ghostscript8/Makefile +++ b/print/ghostscript8/Makefile @@ -15,20 +15,20 @@ MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs601/ \ ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ ${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV} +EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} MAINTAINER= andreas@FreeBSD.org -Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html - -BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract +BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png -PLIST_SUB= GS_VERSION=${PORTVERSION} -USE_XLIB= yes -EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} +Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html + WRKSRC= ${WRKDIR}/gs${PORTVERSION} +USE_XLIB= yes +USE_GMAKE= yes MAKEFILE= src/unix-gcc.mak -CFLAGS+= -I${PREFIX}/include +PLIST_SUB= GS_VERSION=${PORTVERSION} # Note: the order that the manpages are listed here matters because # some of them are symbolic links MAN1= gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \ @@ -58,12 +58,8 @@ HPDJ_DRV= hpdj-2.6.tar.gz CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp -# encrypted PDF support. can't be packaged due to export control issues. -.if defined(PDFENCRYPT) -MASTER_SITES+= http://www.ozemail.com.au/~geoffk/pdfencrypt/ -DISTFILES+= pdf_sec.ps -RESTRICTED= "Crypto; export controlled, RC4 in PostScript code included" -.endif +# replacement for pdf_sec.ps, that allows you to read encrypted PDF files +DECRYPT_PDF= pdf_sec.ps .if defined(A4) CFLAGS+= -DA4 @@ -79,10 +75,10 @@ pre-fetch: post-extract: @${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \ ${WRKSRC}/jpeg - @cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HP8XX_DRV} - @cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HPDJ_DRV} - # additional HPDJ driver - @${TAR} -xf ${WRKDIR}/hpdj-2.6/hpdj.tar -C ${WRKSRC}/src + @${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HP8XX_DRV} + @${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HPDJ_DRV} +# additional HPDJ driver + @${TAR} -C ${WRKSRC}/src -xf ${WRKDIR}/hpdj-2.6/hpdj.tar @${CAT} ${WRKSRC}/src/contrib.mak-5.94.add >> ${WRKSRC}/src/contrib.mak @${PATCH} -d ${WRKSRC}/src --forward --quiet -E \ < ${WRKSRC}/src/zmedia2.c-5.50.diff @@ -100,31 +96,27 @@ pre-build: pre-install: @${MKDIR} ${PREFIX}/share/ghostscript - @(cd ${PREFIX}/share/ghostscript ; \ - ${TAR} -xzf ${DISTDIR}/${GS_FONTS_STD}) - @(cd ${PREFIX}/share/ghostscript ; \ - ${TAR} -xzf ${DISTDIR}/${GS_FONTS_OTHER}) + ${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD} + ${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER} post-install: @strip ${PREFIX}/bin/gs - @${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin - @${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin @${MKDIR} ${PREFIX}/libexec/lpr - @${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr - @${INSTALL_DATA} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr + ${INSTALL_MAN} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1 .for i in ${CONTRIB_UPP} - @${INSTALL_DATA} ${FILESDIR}/$i \ + ${INSTALL_DATA} ${FILESDIR}/${i} \ ${PREFIX}/share/ghostscript/${PORTVERSION}/lib .endfor -.if defined(PDFENCRYPT) - @${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ + ${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ ${PREFIX}/share/ghostscript/${PORTVERSION}/lib -.endif -.if !defined(NOPORTDOC) +.if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/ghostscript/hpdj .for i in LGPL.txt NEWS README.hpdj example.mdf hpdj.html margins-A4.ps \ margins-A4Rotated.ps margins-Letter.ps margins-LetterRotated.ps - @ cd ${WRKSRC}/src; ${INSTALL_DATA} $i ${PREFIX}/share/ghostscript/hpdj + ${INSTALL_DATA} ${WRKSRC}/src/${i} ${PREFIX}/share/ghostscript/hpdj .endfor .endif diff --git a/print/ghostscript8/files/patch-aa b/print/ghostscript8/files/patch-aa index ef9be84a3dda..9330d7f9c504 100644 --- a/print/ghostscript8/files/patch-aa +++ b/print/ghostscript8/files/patch-aa @@ -53,7 +53,7 @@ # See libpng.mak for more information. -PSRCDIR=libpng -+PSRCDIR=${PREFIX}/include ++PSRCDIR=${LOCALBASE}/include PVERSION=10005 # Choose whether to use a shared version of the PNG library, and if so, @@ -97,7 +97,7 @@ # giving the full path names of the shared library directories. # XLDFLAGS can be set from the command line. -XLDFLAGS= -+XLDFLAGS=-L$(prefix)/lib ++XLDFLAGS=-L${LOCALBASE}/lib LDFLAGS=$(XLDFLAGS) -fno-common @@ -115,7 +115,7 @@ # not in $(XINCLUDE). -XINCLUDE=-I/usr/local/X/include -+XINCLUDE=-I$(X11BASE)/include -I$(PREFIX)/include ++XINCLUDE=-I${X11BASE}/include # Define the directory/ies and library names for the X11 library files. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH @@ -128,7 +128,7 @@ #XLIBDIRS=-L/usr/local/X/lib -XLIBDIRS=-L/usr/X11/lib -+XLIBDIRS=-L$(X11BASE)/lib ++XLIBDIRS=-L${X11BASE}/lib XLIBDIR= -XLIBS=Xt Xext X11 +#XLIBS=Xt Xext X11 diff --git a/print/ghostscript8/pkg-plist b/print/ghostscript8/pkg-plist index 5221d8baf05d..7adda9488619 100644 --- a/print/ghostscript8/pkg-plist +++ b/print/ghostscript8/pkg-plist @@ -28,6 +28,7 @@ bin/pv.sh bin/sysvlp.sh bin/unix-lpr.sh bin/wftopfa +libexec/lpr/if-hpdj share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm share/ghostscript/%%GS_VERSION%%/doc/C-style.htm share/ghostscript/%%GS_VERSION%%/doc/Commprod.htm @@ -444,3 +445,4 @@ share/ghostscript/hpdj/margins-LetterRotated.ps @dirrm share/ghostscript/fonts @dirrm share/ghostscript/hpdj @dirrm share/ghostscript +@unexec rmdir %D/libexec/lpr 2>/dev/null || true |