1997-06-11 06:20:47 +00:00
|
|
|
# New ports collection makefile for: ghostscript
|
1999-01-04 03:34:06 +00:00
|
|
|
# Version required: 5.10
|
|
|
|
# Date created: 11 December 1998
|
|
|
|
# Whom: giffunip
|
1997-06-11 06:20:47 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1997-06-11 06:20:47 +00:00
|
|
|
#
|
|
|
|
|
1999-01-04 03:34:06 +00:00
|
|
|
DISTNAME= ghostscript-5.10
|
1997-06-11 06:20:47 +00:00
|
|
|
CATEGORIES= print
|
1999-10-25 21:54:17 +00:00
|
|
|
MASTER_SITES= ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ \
|
|
|
|
${MASTER_SITE_GNU} \
|
|
|
|
ftp://ftp.cs.wisc.edu/ghost/gnu/gs510/
|
1999-01-27 07:41:29 +00:00
|
|
|
MASTER_SITE_SUBDIR= ghostscript
|
1999-09-27 02:31:21 +00:00
|
|
|
DISTFILES= ${GS_SOURCES} ${PCL3_DRV}
|
1998-12-03 08:24:21 +00:00
|
|
|
|
1999-01-04 03:34:06 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1999-09-27 02:31:21 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/Fontmap:${PORTSDIR}/print/gsfonts
|
1997-10-13 11:22:43 +00:00
|
|
|
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract \
|
1999-01-04 03:34:06 +00:00
|
|
|
/nonexistent:${PORTSDIR}/graphics/png:extract
|
1999-01-23 07:05:35 +00:00
|
|
|
LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1998-11-28 09:07:24 +00:00
|
|
|
USE_XLIB= yes
|
1999-01-04 03:34:06 +00:00
|
|
|
EXTRACT_ONLY= ${GS_SOURCES} ${PCL3_DRV}
|
|
|
|
WRKSRC= ${WRKDIR}/gs5.10
|
|
|
|
|
1997-06-11 06:20:47 +00:00
|
|
|
MAKEFILE= unix-gcc.mak
|
1999-01-04 03:34:06 +00:00
|
|
|
MAKE_FLAGS= prefix=${PREFIX} CFLAGS="${CFLAGS}" -f
|
|
|
|
MAN1= gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 gs-hpdj.1
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1999-01-04 03:34:06 +00:00
|
|
|
GS_SOURCES= ghostscript-5.10.tar.gz
|
1997-06-11 06:20:47 +00:00
|
|
|
|
1999-01-04 03:34:06 +00:00
|
|
|
# Additional driver for HP PCL3 Printers
|
1999-10-25 21:54:17 +00:00
|
|
|
PCL3_DRV= hpdj-2.6.tar.gz
|
1997-08-27 06:52:44 +00:00
|
|
|
|
1997-06-11 06:20:47 +00:00
|
|
|
post-extract:
|
1999-07-15 21:53:15 +00:00
|
|
|
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg
|
|
|
|
${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/png/work/libpng-1.0.3 ${WRKSRC}/libpng
|
1999-01-04 03:34:06 +00:00
|
|
|
# additional PCL3 driver
|
1999-10-25 21:54:17 +00:00
|
|
|
@${TAR} -xf ${WRKDIR}/hpdj-2.6/hpdj.tar -C ${WRKSRC}
|
|
|
|
@${CAT} ${WRKSRC}/devs.mak-5.10.add >> ${WRKSRC}/devs.mak
|
1999-09-27 02:31:21 +00:00
|
|
|
@${PATCH} -d ${WRKSRC} --forward --quiet -E < ${WRKSRC}/zmedia2.c-5.10.diff
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
do-configure:
|
1999-09-27 02:31:21 +00:00
|
|
|
@(cd ${WRKSRC}; ${SH} tar_cat )
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
post-install:
|
1999-09-27 02:31:21 +00:00
|
|
|
@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
|
1997-06-11 06:20:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|