aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-09-27 10:31:21 +0800
committersteve <steve@FreeBSD.org>1999-09-27 10:31:21 +0800
commit6bae33a9ad56f27f2ebae3fdca4850b90e1b841a (patch)
treee037c1d12f783288a28cd18b9de3019c3939929e /print
parent22ce10761b9409594d2a90df05eddce22dee42a8 (diff)
downloadfreebsd-ports-gnome-6bae33a9ad56f27f2ebae3fdca4850b90e1b841a.tar.gz
freebsd-ports-gnome-6bae33a9ad56f27f2ebae3fdca4850b90e1b841a.tar.zst
freebsd-ports-gnome-6bae33a9ad56f27f2ebae3fdca4850b90e1b841a.zip
Update MASTER_SITE, don't install the PDF crypt stuff because of possible
export restrictions, and fix a few whitespace nits. PR: 13661 Submitted by: KATO Tsugur <tkato@prontomail.ne.jp>
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript5/Makefile44
-rw-r--r--print/ghostscript5/files/patch-aa4
-rw-r--r--print/ghostscript5/pkg-descr2
3 files changed, 28 insertions, 22 deletions
diff --git a/print/ghostscript5/Makefile b/print/ghostscript5/Makefile
index d75e7959e2d8..00412ff5a02c 100644
--- a/print/ghostscript5/Makefile
+++ b/print/ghostscript5/Makefile
@@ -8,16 +8,15 @@
DISTNAME= ghostscript-5.10
CATEGORIES= print
-MASTER_SITES= ftp://ftp.pdb.sni.de/pub/utilities/misc/ \
- http://www.ozemail.com.au/~geoffk/pdfencrypt/ \
- ftp://ftp.cs.wisc.edu/ghost/gnu/gs510/ \
- $(MASTER_SITE_GNU)
+MASTER_SITES= ${MASTER_SITE_GNU} \
+ ftp://ftp.cs.wisc.edu/ghost/gnu/gs510/ \
+ ftp://ftp.pdb.sni.de/pub/utilities/misc/
MASTER_SITE_SUBDIR= ghostscript
-DISTFILES= ${PCL3_DRV} ${DECRYPT_PDF} ghostscript-5.10.tar.gz
+DISTFILES= ${GS_SOURCES} ${PCL3_DRV}
MAINTAINER= ports@FreeBSD.org
-RUN_DEPENDS= $(LOCALBASE)/share/ghostscript/fonts/Fontmap:${PORTSDIR}/print/gsfonts
+RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/Fontmap:${PORTSDIR}/print/gsfonts
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract \
/nonexistent:${PORTSDIR}/graphics/png:extract
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
@@ -35,27 +34,32 @@ GS_SOURCES= ghostscript-5.10.tar.gz
# Additional driver for HP PCL3 Printers
PCL3_DRV= hpdj-2.5.tar.gz
-# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
-DECRYPT_PDF= pdf_sec.ps
-
post-extract:
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/png/work/libpng-1.0.3 ${WRKSRC}/libpng
# additional PCL3 driver
- $(TAR) -xvf ${WRKDIR}/hpdj-2.5/hpdj.tar -C $(WRKSRC)
- ${PATCH} --directory=${WRKSRC} <${WRKSRC}/devs.mak-5.10.diff
- ${PATCH} --directory=${WRKSRC} <${WRKSRC}/zmedia2.c-5.10.diff
+ @${TAR} -xf ${WRKDIR}/hpdj-2.5/hpdj.tar -C ${WRKSRC}
+ @${PATCH} -d ${WRKSRC} --forward --quiet -E < ${WRKSRC}/devs.mak-5.10.diff
+ @${PATCH} -d ${WRKSRC} --forward --quiet -E < ${WRKSRC}/zmedia2.c-5.10.diff
do-configure:
- @(cd ${WRKSRC}; /bin/sh tar_cat )
+ @(cd ${WRKSRC}; ${SH} tar_cat )
post-install:
- strip ${PREFIX}/bin/gs
- ${INSTALL_DATA} ${DISTDIR}/${DECRYPT_PDF} \
- ${PREFIX}/share/ghostscript/5.10
- $(MKDIR) ${PREFIX}/libexec/lpr
- ${INSTALL_SCRIPT} $(WRKSRC)/pj-gs.sh ${PREFIX}/libexec/lpr
- ${INSTALL_SCRIPT} $(WRKSRC)/sysvlp.sh ${PREFIX}/libexec/lpr
- ${INSTALL_SCRIPT} $(WRKSRC)/if-hpdj ${PREFIX}/libexec/lpr
+ @strip ${PREFIX}/bin/gs
+ @${MKDIR} ${PREFIX}/libexec/lpr
+ ${INSTALL_SCRIPT} ${WRKSRC}/pj-gs.sh ${PREFIX}/libexec/lpr
+ ${INSTALL_SCRIPT} ${WRKSRC}/sysvlp.sh ${PREFIX}/libexec/lpr
+ ${INSTALL_SCRIPT} ${WRKSRC}/if-hpdj ${PREFIX}/libexec/lpr
+.if defined(PDFENCRYPT)
+ ${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps ${PREFIX}/share/ghostscript/5.10
+.endif
+
+# 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
.include <bsd.port.mk>
diff --git a/print/ghostscript5/files/patch-aa b/print/ghostscript5/files/patch-aa
index 6a964d43dba5..f8695bd7c735 100644
--- a/print/ghostscript5/files/patch-aa
+++ b/print/ghostscript5/files/patch-aa
@@ -118,7 +118,7 @@
# Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
# not in $(XINCLUDE).
-! XINCLUDE=-I$(X11BASE)/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
@@ -143,7 +143,7 @@
! XLIBS=Xt SM ICE Xext X11
#XLIBDIRS=-L/usr/local/X/lib
-! XLIBDIRS=-L$(X11BASE)/lib
+! XLIBDIRS=-L${X11BASE}/lib
XLIBDIR=
! #XLIBS=Xt Xext X11
diff --git a/print/ghostscript5/pkg-descr b/print/ghostscript5/pkg-descr
index 585156056869..1b51a56933c8 100644
--- a/print/ghostscript5/pkg-descr
+++ b/print/ghostscript5/pkg-descr
@@ -15,3 +15,5 @@ gs-hpdj(1) for details.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PostScript is a trademark of Adobe Systems, Incorporated.
+
+WWW: http://www.gnu.org/software/ghostscript/ghostscript.html