diff options
author | andreas <andreas@FreeBSD.org> | 2000-04-20 17:31:44 +0000 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 2000-04-20 17:31:44 +0000 |
commit | 6b48feec219b7e1f7b115be59457a87b9d79a746 (patch) | |
tree | 2d6221063a5ac19dfa966e6302f7f0e17d226362 /print/ghostscript-gpl/Makefile | |
parent | 0b048576261b0426e8a8f78f6f075f360f7e8ce2 (diff) | |
download | FreeBSD-ports-6b48feec219b7e1f7b115be59457a87b9d79a746.zip FreeBSD-ports-6b48feec219b7e1f7b115be59457a87b9d79a746.tar.gz |
Add HPDJ driver
an enhanced PCL3 (PCL3+) driver
that was part of gs5 port and got lost in gs55 port.
Now it reappears in gs 6.01 ;-)
ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/pcl3.html
Diffstat (limited to 'print/ghostscript-gpl/Makefile')
-rw-r--r-- | print/ghostscript-gpl/Makefile | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile index ff36ddd..f6cf0be 100644 --- a/print/ghostscript-gpl/Makefile +++ b/print/ghostscript-gpl/Makefile @@ -11,9 +11,10 @@ CATEGORIES= print MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs601/ \ ftp://ftp.cs.wisc.edu/ghost/aladdin/fonts/ \ http://www.ozemail.com.au/~geoffk/pdfencrypt/ \ - http://www.proaxis.com/~mgelhaus/linux/software/hp880c/1.31/ + http://www.proaxis.com/~mgelhaus/linux/software/hp880c/1.31/ \ + ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ - ${DECRYPT_PDF} ${HP8XX_DRV} + ${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV} MAINTAINER= andreas@FreeBSD.org @@ -24,7 +25,7 @@ LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png PLIST_SUB= GS_VERSION=${PORTVERSION} USE_XLIB= yes -EXTRACT_ONLY= ${GS_SOURCES} +EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} WRKSRC= ${WRKDIR}/gs${PORTVERSION} USE_GMAKE= yes MAKEFILE= src/unix-gcc.mak @@ -34,7 +35,8 @@ CFLAGS+= -I${PREFIX}/include MAN1= gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \ gslj.1 gslp.1 gsnd.1 pdf2dsc.1 pdf2ps.1 pf2afm.1 \ pfbtopfa.1 printafm.1 ps2ascii.1 ps2epsi.1 ps2pdf12.1 \ - ps2pdf13.1 ps2pdf.1 ps2pdfwr.1 ps2ps.1 wftopfa.1 + ps2pdf13.1 ps2pdf.1 ps2pdfwr.1 ps2ps.1 wftopfa.1 \ + gs-hpdj.1 GS_SOURCES= ghostscript-${PORTVERSION}.tar.gz # Note: the following two are real files that have symlinks with @@ -49,6 +51,10 @@ GS_FONTS_OTHER= ghostscript-fonts-other-6.0.tar.gz # http://www.proaxis.com/~mgelhaus/linux/software/hp880c/hp880c.html HP8XX_DRV= gdevcd8.tar.gz +# HPDJ, additional driver for HP PCL3 Printers, by Martin Lottermoser +# ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/pcl3.html +HPDJ_DRV= hpdj-2.6.tar.gz + # contributed uniprint profiles CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp @@ -72,9 +78,15 @@ pre-fetch: .endif post-extract: - @${LN} -s ${WRKDIRPREFIX}${PORTSDIR}/graphics/jpeg/work/jpeg-6b \ + @${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 + @${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 do-configure: .if defined(BATCH) @@ -98,6 +110,9 @@ post-install: @strip ${PREFIX}/bin/gs @${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 .for i in ${CONTRIB_UPP} @${INSTALL_DATA} ${FILESDIR}/$i \ ${PREFIX}/share/ghostscript/${PORTVERSION}/lib @@ -106,5 +121,13 @@ post-install: @${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ ${PREFIX}/share/ghostscript/${PORTVERSION}/lib .endif +.if !defined(NOPORTDOC) + @${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 + +.endfor +.endif .include <bsd.port.mk> |