Subject: pkg/29047: add pcl3 driver to ghostscript
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Alexander Becher <abecher@kawo2.rwth-aachen.de>
List: pkgsrc-bugs
Date: 01/23/2005 00:12:00
>Number:         29047
>Category:       pkg
>Synopsis:       add pcl3 driver to ghostscript
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 00:12:00 +0000 2005
>Originator:     Alexander Becher
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
	
	
System: NetBSD abc 2.0_BETA NetBSD 2.0_BETA (MYKERNEL-2-0.1) #0: Mon Aug 23 19:33:36 CEST 2004 alex@abc:/usr/local/obj/kernel/MYKERNEL-2-0.1 i386
Architecture: i386
Machine: i386
>Description:
There is a driver for printing on PCL 3 printers which works quite well
(better in fact than hpijs). The patch in the "Fix" section adds this
driver to the gs binary from the ghostscript-gnu package.
>How-To-Repeat:
	n/a
>Fix:
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript-gnu/Makefile.common,v
retrieving revision 1.16
diff -u -r1.16 Makefile.common
--- Makefile.common	13 Nov 2004 21:28:28 -0000	1.16
+++ Makefile.common	23 Jan 2005 00:08:28 -0000
@@ -35,6 +35,12 @@
 DISTFILES+=		${JPEG_SRCS}
 EXTRACT_ONLY+=		${JPEG_SRCS}
 
+PCL3_SRCS=		pcl3-3.3.tar.gz
+PCL3_WRKSRC=		${WRKDIR}/pcl3-3.3
+SITES_${PCL3_SRCS}=	http://home.vrweb.de/~martin.lottermoser/pcl3dist/
+DISTFILES+=		${PCL3_SRCS}
+EXTRACT_ONLY+=		${PCL3_SRCS}
+
 DISTINFO_FILE=		${.CURDIR}/../../print/ghostscript-gnu/distinfo
 FILESDIR=		${.CURDIR}/../../print/ghostscript-gnu/files
 PATCHDIR=		${.CURDIR}/../../print/ghostscript-gnu/patches
@@ -73,15 +79,22 @@
 	${MKDIR} ${WRKSRC}/obj
 	${RM} -f ${WRKSRC}/jpeg
 	${LN} -s ${JPEG_WRKSRC} ${WRKSRC}/jpeg
+	(cd ${PCL3_WRKSRC} && ${TAR} xf pcl3.tar)
+	${LN} -s ${PCL3_WRKSRC} ${WRKSRC}/pcl3
 	cd ${WRKSRC}/lib; for file in gs_res.ps; do			\
 		${SED}  -e "s|/Resource/|${GS_RESOURCEDIR}/|g"		\
 			$${file} > $${file}.fixed;			\
 		${MV} -f $${file}.fixed $${file};			\
 	done
 
+pre-configure:
+	${CAT} ${PCL3_WRKSRC}/src/contrib.mak-7.00.add			\
+		>> ${WRKSRC}/src/contrib.mak
+
 # Reinstall the gs binary so that it's properly stripped.
 post-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/gs ${PREFIX}/bin/gs
+	${INSTALL_MAN} ${PCL3_WRKSRC}/doc/gs-pcl3.1 ${PREFIX}/man/man1
 
 .include "../../graphics/png/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript-gnu/PLIST,v
retrieving revision 1.3
diff -u -r1.3 PLIST
--- PLIST	25 Mar 2004 15:35:48 -0000	1.3
+++ PLIST	23 Jan 2005 00:08:28 -0000
@@ -57,6 +57,7 @@
 man/man1/gslj.1
 man/man1/gslp.1
 man/man1/gsnd.1
+man/man1/gs-pcl3.1
 man/man1/pdf2dsc.1
 man/man1/pdf2ps.1
 man/man1/pdfopt.1
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript-gnu/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	25 Mar 2004 15:35:48 -0000	1.2
+++ distinfo	23 Jan 2005 00:08:28 -0000
@@ -4,5 +4,7 @@
 Size (ghostscript/ghostscript-7.07.tar.bz2) = 4138372 bytes
 SHA1 (ghostscript/jpegsrc.v6b.tar.gz) = 7079f0d6c42fad0cfba382cf6ad322add1ace8f9
 Size (ghostscript/jpegsrc.v6b.tar.gz) = 613261 bytes
-SHA1 (patch-aa) = f9d706b19430c32f568316c0b02eee792e311236
+SHA1 (ghostscript/pcl3-3.3.tar.gz) = d643dfdd4d3ed650477ed8a8599cec735410690b
+Size (ghostscript/pcl3-3.3.tar.gz) = 301470 bytes
+SHA1 (patch-aa) = af7b4a20470d70636fa2c83dd9447ff727ad20c5
 SHA1 (patch-ab) = ee1cad8503700d088e2a4dcf4c3d14237cb84b0e
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript-gnu/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-aa
--- patches/patch-aa	13 Sep 2002 05:43:28 -0000	1.1.1.1
+++ patches/patch-aa	23 Jan 2005 00:08:28 -0000
@@ -13,3 +13,12 @@
  GS_DOCDIR=$(docdir)
  
  # Define the default directory/ies for the runtime
+@@ -365,7 +365,7 @@ DEVICE_DEVS=$(DISPLAY_DEV) @X11DEVS@
+ DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpgray.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)bmp32b.dev
+ DEVICE_DEVS2=
+ DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)lj5mono.dev $(DD)lj5gray.dev
+-DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
++DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev $(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pcl3.dev
+ DEVICE_DEVS5=$(DD)uniprint.dev @IJSDEVS@ @STPDEVS@
+ DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
+ DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev


>Unformatted: