aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2005-06-06 23:00:37 +0800
committerbarner <barner@FreeBSD.org>2005-06-06 23:00:37 +0800
commit0c87f2356fe77008c3b3c244d0df5e5a5821d980 (patch)
treece5e64e665f0611548f9380e7ac0d4a2da09d9bb /print
parent7672be0f37a6010e87f0d6b0d14e96a3d1213166 (diff)
downloadfreebsd-ports-gnome-0c87f2356fe77008c3b3c244d0df5e5a5821d980.tar.gz
freebsd-ports-gnome-0c87f2356fe77008c3b3c244d0df5e5a5821d980.tar.zst
freebsd-ports-gnome-0c87f2356fe77008c3b3c244d0df5e5a5821d980.zip
- Add the PCL3 driver.
- The Ghostscript 8.15 compatibilty patch (patch-pcl3_eprn_eprnrend.c) is by Till Kamppeter (till.kamppeter at gmx.net) and has originally been posted on [3] Submitted by: "Pedro F. Giffuni" <giffunip@asme.org> [1], Jose M Rodriguez <josemi@freebsd.jazztel.es> [2] PR: ports/77185 [1], ports/76731 (partly) [2] Obtained from: http://www.linuxprinting.org/download/printing/ghostscript-8.x/patches/ghostscript-8.15-pcl3-driver-api8.patch [3]
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-gpl/Makefile47
-rw-r--r--print/ghostscript-gpl/distinfo2
-rw-r--r--print/ghostscript-gpl/files/patch-pcl3_eprn_eprnrend.c170
-rw-r--r--print/ghostscript-gpl/pkg-descr2
-rw-r--r--print/ghostscript-gpl/pkg-plist59
-rw-r--r--print/ghostscript-gpl/scripts/configure2
-rw-r--r--print/ghostscript8/Makefile47
-rw-r--r--print/ghostscript8/distinfo2
-rw-r--r--print/ghostscript8/files/patch-pcl3_eprn_eprnrend.c170
-rw-r--r--print/ghostscript8/pkg-descr2
-rw-r--r--print/ghostscript8/pkg-plist59
-rw-r--r--print/ghostscript8/scripts/configure2
12 files changed, 526 insertions, 38 deletions
diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile
index 4d11529e67fe..72758b9fed31 100644
--- a/print/ghostscript-gpl/Makefile
+++ b/print/ghostscript-gpl/Makefile
@@ -12,6 +12,7 @@ PORTEPOCH= ${GS_EPOCH}
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,bjc250/} \
http://www.gelhaus.net/hp880c/1.4beta/:hp8xx \
+ http://home.vrweb.de/~martin.lottermoser/pcl3dist/:pcl3 \
http://www.harsch.net/Download/:dj970 \
http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/:md2k \
${MASTER_SITE_PORTS_JP:S/$/:ports_jp,ports_jp_gs/} \
@@ -29,6 +30,7 @@ MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
PKGNAMESUFFIX= -gpl
DISTFILES= ${GS_SRCS}:gs_srcs \
${HP8XX_SRCS}:hp8xx \
+ ${PCL3_SRCS}:pcl3 \
${DJ970_SRCS}:dj970 \
${MD2K_SRCS}:md2k \
${ALPS_SRCS}:ports_jp_gs \
@@ -59,6 +61,9 @@ USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \
XCFLAGS="${XCFLAGS}"
+ALL_TARGET= all
+INSTALL_TARGET= install
+
PLIST_SUB= GS_VERSION="${GS_VERSION}" \
CIDFONTDIR=${CIDFONTDIR}
@@ -121,6 +126,19 @@ CIDFONTDIR= ${PREFIX}/share/ghostscript/${GS_VERSION}/Resource
HP8XX= cdj880
HP8XX_SRCS= gdevcd8.tar.gz
+# PCL3 (hpdj successor now in RELEASE quality)
+# additional driver for HP PCL3 printers, by Martin Lottermoser
+# http://home.vrweb.de/martin.lottermoser/pcl3.html
+ALL_TARGET+= pcl3opts
+INSTALL_TARGET+= pcl3-install
+PCL3= pcl3
+PCL3_VERS= 3.3
+PCL3_NAME= ${PCL3}-${PCL3_VERS}
+PCL3_SRCS= ${PCL3_NAME}.tar.gz
+PCL3_MAN1= gs-pcl3.1 pcl3opts.1
+MAN1+= ${PCL3_MAN1}
+
+#
# DJ970 - additional driver for HP DeskJet 970, supports duplex printing
# http://www.harsch.net/Ghostscript/ghostscript.html
DJ970= gdevdj9
@@ -230,6 +248,12 @@ post-extract:
# for HP8XX driver
${ECHO_MSG} ">>> extracting ${HP8XX_SRCS} ..."
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${HP8XX_SRCS}
+# for PCL3 driver
+ ${ECHO_MSG} ">>> extracting ${PCL3_SRCS} ..."
+ ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${PCL3_SRCS}
+ ${LN} -sf ${PCL3_NAME} ${WRKSRC}/${PCL3}
+ ${TAR} -C ${WRKSRC}/${PCL3_NAME} -xf \
+ ${WRKSRC}/${PCL3_NAME}/${PCL3}.tar
# for DJ970 driver
${ECHO_MSG} ">>> extracting ${DJ970_SRCS} ..."
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DJ970_SRCS} ${WRKSRC}/src
@@ -301,6 +325,10 @@ pre-configure:
${ECHO_MSG} ">>> adding ${HP8XX} driver to contrib.mak ..."
${CAT} ${FILESDIR}/cdj850.contrib.mak \
>> ${WRKSRC}/src/contrib.mak
+# for PCL3 driver
+ ${ECHO_MSG} ">>> adding ${PCL3} driver to contrib.mak ..."
+ ${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-7.00.add \
+ >> ${WRKSRC}/src/contrib.mak
# for DJ970 driver
${ECHO_MSG} ">>> adding ${DJ970} driver to contrib.mak ..."
${CAT} ${FILESDIR}/dj970.contrib.mak \
@@ -447,6 +475,18 @@ post-install:
.else
${STRIP_CMD} ${PREFIX}/bin/gs
.endif
+# for PCL3 driver, stuff which might be interesting for runtime
+ ${ECHO_MSG} ">>> creating ${PCL3} destdir ..."
+ ${MKDIR} ${DATADIR}/${GS_VERSION}/${PCL3}
+ ${ECHO_MSG} ">>> installing files in ${PCL3} destdir ..."
+.for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
+ ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
+ ps/margins-A4Rotated.ps ps/margins-Env10Rotated.ps \
+ ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
+ ps/margins-LetterRotated.ps
+ ${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
+ ${DATADIR}/${GS_VERSION}/${PCL3}
+.endfor
# for EPAG driver
${ECHO_MSG} ">>> installing ${EPAG} utility in bindir ..."
${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin
@@ -462,6 +502,13 @@ post-install:
.if !defined(NOPORTDOCS)
${ECHO_MSG} ">>> installing PORTDOC stuff ..."
${MKDIR} ${DOCSDIR}/${GS_VERSION}
+# for PCL3 driver
+ ${ECHO_MSG} ">>> installing ${PCL3} docs ..."
+ ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${PCL3}
+.for i in NEWS doc/how-to-report.txt
+ ${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
+ ${DOCSDIR}/${GS_VERSION}/${PCL3}
+.endfor
# for MD2K driver
${ECHO_MSG} ">>> installing ${MD2K} docs ..."
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${MD2K}
diff --git a/print/ghostscript-gpl/distinfo b/print/ghostscript-gpl/distinfo
index 0b5cf983b1a1..9538f043db69 100644
--- a/print/ghostscript-gpl/distinfo
+++ b/print/ghostscript-gpl/distinfo
@@ -2,6 +2,8 @@ MD5 (ghostscript/ghostscript-8.15.tar.bz2) = ab8502f30629b730e0c9ca56b88a6b9d
SIZE (ghostscript/ghostscript-8.15.tar.bz2) = 6931694
MD5 (ghostscript/gdevcd8.tar.gz) = 5ce48bff6082a023199c8ede4aae63a0
SIZE (ghostscript/gdevcd8.tar.gz) = 24803
+MD5 (ghostscript/pcl3-3.3.tar.gz) = 34e664c2a98b847598f8441f8cac7ab6
+SIZE (ghostscript/pcl3-3.3.tar.gz) = 301470
MD5 (ghostscript/gdevdj9.c.gz) = 3a9c20c34b79ffab434abfbcc31d1c27
SIZE (ghostscript/gdevdj9.c.gz) = 20139
MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24
diff --git a/print/ghostscript-gpl/files/patch-pcl3_eprn_eprnrend.c b/print/ghostscript-gpl/files/patch-pcl3_eprn_eprnrend.c
new file mode 100644
index 000000000000..d9adf9bbafa2
--- /dev/null
+++ b/print/ghostscript-gpl/files/patch-pcl3_eprn_eprnrend.c
@@ -0,0 +1,170 @@
+-- pcl3/eprn/eprnrend.c.orig 2005-01-19 00:24:24.924311968 +0100
++++ pcl3/eprn/eprnrend.c 2005-01-19 01:24:06.024901928 +0100
+@@ -161,8 +161,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_RGB(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ static const gx_color_value half = gx_max_color_value/2;
+ gx_color_index value = 0;
+ const eprn_Device *dev = (eprn_Device *)device;
+@@ -197,8 +199,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_CMY_or_K(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ static const gx_color_value half = gx_max_color_value/2;
+ gx_color_index value = (CYAN_BIT | MAGENTA_BIT | YELLOW_BIT);
+ const eprn_Device *dev = (eprn_Device *)device;
+@@ -240,8 +244,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_RGB_flex(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ gx_color_index value = 0;
+ gx_color_value step;
+ unsigned int level;
+@@ -284,8 +290,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_CMY_or_K_flex(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ const eprn_Device *dev = (eprn_Device *)device;
+
+ #ifdef EPRN_TRACE
+@@ -298,11 +306,18 @@
+ /* Treat pure grey levels differently if we have black. This implies that for
+ CMY+K only "true" grey shades will be printed with black ink, all others
+ will be mixed from CMY. */
+- if (dev->eprn.colour_model != eprn_DeviceCMY && red == green && green == blue)
+- return eprn_map_cmyk_color_flex(device, 0, 0, 0, gx_max_color_value - red);
++ gx_color_value tmpcv[4];
++ if (dev->eprn.colour_model != eprn_DeviceCMY && red == green && green == blue) {
++ tmpcv[0] = 0; tmpcv[1] = 0; tmpcv[2] = 0;
++ tmpcv[3] = gx_max_color_value - red;
++ return eprn_map_cmyk_color_flex(device, tmpcv);
+
+- return eprn_map_cmyk_color_flex(device, gx_max_color_value - red,
+- gx_max_color_value - green, gx_max_color_value - blue, 0);
++ }
++ tmpcv[0] = gx_max_color_value - red;
++ tmpcv[1] = gx_max_color_value - green;
++ tmpcv[2] = gx_max_color_value - blue;
++ tmpcv[3] = 0;
++ return eprn_map_cmyk_color_flex(device, tmpcv);
+ }
+
+ /******************************************************************************
+@@ -315,8 +330,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_RGB_max(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ gx_color_index value;
+
+ #ifdef EPRN_TRACE
+@@ -345,8 +362,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_CMY_or_K_max(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ const eprn_Device *dev = (eprn_Device *)device;
+
+ #ifdef EPRN_TRACE
+@@ -356,13 +375,19 @@
+ red, green, blue);
+ #endif
+
+- if (dev->eprn.colour_model == eprn_DeviceGray)
+- return eprn_map_cmyk_color_max(device, 0, 0, 0, gx_max_color_value - red);
+-
++ gx_color_value tmpcv[4];
++ if (dev->eprn.colour_model == eprn_DeviceGray) {
++ tmpcv[0] = 0; tmpcv[1] = 0; tmpcv[2] = 0;
++ tmpcv[3] = gx_max_color_value - red;
++ return eprn_map_cmyk_color_max(device, tmpcv);
++ }
+ /* Note that the conversion from composite black to true black for CMY+K can
+ only happen at the output pixel level, not here. */
+- return eprn_map_cmyk_color_max(device, gx_max_color_value - red,
+- gx_max_color_value - green, gx_max_color_value - blue, 0);
++ tmpcv[0] = gx_max_color_value - red;
++ tmpcv[1] = gx_max_color_value - green;
++ tmpcv[2] = gx_max_color_value - blue;
++ tmpcv[3] = 0;
++ return eprn_map_cmyk_color_max(device, tmpcv);
+ }
+
+ /******************************************************************************
+@@ -389,7 +414,7 @@
+ ******************************************************************************/
+
+ int eprn_map_color_rgb(gx_device *device, gx_color_index color,
+- gx_color_value rgb[3])
++ gx_color_value rgb[])
+ {
+ #ifdef EPRN_TRACE
+ if_debug1(EPRN_TRACE_CHAR,
+@@ -415,9 +440,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_cmyk_color(gx_device *device,
+- gx_color_value cyan, gx_color_value magenta, gx_color_value yellow,
+- gx_color_value black)
++ const gx_color_value cv[])
+ {
++ gx_color_value cyan, magenta, yellow, black;
++ cyan = cv[0]; magenta = cv[1]; yellow = cv[2]; black = cv[3];
+ gx_color_index value = 0;
+ static const gx_color_value threshold = gx_max_color_value/2;
+
+@@ -449,9 +475,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_cmyk_color_flex(gx_device *device,
+- gx_color_value cyan, gx_color_value magenta, gx_color_value yellow,
+- gx_color_value black)
++ const gx_color_value cv[])
+ {
++ gx_color_value cyan, magenta, yellow, black;
++ cyan = cv[0]; magenta = cv[1]; yellow = cv[2]; black = cv[3];
+ gx_color_index value = 0;
+ gx_color_value step;
+ unsigned int level;
+@@ -530,9 +557,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_cmyk_color_max(gx_device *device,
+- gx_color_value cyan, gx_color_value magenta, gx_color_value yellow,
+- gx_color_value black)
++ const gx_color_value cv[])
+ {
++ gx_color_value cyan, magenta, yellow, black;
++ cyan = cv[0]; magenta = cv[1]; yellow = cv[2]; black = cv[3];
+ gx_color_index value;
+
+ #ifdef EPRN_TRACE
diff --git a/print/ghostscript-gpl/pkg-descr b/print/ghostscript-gpl/pkg-descr
index 3e6b5231e3ae..6b6063046e56 100644
--- a/print/ghostscript-gpl/pkg-descr
+++ b/print/ghostscript-gpl/pkg-descr
@@ -7,6 +7,8 @@ Public License, which allows free use, and free copying and redistribution
under certain conditions (including, in some cases, commercial distribution).
This port includes add-on packages (not part of the official gs release)
+ o PCL driver for HP DeskJet printers
+ - http://home.vrweb.de/~martin.lottermoser/pcl3.html
o HP2200 driver for HP DeskJet 8xx and Business Inkjet 2200
- http://hp.sourceforge.net/gs-hp2200.php
o DJ970 driver for HP DeskJet 970CXi
diff --git a/print/ghostscript-gpl/pkg-plist b/print/ghostscript-gpl/pkg-plist
index 1dbaa2ab79d3..cf4244698355 100644
--- a/print/ghostscript-gpl/pkg-plist
+++ b/print/ghostscript-gpl/pkg-plist
@@ -15,6 +15,7 @@ bin/gslp
bin/gsnd
%%SHLIB%%bin/gsx
bin/lprsetup.sh
+bin/pcl3opts
bin/pdf2dsc
bin/pdf2ps
bin/pdfopt
@@ -34,25 +35,6 @@ bin/unix-lpr.sh
bin/wftopfa
%%SHLIB%%lib/libgs.so
%%SHLIB%%lib/libgs.so.%%SHLIB_VER%%
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/alps/README.gdevalps
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/bj10v/gdev10v.jis
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ert.txt
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gdevepag.txt
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gsepagif.sh
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/psprint
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/eplaser/readme-eplaser-705.euc
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/gdi/README
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lips/Gdevlips.htm
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/README
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/RELEASE_NOTES
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/md2k/README.jis
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/MJ700V2C.FAQ
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mjc
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mje
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.noz
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/cpem.doc
%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/78-EUC-H
%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/78-EUC-V
%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/78-H
@@ -238,6 +220,8 @@ bin/wftopfa
%%DATADIR%%/%%GS_VERSION%%/doc/Use.htm
%%DATADIR%%/%%GS_VERSION%%/doc/Xfonts.htm
%%DATADIR%%/%%GS_VERSION%%/doc/gs.css
+%%DATADIR%%/%%GS_VERSION%%/doc/gs-pcl3.html
+%%DATADIR%%/%%GS_VERSION%%/doc/pcl3opts.html
%%DATADIR%%/%%GS_VERSION%%/doc/index.html
%%DATADIR%%/%%GS_VERSION%%/examples/alphabet.ps
%%DATADIR%%/%%GS_VERSION%%/examples/chess.ps
@@ -481,6 +465,21 @@ bin/wftopfa
%%DATADIR%%/%%GS_VERSION%%/lib/wrfont.ps
%%DATADIR%%/%%GS_VERSION%%/lib/xlatmap
%%DATADIR%%/%%GS_VERSION%%/lib/zeroline.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/BUGS
+%%DATADIR%%/%%GS_VERSION%%/pcl3/NEWS
+%%DATADIR%%/%%GS_VERSION%%/pcl3/README
+%%DATADIR%%/%%GS_VERSION%%/pcl3/calign.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/dumppdd.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/example.mcf
+%%DATADIR%%/%%GS_VERSION%%/pcl3/if-pcl3
+%%DATADIR%%/%%GS_VERSION%%/pcl3/levels-test.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-A4.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-A4Rotated.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-Env10Rotated.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-EnvDLRotated.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-Letter.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-LetterRotated.ps
+@dirrm %%DATADIR%%/%%GS_VERSION%%/pcl3
@exec ln -s -f %D/share/fonts/CIDFont %%CIDFONTDIR%%/CIDFont
@unexec rm -f %%CIDFONTDIR%%/CIDFont
@dirrm %%DATADIR%%/%%GS_VERSION%%/lib
@@ -492,6 +491,28 @@ bin/wftopfa
@dirrm %%DATADIR%%/%%GS_VERSION%%/Resource
@unexec rmdir %D/%%DATADIR%%/%%GS_VERSION%% 2>/dev/null || true
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/alps/README.gdevalps
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/bj10v/gdev10v.jis
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ert.txt
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gdevepag.txt
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gsepagif.sh
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/psprint
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/eplaser/readme-eplaser-705.euc
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/gdi/README
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lips/Gdevlips.htm
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/README
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/RELEASE_NOTES
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/md2k/README.jis
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/MJ700V2C.FAQ
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mjc
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mje
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.noz
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/cpem.doc
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/pcl3/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/pcl3/how-to-report.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/pcl3
%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/mjc
%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/md2k
%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/lxm3200
diff --git a/print/ghostscript-gpl/scripts/configure b/print/ghostscript-gpl/scripts/configure
index 84000c012fe6..2e1511576cf1 100644
--- a/print/ghostscript-gpl/scripts/configure
+++ b/print/ghostscript-gpl/scripts/configure
@@ -50,6 +50,7 @@ else
laserjet ljetplus ljet2p ljet3 ljet3d ljet4 ljet4d lj4dith \
cljet5 cljet5c cljet5pr lj5mono lj5gray \
pj pjetxl pjxl paintjet \
+ pcl3 \
pjxl300 pxlmono pxlcolor \
ijs ibmpro jetp3852 imagen fs600 lxm5700m \
lxm3200 lx5000 lex2050 lex3200 lex5700 lex7000 \
@@ -240,6 +241,7 @@ Have fun with this new configuration style ! -andreas \n\n\
"pjxl" "HP PaintJet XL color printer" "$status_pjxl" \
"paintjet" "HP PaintJet color printer (alternate)" "$status_paintjet" \
"pjxl300" "HP PaintJet XL300, DeskJet 1200C color printer, HP CopyJet" "$status_pjxl300" \
+ "pcl3" "HP PCL 3 (generic) [PCL3]" "$status_pcl3" \
"pxlmono" "HP PCL XL black-and-white printers (LaserJet 5 and 6 family)" "$status_pxlmono" \
"pxlcolor" "HP PCL XL color printers (Color LaserJet 4500/5000)" "$status_pxlcolor" \
"ijs" "HP Inkjet and other raster devices" "$status_ijs" \
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile
index 4d11529e67fe..72758b9fed31 100644
--- a/print/ghostscript8/Makefile
+++ b/print/ghostscript8/Makefile
@@ -12,6 +12,7 @@ PORTEPOCH= ${GS_EPOCH}
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,bjc250/} \
http://www.gelhaus.net/hp880c/1.4beta/:hp8xx \
+ http://home.vrweb.de/~martin.lottermoser/pcl3dist/:pcl3 \
http://www.harsch.net/Download/:dj970 \
http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/:md2k \
${MASTER_SITE_PORTS_JP:S/$/:ports_jp,ports_jp_gs/} \
@@ -29,6 +30,7 @@ MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,ports_jp_gs \
PKGNAMESUFFIX= -gpl
DISTFILES= ${GS_SRCS}:gs_srcs \
${HP8XX_SRCS}:hp8xx \
+ ${PCL3_SRCS}:pcl3 \
${DJ970_SRCS}:dj970 \
${MD2K_SRCS}:md2k \
${ALPS_SRCS}:ports_jp_gs \
@@ -59,6 +61,9 @@ USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \
XCFLAGS="${XCFLAGS}"
+ALL_TARGET= all
+INSTALL_TARGET= install
+
PLIST_SUB= GS_VERSION="${GS_VERSION}" \
CIDFONTDIR=${CIDFONTDIR}
@@ -121,6 +126,19 @@ CIDFONTDIR= ${PREFIX}/share/ghostscript/${GS_VERSION}/Resource
HP8XX= cdj880
HP8XX_SRCS= gdevcd8.tar.gz
+# PCL3 (hpdj successor now in RELEASE quality)
+# additional driver for HP PCL3 printers, by Martin Lottermoser
+# http://home.vrweb.de/martin.lottermoser/pcl3.html
+ALL_TARGET+= pcl3opts
+INSTALL_TARGET+= pcl3-install
+PCL3= pcl3
+PCL3_VERS= 3.3
+PCL3_NAME= ${PCL3}-${PCL3_VERS}
+PCL3_SRCS= ${PCL3_NAME}.tar.gz
+PCL3_MAN1= gs-pcl3.1 pcl3opts.1
+MAN1+= ${PCL3_MAN1}
+
+#
# DJ970 - additional driver for HP DeskJet 970, supports duplex printing
# http://www.harsch.net/Ghostscript/ghostscript.html
DJ970= gdevdj9
@@ -230,6 +248,12 @@ post-extract:
# for HP8XX driver
${ECHO_MSG} ">>> extracting ${HP8XX_SRCS} ..."
${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${HP8XX_SRCS}
+# for PCL3 driver
+ ${ECHO_MSG} ">>> extracting ${PCL3_SRCS} ..."
+ ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${PCL3_SRCS}
+ ${LN} -sf ${PCL3_NAME} ${WRKSRC}/${PCL3}
+ ${TAR} -C ${WRKSRC}/${PCL3_NAME} -xf \
+ ${WRKSRC}/${PCL3_NAME}/${PCL3}.tar
# for DJ970 driver
${ECHO_MSG} ">>> extracting ${DJ970_SRCS} ..."
${CP} ${DISTDIR}/${DIST_SUBDIR}/${DJ970_SRCS} ${WRKSRC}/src
@@ -301,6 +325,10 @@ pre-configure:
${ECHO_MSG} ">>> adding ${HP8XX} driver to contrib.mak ..."
${CAT} ${FILESDIR}/cdj850.contrib.mak \
>> ${WRKSRC}/src/contrib.mak
+# for PCL3 driver
+ ${ECHO_MSG} ">>> adding ${PCL3} driver to contrib.mak ..."
+ ${CAT} ${WRKSRC}/${PCL3_NAME}/src/contrib.mak-7.00.add \
+ >> ${WRKSRC}/src/contrib.mak
# for DJ970 driver
${ECHO_MSG} ">>> adding ${DJ970} driver to contrib.mak ..."
${CAT} ${FILESDIR}/dj970.contrib.mak \
@@ -447,6 +475,18 @@ post-install:
.else
${STRIP_CMD} ${PREFIX}/bin/gs
.endif
+# for PCL3 driver, stuff which might be interesting for runtime
+ ${ECHO_MSG} ">>> creating ${PCL3} destdir ..."
+ ${MKDIR} ${DATADIR}/${GS_VERSION}/${PCL3}
+ ${ECHO_MSG} ">>> installing files in ${PCL3} destdir ..."
+.for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
+ ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
+ ps/margins-A4Rotated.ps ps/margins-Env10Rotated.ps \
+ ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
+ ps/margins-LetterRotated.ps
+ ${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
+ ${DATADIR}/${GS_VERSION}/${PCL3}
+.endfor
# for EPAG driver
${ECHO_MSG} ">>> installing ${EPAG} utility in bindir ..."
${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin
@@ -462,6 +502,13 @@ post-install:
.if !defined(NOPORTDOCS)
${ECHO_MSG} ">>> installing PORTDOC stuff ..."
${MKDIR} ${DOCSDIR}/${GS_VERSION}
+# for PCL3 driver
+ ${ECHO_MSG} ">>> installing ${PCL3} docs ..."
+ ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${PCL3}
+.for i in NEWS doc/how-to-report.txt
+ ${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
+ ${DOCSDIR}/${GS_VERSION}/${PCL3}
+.endfor
# for MD2K driver
${ECHO_MSG} ">>> installing ${MD2K} docs ..."
${MKDIR} ${DOCSDIR}/${GS_VERSION}/${MD2K}
diff --git a/print/ghostscript8/distinfo b/print/ghostscript8/distinfo
index 0b5cf983b1a1..9538f043db69 100644
--- a/print/ghostscript8/distinfo
+++ b/print/ghostscript8/distinfo
@@ -2,6 +2,8 @@ MD5 (ghostscript/ghostscript-8.15.tar.bz2) = ab8502f30629b730e0c9ca56b88a6b9d
SIZE (ghostscript/ghostscript-8.15.tar.bz2) = 6931694
MD5 (ghostscript/gdevcd8.tar.gz) = 5ce48bff6082a023199c8ede4aae63a0
SIZE (ghostscript/gdevcd8.tar.gz) = 24803
+MD5 (ghostscript/pcl3-3.3.tar.gz) = 34e664c2a98b847598f8441f8cac7ab6
+SIZE (ghostscript/pcl3-3.3.tar.gz) = 301470
MD5 (ghostscript/gdevdj9.c.gz) = 3a9c20c34b79ffab434abfbcc31d1c27
SIZE (ghostscript/gdevdj9.c.gz) = 20139
MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24
diff --git a/print/ghostscript8/files/patch-pcl3_eprn_eprnrend.c b/print/ghostscript8/files/patch-pcl3_eprn_eprnrend.c
new file mode 100644
index 000000000000..d9adf9bbafa2
--- /dev/null
+++ b/print/ghostscript8/files/patch-pcl3_eprn_eprnrend.c
@@ -0,0 +1,170 @@
+-- pcl3/eprn/eprnrend.c.orig 2005-01-19 00:24:24.924311968 +0100
++++ pcl3/eprn/eprnrend.c 2005-01-19 01:24:06.024901928 +0100
+@@ -161,8 +161,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_RGB(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ static const gx_color_value half = gx_max_color_value/2;
+ gx_color_index value = 0;
+ const eprn_Device *dev = (eprn_Device *)device;
+@@ -197,8 +199,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_CMY_or_K(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ static const gx_color_value half = gx_max_color_value/2;
+ gx_color_index value = (CYAN_BIT | MAGENTA_BIT | YELLOW_BIT);
+ const eprn_Device *dev = (eprn_Device *)device;
+@@ -240,8 +244,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_RGB_flex(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ gx_color_index value = 0;
+ gx_color_value step;
+ unsigned int level;
+@@ -284,8 +290,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_CMY_or_K_flex(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ const eprn_Device *dev = (eprn_Device *)device;
+
+ #ifdef EPRN_TRACE
+@@ -298,11 +306,18 @@
+ /* Treat pure grey levels differently if we have black. This implies that for
+ CMY+K only "true" grey shades will be printed with black ink, all others
+ will be mixed from CMY. */
+- if (dev->eprn.colour_model != eprn_DeviceCMY && red == green && green == blue)
+- return eprn_map_cmyk_color_flex(device, 0, 0, 0, gx_max_color_value - red);
++ gx_color_value tmpcv[4];
++ if (dev->eprn.colour_model != eprn_DeviceCMY && red == green && green == blue) {
++ tmpcv[0] = 0; tmpcv[1] = 0; tmpcv[2] = 0;
++ tmpcv[3] = gx_max_color_value - red;
++ return eprn_map_cmyk_color_flex(device, tmpcv);
+
+- return eprn_map_cmyk_color_flex(device, gx_max_color_value - red,
+- gx_max_color_value - green, gx_max_color_value - blue, 0);
++ }
++ tmpcv[0] = gx_max_color_value - red;
++ tmpcv[1] = gx_max_color_value - green;
++ tmpcv[2] = gx_max_color_value - blue;
++ tmpcv[3] = 0;
++ return eprn_map_cmyk_color_flex(device, tmpcv);
+ }
+
+ /******************************************************************************
+@@ -315,8 +330,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_RGB_max(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ gx_color_index value;
+
+ #ifdef EPRN_TRACE
+@@ -345,8 +362,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_rgb_color_for_CMY_or_K_max(gx_device *device,
+- gx_color_value red, gx_color_value green, gx_color_value blue)
++ const gx_color_value cv[])
+ {
++ gx_color_value red, green, blue;
++ red = cv[0]; green = cv[1]; blue = cv[2];
+ const eprn_Device *dev = (eprn_Device *)device;
+
+ #ifdef EPRN_TRACE
+@@ -356,13 +375,19 @@
+ red, green, blue);
+ #endif
+
+- if (dev->eprn.colour_model == eprn_DeviceGray)
+- return eprn_map_cmyk_color_max(device, 0, 0, 0, gx_max_color_value - red);
+-
++ gx_color_value tmpcv[4];
++ if (dev->eprn.colour_model == eprn_DeviceGray) {
++ tmpcv[0] = 0; tmpcv[1] = 0; tmpcv[2] = 0;
++ tmpcv[3] = gx_max_color_value - red;
++ return eprn_map_cmyk_color_max(device, tmpcv);
++ }
+ /* Note that the conversion from composite black to true black for CMY+K can
+ only happen at the output pixel level, not here. */
+- return eprn_map_cmyk_color_max(device, gx_max_color_value - red,
+- gx_max_color_value - green, gx_max_color_value - blue, 0);
++ tmpcv[0] = gx_max_color_value - red;
++ tmpcv[1] = gx_max_color_value - green;
++ tmpcv[2] = gx_max_color_value - blue;
++ tmpcv[3] = 0;
++ return eprn_map_cmyk_color_max(device, tmpcv);
+ }
+
+ /******************************************************************************
+@@ -389,7 +414,7 @@
+ ******************************************************************************/
+
+ int eprn_map_color_rgb(gx_device *device, gx_color_index color,
+- gx_color_value rgb[3])
++ gx_color_value rgb[])
+ {
+ #ifdef EPRN_TRACE
+ if_debug1(EPRN_TRACE_CHAR,
+@@ -415,9 +440,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_cmyk_color(gx_device *device,
+- gx_color_value cyan, gx_color_value magenta, gx_color_value yellow,
+- gx_color_value black)
++ const gx_color_value cv[])
+ {
++ gx_color_value cyan, magenta, yellow, black;
++ cyan = cv[0]; magenta = cv[1]; yellow = cv[2]; black = cv[3];
+ gx_color_index value = 0;
+ static const gx_color_value threshold = gx_max_color_value/2;
+
+@@ -449,9 +475,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_cmyk_color_flex(gx_device *device,
+- gx_color_value cyan, gx_color_value magenta, gx_color_value yellow,
+- gx_color_value black)
++ const gx_color_value cv[])
+ {
++ gx_color_value cyan, magenta, yellow, black;
++ cyan = cv[0]; magenta = cv[1]; yellow = cv[2]; black = cv[3];
+ gx_color_index value = 0;
+ gx_color_value step;
+ unsigned int level;
+@@ -530,9 +557,10 @@
+ ******************************************************************************/
+
+ gx_color_index eprn_map_cmyk_color_max(gx_device *device,
+- gx_color_value cyan, gx_color_value magenta, gx_color_value yellow,
+- gx_color_value black)
++ const gx_color_value cv[])
+ {
++ gx_color_value cyan, magenta, yellow, black;
++ cyan = cv[0]; magenta = cv[1]; yellow = cv[2]; black = cv[3];
+ gx_color_index value;
+
+ #ifdef EPRN_TRACE
diff --git a/print/ghostscript8/pkg-descr b/print/ghostscript8/pkg-descr
index 3e6b5231e3ae..6b6063046e56 100644
--- a/print/ghostscript8/pkg-descr
+++ b/print/ghostscript8/pkg-descr
@@ -7,6 +7,8 @@ Public License, which allows free use, and free copying and redistribution
under certain conditions (including, in some cases, commercial distribution).
This port includes add-on packages (not part of the official gs release)
+ o PCL driver for HP DeskJet printers
+ - http://home.vrweb.de/~martin.lottermoser/pcl3.html
o HP2200 driver for HP DeskJet 8xx and Business Inkjet 2200
- http://hp.sourceforge.net/gs-hp2200.php
o DJ970 driver for HP DeskJet 970CXi
diff --git a/print/ghostscript8/pkg-plist b/print/ghostscript8/pkg-plist
index 1dbaa2ab79d3..cf4244698355 100644
--- a/print/ghostscript8/pkg-plist
+++ b/print/ghostscript8/pkg-plist
@@ -15,6 +15,7 @@ bin/gslp
bin/gsnd
%%SHLIB%%bin/gsx
bin/lprsetup.sh
+bin/pcl3opts
bin/pdf2dsc
bin/pdf2ps
bin/pdfopt
@@ -34,25 +35,6 @@ bin/unix-lpr.sh
bin/wftopfa
%%SHLIB%%lib/libgs.so
%%SHLIB%%lib/libgs.so.%%SHLIB_VER%%
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/alps/README.gdevalps
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/bj10v/gdev10v.jis
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ert.txt
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gdevepag.txt
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gsepagif.sh
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/psprint
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/eplaser/readme-eplaser-705.euc
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/gdi/README
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lips/Gdevlips.htm
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/README
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/RELEASE_NOTES
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/md2k/README.jis
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/MJ700V2C.FAQ
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mjc
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mje
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.noz
-%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/cpem.doc
%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/78-EUC-H
%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/78-EUC-V
%%DATADIR%%/%%GS_VERSION%%/Resource/CMap/78-H
@@ -238,6 +220,8 @@ bin/wftopfa
%%DATADIR%%/%%GS_VERSION%%/doc/Use.htm
%%DATADIR%%/%%GS_VERSION%%/doc/Xfonts.htm
%%DATADIR%%/%%GS_VERSION%%/doc/gs.css
+%%DATADIR%%/%%GS_VERSION%%/doc/gs-pcl3.html
+%%DATADIR%%/%%GS_VERSION%%/doc/pcl3opts.html
%%DATADIR%%/%%GS_VERSION%%/doc/index.html
%%DATADIR%%/%%GS_VERSION%%/examples/alphabet.ps
%%DATADIR%%/%%GS_VERSION%%/examples/chess.ps
@@ -481,6 +465,21 @@ bin/wftopfa
%%DATADIR%%/%%GS_VERSION%%/lib/wrfont.ps
%%DATADIR%%/%%GS_VERSION%%/lib/xlatmap
%%DATADIR%%/%%GS_VERSION%%/lib/zeroline.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/BUGS
+%%DATADIR%%/%%GS_VERSION%%/pcl3/NEWS
+%%DATADIR%%/%%GS_VERSION%%/pcl3/README
+%%DATADIR%%/%%GS_VERSION%%/pcl3/calign.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/dumppdd.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/example.mcf
+%%DATADIR%%/%%GS_VERSION%%/pcl3/if-pcl3
+%%DATADIR%%/%%GS_VERSION%%/pcl3/levels-test.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-A4.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-A4Rotated.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-Env10Rotated.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-EnvDLRotated.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-Letter.ps
+%%DATADIR%%/%%GS_VERSION%%/pcl3/margins-LetterRotated.ps
+@dirrm %%DATADIR%%/%%GS_VERSION%%/pcl3
@exec ln -s -f %D/share/fonts/CIDFont %%CIDFONTDIR%%/CIDFont
@unexec rm -f %%CIDFONTDIR%%/CIDFont
@dirrm %%DATADIR%%/%%GS_VERSION%%/lib
@@ -492,6 +491,28 @@ bin/wftopfa
@dirrm %%DATADIR%%/%%GS_VERSION%%/Resource
@unexec rmdir %D/%%DATADIR%%/%%GS_VERSION%% 2>/dev/null || true
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/alps/README.gdevalps
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/bj10v/gdev10v.jis
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/ert.txt
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gdevepag.txt
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/gsepagif.sh
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/epag/psprint
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/eplaser/readme-eplaser-705.euc
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/gdi/README
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lips/Gdevlips.htm
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/README
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/RELEASE_NOTES
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/md2k/README.jis
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/MJ700V2C.FAQ
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mjc
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.mje
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/README.noz
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/mjc/cpem.doc
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/pcl3/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/%%GS_VERSION%%/pcl3/how-to-report.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/pcl3
%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/mjc
%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/md2k
%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%GS_VERSION%%/lxm3200
diff --git a/print/ghostscript8/scripts/configure b/print/ghostscript8/scripts/configure
index 84000c012fe6..2e1511576cf1 100644
--- a/print/ghostscript8/scripts/configure
+++ b/print/ghostscript8/scripts/configure
@@ -50,6 +50,7 @@ else
laserjet ljetplus ljet2p ljet3 ljet3d ljet4 ljet4d lj4dith \
cljet5 cljet5c cljet5pr lj5mono lj5gray \
pj pjetxl pjxl paintjet \
+ pcl3 \
pjxl300 pxlmono pxlcolor \
ijs ibmpro jetp3852 imagen fs600 lxm5700m \
lxm3200 lx5000 lex2050 lex3200 lex5700 lex7000 \
@@ -240,6 +241,7 @@ Have fun with this new configuration style ! -andreas \n\n\
"pjxl" "HP PaintJet XL color printer" "$status_pjxl" \
"paintjet" "HP PaintJet color printer (alternate)" "$status_paintjet" \
"pjxl300" "HP PaintJet XL300, DeskJet 1200C color printer, HP CopyJet" "$status_pjxl300" \
+ "pcl3" "HP PCL 3 (generic) [PCL3]" "$status_pcl3" \
"pxlmono" "HP PCL XL black-and-white printers (LaserJet 5 and 6 family)" "$status_pxlmono" \
"pxlcolor" "HP PCL XL color printers (Color LaserJet 4500/5000)" "$status_pxlcolor" \
"ijs" "HP Inkjet and other raster devices" "$status_ijs" \