From owner-freebsd-ports Sun Jun 24 11:50:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F0D7537B409 for ; Sun, 24 Jun 2001 11:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5OIo1458315; Sun, 24 Jun 2001 11:50:01 -0700 (PDT) (envelope-from gnats) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.49.166]) by hub.freebsd.org (Postfix) with ESMTP id 0314637B401 for ; Sun, 24 Jun 2001 11:49:26 -0700 (PDT) (envelope-from stephen@cauchy.math.missouri.edu) Received: (from stephen@localhost) by cauchy.math.missouri.edu (8.11.4/8.11.4) id f5OInPU98475; Sun, 24 Jun 2001 13:49:25 -0500 (CDT) (envelope-from stephen) Message-Id: <200106241849.f5OInPU98475@cauchy.math.missouri.edu> Date: Sun, 24 Jun 2001 13:49:25 -0500 (CDT) From: Stephen Montgomery-Smith Reply-To: Stephen Montgomery-Smith To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/28387: hpijs drivers with ghostscript-5.50 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28387 >Category: ports >Synopsis: hpijs drivers with ghostscript-5.50 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 24 11:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Stephen Montgomery-Smith >Release: FreeBSD 4.3-STABLE i386 >Organization: University of Missouri >Environment: System: FreeBSD cauchy 4.3-STABLE FreeBSD 4.3-STABLE #0: Tue Jun 12 09:38:34 CDT 2001 stephen@cauchy:/usr/obj/usr/src/sys/cauchy i386 >Description: The hpijs drivers from HP produce really nice color output using a HP deskjet (like the 932C I have). I thought it would be nice to add this to the existing ghostscript-5.50a port. The maintainer of the port Andreas Klemm indicated he might commit this soon. >How-To-Repeat: >Fix: I am not really an expert, so maybe I didn't do things quite right, but this does work. diff -Nru ghostscript55-orig/Makefile ghostscript55/Makefile --- ghostscript55-orig/Makefile Sat Jun 23 22:08:59 2001 +++ ghostscript55/Makefile Sat Jun 23 22:08:59 2001 @@ -12,11 +12,12 @@ ftp://ftp.cs.wisc.edu/ghost/gnu/gs550/ \ ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/ \ http://www.ozemail.com.au/~geoffk/pdfencrypt/ \ - http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/ + http://www.erdw.ethz.ch/~bonk/ftp/gs-driver-distrib/ \ + ftp://ftp.debian.org/pub/sourceforge/hpinkjet/ MASTER_SITE_SUBDIR= ${PORTNAME} DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ - ${DECRYPT_PDF} ${HP850_DRV} -EXTRACT_ONLY= ${GS_SOURCES} + ${DECRYPT_PDF} ${HP850_DRV} ${HPIJS} +EXTRACT_ONLY= ${GS_SOURCES} ${HPIJS} MAINTAINER= andreas@FreeBSD.org @@ -27,6 +28,7 @@ NO_LATEST_LINK= "Older version." WRKSRC= ${WRKDIR}/gs5.50 +HPIJSSRC= ${WRKDIR}/hpijs0.97 USE_XLIB= yes USE_GMAKE= yes @@ -44,6 +46,9 @@ # Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html HP850_DRV= hp8xxs13.zip +# Drivers from hp +HPIJS= hpijs0.97.tar.gz + # replacement for pdf_sec.ps, that allows you to read encrypted PDF files DECRYPT_PDF= pdf_sec.ps @@ -62,6 +67,9 @@ ${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg unzip -L -q -aa -o ${DISTDIR}/${HP850_DRV} -d ${WRKSRC} -x devs.mak +pre-patch: + perl -pi.orig -e 's+\#define SRVPATH \"hpijs"+\#define SRVPATH \"${PREFIX}/libexec/hpijs\"+' ${HPIJSSRC}/gdevhpij.h + do-configure: .if defined(BATCH) @${SETENV} WRKSRC=${WRKSRC} ${SH} ${SCRIPTDIR}/configure.batch @@ -71,6 +79,13 @@ pre-build: ${MKDIR} ${WRKSRC}/obj + ${CP} ${HPIJSSRC}/gdevhpij.? ${WRKSRC} + +post-build: + (if [ -e ${WRKDIR}/.need_hpijs ]; then \ + cd ${HPIJSSRC}; \ + ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} makefile; \ + fi) pre-install: @${MKDIR} ${PREFIX}/share/ghostscript @@ -88,5 +103,11 @@ ${PREFIX}/share/ghostscript/5.50/doc ${INSTALL_DATA} ${WRKSRC}/readme.hp8 \ ${PREFIX}/share/ghostscript/5.50/doc + (if [ -e ${WRKDIR}/.need_hpijs ]; then \ + strip ${HPIJSSRC}/hpijs; \ + ${INSTALL_PROGRAM} ${HPIJSSRC}/hpijs ${PREFIX}/libexec; \ + ${INSTALL_DATA} ${HPIJSSRC}/hpijs_readme.html \ + ${PREFIX}/share/ghostscript/5.50/doc; \ + fi ) .include diff -Nru ghostscript55-orig/distinfo ghostscript55/distinfo --- ghostscript55-orig/distinfo Sat Jun 23 22:08:59 2001 +++ ghostscript55/distinfo Wed Dec 31 18:00:00 1969 @@ -1,5 +0,0 @@ -MD5 (gnu-gs-5.50a.tar.gz) = c12ea8dd56cfc453c99bd8864dfc90db -MD5 (gnu-gs-fonts-std-6.0.tar.gz) = 1521fab85ca3e8ce3ce781d4970e6c79 -MD5 (gnu-gs-fonts-other-6.0.tar.gz) = 33457d3f37de7ef03d2eea05a9e6aa4f -MD5 (hp8xxs13.zip) = e46bcac0aed0c511c8cc88a1093cc586 -MD5 (pdf_sec.ps) = 92cd6af5b4d7219e91e61b8351f0f7c4 diff -Nru ghostscript55-orig/files/patch-ba ghostscript55/files/patch-ba --- ghostscript55-orig/files/patch-ba Wed Dec 31 18:00:00 1969 +++ ghostscript55/files/patch-ba Sat Jun 23 22:08:59 2001 @@ -0,0 +1,40 @@ +--- ../../../ghostscript55/work/gs5.50/contrib.mak Sat Jun 23 12:43:15 2001 ++++ contrib.mak Sat Jun 23 12:23:26 2001 +@@ -453,6 +453,37 @@ + $(GLOBJ)gdevcd8.$(OBJ): $(GLSRC)gdevcd8.c $(GLSRC)gdevcd8.h $(PDEVH) + $(GLCC) $(GLO_)gdevcd8.$(OBJ) $(C_) $(GLSRC)gdevcd8.c + ++### ------------- Hewlett-Packard Co. Inkjet Driver -------------- ### ++ ++hpijs_=$(GLOBJ)gdevhpij.$(OBJ) ++ ++$(GLOBJ)gdevhpij.$(OBJ): $(GLSRC)gdevhpij.c $(PDEVH) ++ $(GLCC) $(GLO_)gdevhpij.$(OBJ) $(C_) $(GLSRC)gdevhpij.c ++ ++$(GLSRC)hpijs.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) hpijs $(hpijs_) ++ ++$(GLSRC)DJ630.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) DJ630 $(hpijs_) ++ ++$(GLSRC)DJ6xx.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) DJ6xx $(hpijs_) ++ ++$(GLSRC)DJ6xxP.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) DJ6xxP $(hpijs_) ++ ++$(GLSRC)DJ8xx.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) DJ8xx $(hpijs_) ++ ++$(GLSRC)DJ9xx.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) DJ9xx $(hpijs_) ++ ++$(GLSRC)DJ9xxVIP.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) DJ9xxVIP $(hpijs_) ++ ++$(GLSRC)AP21xx.dev : $(hpijs_) $(GLSRC)page.dev ++ $(SETPDEV) AP21xx $(hpijs_) ++ + ### ------------ The H-P PaintJet color printer device ----------------- ### + ### Note: this driver also supports the DEC LJ250 color printer, which ### + ### has a PaintJet-compatible mode, and the PaintJet XL. ### diff -Nru ghostscript55-orig/files/patch-bb ghostscript55/files/patch-bb --- ghostscript55-orig/files/patch-bb Wed Dec 31 18:00:00 1969 +++ ghostscript55/files/patch-bb Sat Jun 23 22:08:59 2001 @@ -0,0 +1,15 @@ +--- ../hpijs0.97/makefile-orig Sat Jun 23 19:12:39 2001 ++++ ../hpijs0.97/makefile Sat Jun 23 19:14:14 2001 +@@ -2,10 +2,10 @@ + -D_DJ9xxVIP -D_DJ630 -D_APOLLO2100 -D_DJ600 -D_DJ350 + + VERSION=0.97 +-INSTALLDIR=/usr/bin ++INSTALLDIR=${PREFIX}/libexec + + +-CC = g++ -c -Wall -DVERSION=\"$(VERSION)\" $(FLAGS) ++CC = g++ -c -Wall -DVERSION=\"$(VERSION)\" ${CXXFLAGS} $(FLAGS) + #CC = g++ -c -g -Wall -DVERSION=\"$(VERSION)\" -DCAPTURE $(FLAGS) + #CC = g++ -c -g -Wall -DVERSION=\"$(VERSION)\" $(FLAGS) + diff -Nru ghostscript55-orig/pkg-plist ghostscript55/pkg-plist --- ghostscript55-orig/pkg-plist Sat Jun 23 22:08:59 2001 +++ ghostscript55/pkg-plist Sat Jun 23 22:08:59 2001 @@ -362,6 +362,8 @@ share/ghostscript/fonts/z003034l.afm share/ghostscript/fonts/z003034l.pfb share/ghostscript/fonts/z003034l.pfm +libexec/hpijs +share/ghostscript/5.50/doc/hpijs_readme.html @dirrm share/ghostscript/fonts @dirrm share/ghostscript/5.50/doc @dirrm share/ghostscript/5.50/examples diff -Nru ghostscript55-orig/scripts/configure ghostscript55/scripts/configure --- ghostscript55-orig/scripts/configure Sat Jun 23 22:08:59 2001 +++ ghostscript55/scripts/configure Sat Jun 23 22:08:59 2001 @@ -62,6 +62,7 @@ "cljet5" "HP LaserJet 5/5M Color " OFF \ "lj5mono" "HP LaserJet 5 and 6 family (PCL5 / PCL XL), bitmap" OFF \ "lj5gray" "HP LaserJet 5 and 6 family, gray-scale bitmap" OFF \ + "hpijs" "HP LaserJet drivers from HP" ON \ "pj" "HP PaintJet XL driver " ON \ "pjetxl" "HP PaintJet XL driver (alternate)" OFF \ "pjxl" "HP PaintJet XL color printer" ON \ @@ -165,6 +166,7 @@ retval=$? choice=`cat /tmp/checklist.tmp.$$` +hpijschoice=`grep hpijs /tmp/checklist.tmp.$$` rm -f /tmp/checklist.tmp.$$ case $retval in @@ -177,6 +179,11 @@ exit 1 ;; esac + +if [ ! -z "$hpijschoice" ]; then + touch ${WRKSRC}/../.need_hpijs + choice="$choice DJ630 DJ6xx DJ6xxP DJ8xx DJ9xx DJ9xxVIP AP21xx" +fi # bring it into the right format with '.dev' appended to each driver name echo "DEVICE_DEVS=$choice" \ diff -Nru ghostscript55-orig/scripts/configure.batch ghostscript55/scripts/configure.batch --- ghostscript55-orig/scripts/configure.batch Sat Jun 23 22:08:59 2001 +++ ghostscript55/scripts/configure.batch Sun Jun 24 13:42:43 2001 @@ -1,8 +1,10 @@ #! /bin/sh cat - > ${WRKSRC}/unix-gcc.mak.new << !EOT -DEVICE_DEVS=appledmp.dev iwhi.dev iwlo.dev iwlq.dev hl7x0.dev bj10e.dev bj200.dev bjc600.dev bjc800.dev lbp8.dev lips3.dev m8510.dev uniprint.dev la50.dev la70.dev la75.dev la75plus.dev lj250.dev declj250.dev ln03.dev ap3250.dev epson.dev eps9mid.dev eps9high.dev lp8000.dev lq850.dev epsonc.dev st800.dev stcolor.dev lp2563.dev dnj650c.dev deskjet.dev djet500.dev cdeskjet.dev djet500c.dev cdjcolor.dev cdjmono.dev cdj500.dev cdj550.dev cdj670.dev cdj850.dev cdj890.dev cdj1600.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet3d.dev ljet4.dev lj4dith.dev cljet5.dev lj5mono.dev lj5gray.dev pj.dev pjetxl.dev pjxl.dev paintjet.dev pjxl300.dev pxlmono.dev pxlcolor.dev ibmpro.dev jetp3852.dev imagen.dev cp50.dev necp6.dev oce9050.dev oki182.dev okiibm.dev r4081.dev sj48.dev xes.dev bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev ccr.dev cgmmono.dev cgm8.dev cgm24.dev sxlcrt.dev dfaxhigh.dev dfaxlow.dev faxg3.dev faxg32d.dev faxg4.dev bit.dev bitrgb.dev bitcmyk.dev cif.dev miff24.d! ev inferno.dev jpeg.dev jpeggray.dev mgrmono.dev mgrgray2.dev mgrgray4.dev mgrgray8.dev mgr4.dev mgr8.dev pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev pdfwrite.dev plan9bm.dev pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev pkm.dev pkmraw.dev pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev psmono.dev psgray.dev psrgb.dev pswrite.dev epswrite.dev sgirgb.dev t4693d2.dev t4693d4.dev t4693d8.dev tek4696.dev tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tiff12nc.dev tiff24nc.dev tifflzw.dev tiffpack.dev x11.dev x11alpha.dev x11cmyk.dev x11cmyk2.dev x11cmyk4.dev x11cmyk8.dev x11gray2.dev x11gray4.dev x11mono.dev +DEVICE_DEVS=appledmp.dev iwhi.dev iwlo.dev iwlq.dev hl7x0.dev bj10e.dev bj200.dev bjc600.dev bjc800.dev lbp8.dev lips3.dev m8510.dev uniprint.dev la50.dev la70.dev la75.dev la75plus.dev lj250.dev declj250.dev ln03.dev ap3250.dev epson.dev eps9mid.dev eps9high.dev lp8000.dev lq850.dev epsonc.dev st800.dev stcolor.dev lp2563.dev dnj650c.dev deskjet.dev djet500.dev cdeskjet.dev djet500c.dev cdjcolor.dev cdjmono.dev cdj500.dev cdj550.dev cdj670.dev cdj850.dev cdj890.dev cdj1600.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet3d.dev ljet4.dev lj4dith.dev cljet5.dev lj5mono.dev lj5gray.dev pj.dev pjetxl.dev pjxl.dev paintjet.dev pjxl300.dev pxlmono.dev pxlcolor.dev ibmpro.dev jetp3852.dev imagen.dev cp50.dev necp6.dev oce9050.dev oki182.dev okiibm.dev r4081.dev sj48.dev xes.dev bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev ccr.dev cgmmono.dev cgm8.dev cgm24.dev sxlcrt.dev dfaxhigh.dev dfaxlow.dev faxg3.dev faxg32d.dev faxg4.dev bit.dev bitrgb.dev bitcmyk.dev cif.dev miff24.d! ev inferno.dev jpeg.dev jpeggray.dev mgrmono.dev mgrgray2.dev mgrgray4.dev mgrgray8.dev mgr4.dev mgr8.dev pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev pdfwrite.dev plan9bm.dev pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev pkm.dev pkmraw.dev pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev psmono.dev psgray.dev psrgb.dev pswrite.dev epswrite.dev sgirgb.dev t4693d2.dev t4693d4.dev t4693d8.dev tek4696.dev tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tiff12nc.dev tiff24nc.dev tifflzw.dev tiffpack.dev x11.dev x11alpha.dev x11cmyk.dev x11cmyk2.dev x11cmyk4.dev x11cmyk8.dev x11gray2.dev x11gray4.dev x11mono.dev hpijs DJ630 DJ6xx DJ6xxP DJ8xx DJ9xx DJ9xxVIP AP21xx !EOT + +touch ${WRKSRC}/../.need_hpijs # create one new Makefile, where DEVICE_DEVS contains all wanted devices cat ${WRKSRC}/unix-gcc.mak >> ${WRKSRC}/unix-gcc.mak.new >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message