summaryrefslogtreecommitdiffstats
path: root/print/ghostscript5
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1997-08-27 06:52:44 +0000
committerandreas <andreas@FreeBSD.org>1997-08-27 06:52:44 +0000
commit93b215e64d3dbf4ecca2c348459897f20e8d9a58 (patch)
treedddf32549da56a3a34a47901305f159fd681b934 /print/ghostscript5
parent5b5d3ca2c3d0668dc0b621509d754cbd23476afe (diff)
downloadFreeBSD-ports-93b215e64d3dbf4ecca2c348459897f20e8d9a58.zip
FreeBSD-ports-93b215e64d3dbf4ecca2c348459897f20e8d9a58.tar.gz
Included new driver version 1.2 for HP 850 printers and related ...
See: http://bonk.ethz.ch/hp850/hp850.html Additional driver will be fetched directly from internet now Because this driver source is packed as a .zip file (tada *sigh*) and contains ^M's (where the combination \^M confuses gcc) we have to BUILD_DEPEND on unzip and pipe the source and header files through sed to wipe out the ^M's ... As requested by: Lars Koeller
Diffstat (limited to 'print/ghostscript5')
-rw-r--r--print/ghostscript5/Makefile19
-rw-r--r--print/ghostscript5/distinfo1
2 files changed, 16 insertions, 4 deletions
diff --git a/print/ghostscript5/Makefile b/print/ghostscript5/Makefile
index c6463d0..c83dfb8 100644
--- a/print/ghostscript5/Makefile
+++ b/print/ghostscript5/Makefile
@@ -3,18 +3,21 @@
# Date created: Tue Jun 10 21:58:54 CEST 1997
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $Id: Makefile,v 1.5 1997/07/13 18:49:28 max Exp $
+# $Id: Makefile,v 1.6 1997/08/24 14:36:24 andreas Exp $
#
DISTNAME= ghostscript-5.03
CATEGORIES= print
-MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/
-DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER}
+MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/ \
+ ftp://bonk.ethz.ch/gs-driver-distrib/
+DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
+ ${HP850_DRV}
MAINTAINER= andreas@FreeBSD.org
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg \
- /nonexistent:${PORTSDIR}/graphics/png
+ /nonexistent:${PORTSDIR}/graphics/png \
+ unzip:${PORTSDIR}/archiver/unzip
DEPENDS_TARGET= extract
MAKE_ENV= PORTSDIR=${PORTSDIR}
@@ -33,6 +36,9 @@ GS_SOURCES+= ghostscript-5.03gnu.tar.gz
GS_FONTS_STD= ghostscript-fonts-std-4.0.tar.gz
GS_FONTS_OTHER= ghostscript-fonts-other-5.0.tar.gz
+# Additional driver HP 850, see http://bonk.ethz.ch/hp850/hp850.html
+HP850_DRV= hp850.zip
+
.if defined(A4)
CFLAGS+= -DA4
.endif
@@ -54,6 +60,11 @@ post-extract:
touch ${WRKSRC}/trees.o
ln -s ${PORTSDIR}/graphics/jpeg/work/jpeg-6a ${WRKSRC}/jpeg-6a
ln -s ${PORTSDIR}/graphics/png/work/libpng-0.96 ${WRKSRC}/libpng
+ cd ${WRKSRC} && unzip ${DISTDIR}/${HP850_DRV}
+.for file in gdevcd8.c gdevcd8.h
+# ( cd ${WRKSRC} && sed -e "s/\\\\,//" < ${file} | sed -e "s/\\ //" > ${file}.tmp && mv ${file}.tmp ${file} )
+ ( cd ${WRKSRC} && sed -e "s/ //" < ${file} > ${file}.tmp && mv ${file}.tmp ${file} )
+.endfor
do-configure:
.if defined(BATCH)
diff --git a/print/ghostscript5/distinfo b/print/ghostscript5/distinfo
index 1e59f07..70ccc85 100644
--- a/print/ghostscript5/distinfo
+++ b/print/ghostscript5/distinfo
@@ -2,3 +2,4 @@ MD5 (ghostscript-5.03.tar.gz) = 43aadf534775dc47f3ca2c235023f909
MD5 (ghostscript-5.03gnu.tar.gz) = f33fa05bec91d96fef34fe902629f974
MD5 (ghostscript-fonts-std-4.0.tar.gz) = 1e0fe2149affd80deaaae144227049b9
MD5 (ghostscript-fonts-other-5.0.tar.gz) = 703bcc5592f4b4644cda454bcc45c7d6
+MD5 (hp850.zip) = 9d8d59eb8da9ec394d7aeb1560ca8d40
OpenPOWER on IntegriCloud