diff options
author | jlam <jlam@pkgsrc.org> | 2000-05-07 02:04:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-05-07 02:04:33 +0000 |
commit | 9ede053160ed1c1fe1233c62d7321a16dd51712b (patch) | |
tree | cd1089901d3ec2adefa7197ae561b18402ca6090 /print | |
parent | d8f2a332fc895c0001346e079e6fd63edb38ff52 (diff) | |
download | pkgsrc-9ede053160ed1c1fe1233c62d7321a16dd51712b.tar.gz |
ghostscript-nox11-6.01: Changes from 5.50 include many bug fixes, and
better support for several color printers. Incorporates the "bonk"
color HP printer drivers. Also includes support for the Japanese
Vector Font library for JPDF display and for various Japanese printers.
Many thanks to itohy@netbsd.org for providing the VFlib patches.
Closes PR#9998.
Diffstat (limited to 'print')
32 files changed, 2057 insertions, 0 deletions
diff --git a/print/ghostscript-nox11/Makefile b/print/ghostscript-nox11/Makefile new file mode 100644 index 00000000000..7cb6e0d4ae7 --- /dev/null +++ b/print/ghostscript-nox11/Makefile @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/05/07 02:04:33 jlam Exp $ + +PKGNAME= ghostscript-nox11-${GS_VERS} + +CONFLICTS= ghostscript{,-x11}-[0-9]* + +.include "../../print/ghostscript-nox11/Makefile.common" diff --git a/print/ghostscript-nox11/Makefile.common b/print/ghostscript-nox11/Makefile.common new file mode 100644 index 00000000000..ed9aee93e72 --- /dev/null +++ b/print/ghostscript-nox11/Makefile.common @@ -0,0 +1,221 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ + +DISTNAME= ghostscript-${GS_VERS} +GS_VERS= 6.01 +CATEGORIES= print +MASTER_SITES+= http://download.sourceforge.net/ghostscript/ \ + ftp://ftp.cs.wisc.edu/ghost/aladdin/gs601/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://www.cs.wisc.edu/~ghost/index.html + +DEPENDS+= ghostscript-fonts-6.0:../../print/ghostscript-fonts +DEPENDS+= ja-vflib-lib-2.*:../../japanese/vflib-lib +DEPENDS+= png>=1.0.6:../../graphics/png + +# Adobe's JPEG implementation in their PDF/PS documents is non-standard, +# so we can't use an already installed libjpeg.so. +# +BUILD_DEPENDS+= ${BUILD_ROOT}/graphics/jpeg/${WRKDIR:T}/jpeg-6b:../../graphics/jpeg:extract + +GS_SOURCES= ${DISTNAME}${EXTRACT_SUFX} +DISTFILES+= ${GS_SOURCES} + +# VFlib & Japanese PDF patch +PATCH_SITES= http://www.sat.t.u-tokyo.ac.jp/~hideyuki/Ghostscript/ +PATCHFILES= gs${GS_VERS}-jpdf-exp.patch.gz +PATCH_DIST_STRIP= -p1 + +# PostScript source to decode encrypted PDF files +MASTER_SITES+= http://www.ozemail.com.au/~geoffk/pdfencrypt/ +PDF_SEC= pdf_sec.ps +DISTFILES+= ${PDF_SEC} + +# Additional driver for several HP deskjets +MASTER_SITES+= ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ +HPDJ_DRV= hpdj-2.6 +DISTFILES+= ${HPDJ_DRV}.tar.gz +EXTRACT_LIST+= ${HPDJ_DRV}.tar.gz + +# I don't know the primary destribution sites of these drivers.... +MASTER_SITES+= ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/ +DMPRT_DRV= dmprt-2.01 +DISTFILES+= ${DMPRT_DRV}.tar.gz +EXTRACT_LIST+= ${DMPRT_DRV}.tar.gz + +BJ10V_DRV= gdev10v +DISTFILES+= ${BJ10V_DRV}.tar.gz +EXTRACT_LIST+= ${BJ10V_DRV}.tar.gz + +# This driver doesn't compile ... missing header "gsprops.h". +MJC_DRV= gdevmjc-0.8 +DISTFILES+= ${MJC_DRV}.tar.gz +EXTRACT_LIST+= ${MJC_DRV}.tar.gz + +# Alps MD5000 printer 600dpi monochrome mode +MD5000_DRV= gdevalps-0.2 +DISTFILES+= ${MD5000_DRV}.tar.gz +EXTRACT_LIST+= ${MD5000_DRV}.tar.gz + +# Alps MD-2000/2010/4000/1300/1500/5000 +MASTER_SITES+= http://plaza26.mbn.or.jp/~higamasa/gdevmd2k/ +MD2000_DRV= gdevmd2k-0.2a +DISTFILES+= ${MD2000_DRV}.tar.gz +EXTRACT_LIST+= ${MD2000_DRV}.tar.gz + +# Canon LIPS II+, III, IV; EPSON ESC/Page; NEC NPDL drivers +MASTER_SITES+= http://www.bukka.p.chiba-u.ac.jp/~ohmori/gs/ +LIPS_DRV= gdevlips-2.3.6 +DISTFILES+= ${LIPS_DRV}.tar.gz +EXTRACT_LIST+= ${LIPS_DRV}.tar.gz + +# Ricoh RPDL +MASTER_SITES+= http://home.jp.FreeBSD.org/~mita/LOCAL_PORTS/ +RPDL_DRV= gdevrpdl +DISTFILES+= ${RPDL_DRV}.tar.gz +EXTRACT_LIST+= ${RPDL_DRV}.tar.gz + +# Kyocera Prescribe +MASTER_SITES+= ${MASTER_SITE_LOCAL} +PRESCR_DRV= gdevprsc-0.2 +DISTFILES+= ${PRESCR_DRV}.tar.gz +EXTRACT_LIST+= ${PRESCR_DRV}.tar.gz + +FILESDIR= ${.CURDIR}/../../print/ghostscript-nox11/files +PATCHDIR= ${.CURDIR}/../../print/ghostscript-nox11/patches +SCRIPTDIR= ${.CURDIR}/../../print/ghostscript-nox11/scripts +PLIST_SRC= ${.CURDIR}/../../print/ghostscript-nox11/pkg/PLIST + +EXTRACT_ONLY= ${GS_SOURCES} +DIST_SUBDIR= ghostscript +WRKSRC= ${WRKDIR}/gs${GS_VERS} +MAKEFILE= src/unix-gcc.mak +ALL_TARGET= std + +.include "../../mk/bsd.prefs.mk" + +# arm32 compiler has an optimizer problem +.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "arm32" +CFLAGS= +.endif + +.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4") +CFLAGS+= -DA4 +.endif + +CFLAGS+= -I${LOCALBASE}/include # png.h, VF.h +CFLAGS+= -DHAVE_MKSTEMP=1 + +.if ${OPSYS} == "SunOS" +LDFLAGS+= -L${LOCALBASE}/bsd/lib -Wl,-R${LOCALBASE}/bsd/lib +.endif + +MAKE_ENV+= XLDFLAGS="${LDFLAGS}" + +# Ghostscript builds in ./obj, which confuses make, so explicitly set +# MAKEOBJDIR so as not to descend into ./obj. +# +MAKE_ENV+= MAKEOBJDIR="." + +# Define whether this platform has floating point hardware: +# FPU_TYPE=2 means floating point is faster than fixed point. +# (This is the case on some RISCs with multiple instruction dispatch.) +# FPU_TYPE=1 means floating point is at worst only slightly slower +# than fixed point. +# FPU_TYPE=0 means that floating point may be considerably slower. +# FPU_TYPE=-1 means that floating point is always much slower than +# fixed point. +# +FPU_TYPE= 1 +MAKE_ENV+= FPU_TYPE=${FPU_TYPE} + +.if defined(USE_X11) +MAKEFRAGS= ${FILESDIR}/devs.x11 +.endif +MAKEFRAGS+= ${FILESDIR}/devs.nox11 + +PERL_PATH= ${LOCALBASE}/bin/perl +GSINST_DIR= ${PREFIX}/share/ghostscript/${GS_VERS}vflib +DOC_DIR= ${PREFIX}/share/doc/ghostscript +LIB_DIR= ${GSINST_DIR}/lib + +post-extract: +.for FILE in ${EXTRACT_LIST} + cd ${WRKDIR}; ${PAX} -zrf ${_DISTDIR}/${FILE} +.endfor + cd ${WRKSRC}/src; ${PAX} -rf ${WRKDIR}/${HPDJ_DRV}/hpdj.tar + ${MV} ${WRKSRC}/src/gs-hpdj.1 ${WRKSRC}/man + cd ${WRKDIR}; ${CP} gdevdmpr.c gdevdmpr.mak ${WRKSRC}/src + cd ${WRKDIR}; ${CP} dviprlib.* ${WRKSRC}/src + cd ${WRKDIR}/${BJ10V_DRV}; ${CP} gdev10v.c gdev10v.mak ${WRKSRC}/src + cd ${WRKDIR}/${MJC_DRV}; ${CP} *.[ch] gdevmjc.mak ${WRKSRC}/src + cd ${WRKDIR}/${LIPS_DRV}; ${CP} * ${WRKSRC}/src + cd ${WRKDIR}/${RPDL_DRV}; ${CP} gdevrpdl.c gdevrpdl.mak ${WRKSRC}/src + cd ${WRKDIR}/${MD5000_DRV}; \ + ${CP} gdevalps.c gdevalps.mak-5.50 ${WRKSRC}/src + cd ${WRKDIR}/${MD2000_DRV}; \ + ${CP} gdevmd2k.c gdevmd2k.mak-5.8x ${WRKSRC}/src + cd ${WRKDIR}/${PRESCR_DRV}; \ + ${CP} gdevprsc.c gdevprsc.mak ${WRKSRC}/src + + ${RM} -f ${WRKSRC}/jpeg + ${LN} -s ${BUILD_ROOT}/graphics/jpeg/${WRKDIR:T}/jpeg-6b \ + ${WRKSRC}/jpeg + ${RM} -f ${WRKSRC}/lib/${PDF_SEC} + ${LN} -s ${_DISTDIR}/${PDF_SEC} ${WRKSRC}/lib/${PDF_SEC} + ${MV} ${WRKSRC}/lib/fixmswrd.pl ${WRKSRC}/lib/fixmswrd.pl.in + +post-patch: + if [ ! -f ${WRKDIR}/dmp_site.ps.bak ]; then \ + ${MV} ${WRKDIR}/dmp_site.ps ${WRKDIR}/dmp_site.ps.bak; \ + fi + ${SED} -e "s,epsimage\.src,${GSINST_DIR}/lib/escp_24.src,g" \ + < ${WRKDIR}/dmp_site.ps.bak > ${WRKDIR}/dmp_site.ps + +do-configure: + # + # Append build rules for extra drivers to contrib.mak + # + ${CAT} ${WRKSRC}/src/contrib.mak-5.94.add \ + ${WRKSRC}/src/gdevlips.mak \ + ${WRKSRC}/src/gdev10v.mak \ + ${WRKSRC}/src/gdevmjc.mak \ + ${WRKSRC}/src/gdevrpdl.mak \ + ${WRKSRC}/src/gdevdmpr.mak \ + ${WRKSRC}/src/gdevalps.mak-5.50 \ + ${WRKSRC}/src/gdevmd2k.mak-5.8x \ + ${WRKSRC}/src/gdevprsc.mak \ + >> ${WRKSRC}/src/contrib.mak + # + # Prepend device list to unix-gcc.mak + # + ${CAT} ${MAKEFRAGS} \ + ${WRKSRC}/src/unix-gcc.mak \ + > ${WRKDIR}/unix-gcc.mak + ${MV} -f ${WRKDIR}/unix-gcc.mak ${WRKSRC}/src + + ${SED} -e "s,@PERL@,${PERL_PATH},g" \ + < ${WRKSRC}/lib/fixmswrd.pl.in > ${WRKSRC}/lib/fixmswrd.pl + +post-install: + strip ${PREFIX}/bin/gs + ${INSTALL_DATA} ${WRKDIR}/${LIPS_DRV}/Gdevlips.htm ${DOC_DIR} + ${INSTALL_DATA} ${WRKDIR}/${BJ10V_DRV}/gdev10v.jis ${DOC_DIR} + ${INSTALL_DATA} ${WRKDIR}/gdevdmpr.sj ${DOC_DIR} + ${INSTALL_DATA} ${WRKDIR}/dmp_init.ps ${LIB_DIR} + ${INSTALL_DATA} ${WRKDIR}/dmp_site.ps ${LIB_DIR} + ${INSTALL_DATA} ${WRKDIR}/escp_24.src ${LIB_DIR} + ${INSTALL_DATA} ${WRKDIR}/testpage.ps ${LIB_DIR} + ${INSTALL_DATA} ${WRKDIR}/${PRESCR_DRV}/gdevprsc.?? ${DOC_DIR} + ${INSTALL_DATA_DIR} ${DOC_DIR}/${MJC_DRV} + ${INSTALL_DATA} ${WRKDIR}/${MJC_DRV}/README.mjc ${DOC_DIR}/${MJC_DRV} + ${INSTALL_DATA} ${WRKDIR}/${MJC_DRV}/README.noz ${DOC_DIR}/${MJC_DRV} + ${INSTALL_DATA} ${WRKDIR}/${MJC_DRV}/README.mje ${DOC_DIR}/${MJC_DRV} + ${INSTALL_DATA} ${WRKDIR}/${MJC_DRV}/cpem.doc ${DOC_DIR}/${MJC_DRV} + ${INSTALL_DATA} ${WRKDIR}/${MJC_DRV}/MJ700V2C.FAQ ${DOC_DIR}/${MJC_DRV} + +pre-clean: + @cd ../../graphics/jpeg && ${MAKE} clean + +.include "../../mk/bsd.pkg.mk" diff --git a/print/ghostscript-nox11/files/devs.nox11 b/print/ghostscript-nox11/files/devs.nox11 new file mode 100644 index 00000000000..46f1bd0c926 --- /dev/null +++ b/print/ghostscript-nox11/files/devs.nox11 @@ -0,0 +1,178 @@ +# $NetBSD: devs.nox11,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ +# +# non-X11 drivers for Ghostscript + +DEVICE_DEVS+= \ + $(DD)ap3250.dev \ + $(DD)appledmp.dev \ + $(DD)bit.dev \ + $(DD)bitcmyk.dev \ + $(DD)bitrgb.dev \ + $(DD)bj10e.dev \ + $(DD)bj10v.dev \ + $(DD)bj10vh.dev \ + $(DD)bj200.dev \ + $(DD)bjc600.dev \ + $(DD)bjc800.dev \ + $(DD)bjc880j.dev \ + $(DD)bmp16.dev \ + $(DD)bmp16m.dev \ + $(DD)bmp256.dev \ + $(DD)bmp32b.dev \ + $(DD)bmpgray.dev \ + $(DD)bmpmono.dev \ + $(DD)bmpsep1.dev \ + $(DD)bmpsep8.dev \ + $(DD)ccr.dev \ + $(DD)cdeskjet.dev \ + $(DD)cdj1600.dev \ + $(DD)cdj500.dev \ + $(DD)cdj550.dev \ + $(DD)cdj670.dev \ + $(DD)cdj850.dev \ + $(DD)cdj890.dev \ + $(DD)cdjcolor.dev \ + $(DD)cdjmono.dev \ + $(DD)cgm24.dev \ + $(DD)cgm8.dev \ + $(DD)cgmmono.dev \ + $(DD)cif.dev \ + $(DD)cljet5.dev \ + $(DD)coslw2p.dev \ + $(DD)coslwxl.dev \ + $(DD)cp50.dev \ + $(DD)declj250.dev \ + $(DD)deskjet.dev \ + $(DD)dfaxhigh.dev \ + $(DD)dfaxlow.dev \ + $(DD)djet500.dev \ + $(DD)djet500c.dev \ + $(DD)dmprt.dev \ + $(DD)dnj650c.dev \ + $(DD)eps9high.dev \ + $(DD)eps9mid.dev \ + $(DD)epson.dev \ + $(DD)epsonc.dev \ + $(DD)epswrite.dev \ + $(DD)escpage.dev \ + $(DD)faxg3.dev \ + $(DD)faxg32d.dev \ + $(DD)faxg4.dev \ + $(DD)fs600.dev \ + $(DD)hl7x0.dev \ + $(DD)hpdj.dev \ + $(DD)ibmpro.dev \ + $(DD)imagen.dev \ + $(DD)inferno.dev \ + $(DD)iwhi.dev \ + $(DD)iwlo.dev \ + $(DD)iwlq.dev \ + $(DD)jetp3852.dev \ + $(DD)jpeg.dev \ + $(DD)jpeggray.dev \ + $(DD)laserjet.dev \ + $(DD)lips2p.dev \ + $(DD)lips3.dev \ + $(DD)lips4.dev \ + $(DD)lips4v.dev \ + $(DD)lj250.dev \ + $(DD)lj3100sw.dev \ + $(DD)lj4dith.dev \ + $(DD)lj5gray.dev \ + $(DD)lj5mono.dev \ + $(DD)ljet2p.dev \ + $(DD)ljet3.dev \ + $(DD)ljet3d.dev \ + $(DD)ljet4.dev \ + $(DD)ljet4d.dev \ + $(DD)ljetplus.dev \ + $(DD)lp2000.dev \ + $(DD)lp2563.dev \ + $(DD)lp8000.dev \ + $(DD)lq850.dev \ + $(DD)lxm5700m.dev \ + $(DD)m8510.dev \ + $(DD)md1xMono.dev \ + $(DD)md2k.dev \ + $(DD)md50Mono.dev \ + $(DD)md50Eco.dev \ + $(DD)md5k.dev \ + $(DD)mgr4.dev \ + $(DD)mgr8.dev \ + $(DD)mgrgray2.dev \ + $(DD)mgrgray4.dev \ + $(DD)mgrgray8.dev \ + $(DD)mgrmono.dev \ + $(DD)miff24.dev \ + $(DD)necp6.dev \ + $(DD)npdl.dev \ + $(DD)oce9050.dev \ + $(DD)oki182.dev \ + $(DD)okiibm.dev \ + $(DD)paintjet.dev \ + $(DD)pbm.dev \ + $(DD)pbmraw.dev \ + $(DD)pcx16.dev \ + $(DD)pcx24b.dev \ + $(DD)pcx256.dev \ + $(DD)pcxcmyk.dev \ + $(DD)pcxgray.dev \ + $(DD)pcxmono.dev \ + $(DD)pdfwrite.dev \ + $(DD)pgm.dev \ + $(DD)pgmraw.dev \ + $(DD)pgnm.dev \ + $(DD)pgnmraw.dev \ + $(DD)pj.dev \ + $(DD)pjetxl.dev \ + $(DD)pjxl.dev \ + $(DD)pjxl300.dev \ + $(DD)pkm.dev \ + $(DD)pkmraw.dev \ + $(DD)pksm.dev \ + $(DD)pksmraw.dev \ + $(DD)plan9bm.dev \ + $(DD)png16.dev \ + $(DD)png16m.dev \ + $(DD)png256.dev \ + $(DD)pnggray.dev \ + $(DD)pngmono.dev \ + $(DD)pnm.dev \ + $(DD)pnmraw.dev \ + $(DD)ppm.dev \ + $(DD)ppmraw.dev \ + $(DD)prescr.dev \ + $(DD)prescr2.dev \ + $(DD)prescrt.dev \ + $(DD)psgray.dev \ + $(DD)psmono.dev \ + $(DD)psrgb.dev \ + $(DD)pswrite.dev \ + $(DD)pxlcolor.dev \ + $(DD)pxlcolor.dev \ + $(DD)pxlmono.dev \ + $(DD)pxlmono.dev \ + $(DD)r4081.dev \ + $(DD)rpdlA3.dev \ + $(DD)rpdlA4.dev \ + $(DD)rpdlB4.dev \ + $(DD)rpdlB5.dev \ + $(DD)sgirgb.dev \ + $(DD)sj48.dev \ + $(DD)st800.dev \ + $(DD)stcolor.dev \ + $(DD)sunhmono.dev \ + $(DD)t4693d2.dev \ + $(DD)t4693d4.dev \ + $(DD)t4693d8.dev \ + $(DD)tek4696.dev \ + $(DD)tiff12nc.dev \ + $(DD)tiff24nc.dev \ + $(DD)tiffcrle.dev \ + $(DD)tiffg3.dev \ + $(DD)tiffg32d.dev \ + $(DD)tiffg4.dev \ + $(DD)tifflzw.dev \ + $(DD)tiffpack.dev \ + $(DD)uniprint.dev + diff --git a/print/ghostscript-nox11/files/devs.x11 b/print/ghostscript-nox11/files/devs.x11 new file mode 100644 index 00000000000..5594726177b --- /dev/null +++ b/print/ghostscript-nox11/files/devs.x11 @@ -0,0 +1,17 @@ +# $NetBSD: devs.x11,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ +# +# X11 drivers for Ghostscript + +DEVICE_DEVS+= \ + $(DD)x11.dev \ + $(DD)x11alpha.dev \ + $(DD)x11cmyk.dev \ + $(DD)x11cmyk2.dev \ + $(DD)x11cmyk4.dev \ + $(DD)x11cmyk8.dev \ + $(DD)x11gray2.dev \ + $(DD)x11gray4.dev \ + $(DD)x11mono.dev \ + $(DD)x11rg16x.dev \ + $(DD)x11rg32x.dev + diff --git a/print/ghostscript-nox11/files/md5 b/print/ghostscript-nox11/files/md5 new file mode 100644 index 00000000000..40ddf46b5ae --- /dev/null +++ b/print/ghostscript-nox11/files/md5 @@ -0,0 +1,14 @@ +$NetBSD: md5,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ + +MD5 (ghostscript/ghostscript-6.01.tar.bz2) = c2ffb0b215c01c34795183569048ae6c +MD5 (ghostscript/pdf_sec.ps) = 92cd6af5b4d7219e91e61b8351f0f7c4 +MD5 (ghostscript/hpdj-2.6.tar.gz) = dcc402281f36afd2041144e0e97917be +MD5 (ghostscript/dmprt-2.01.tar.gz) = c7a9fb127fde5d888a798bf5e1822b88 +MD5 (ghostscript/gdev10v.tar.gz) = 1486bb54c214ce215044a6c606280d73 +MD5 (ghostscript/gdevmjc-0.8.tar.gz) = 228f41c3cccce22c8f477c7a9407527c +MD5 (ghostscript/gdevalps-0.2.tar.gz) = 8690b96eeb79fe770983a86beae84a11 +MD5 (ghostscript/gdevmd2k-0.2a.tar.gz) = 5ed2b4218b8f77cb411f3d2e4509ed24 +MD5 (ghostscript/gdevlips-2.3.6.tar.gz) = 94d7cfa745e632a8338e47c88feb31f8 +MD5 (ghostscript/gdevrpdl.tar.gz) = 9606f3cca1a8f85be76944fa4eda09b7 +MD5 (ghostscript/gdevprsc-0.2.tar.gz) = 717190d113196ae7d0f3ea28ce381e0b +MD5 (ghostscript/gs6.01-jpdf-exp.patch.gz) = 63868cf3e6ccf93c31c79c66d7fea025 diff --git a/print/ghostscript-nox11/files/patch-sum b/print/ghostscript-nox11/files/patch-sum new file mode 100644 index 00000000000..53dd8d4432b --- /dev/null +++ b/print/ghostscript-nox11/files/patch-sum @@ -0,0 +1,25 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ + +MD5 (patch-aa) = 2abe91fcd32291fa137847802a3a22d0 +MD5 (patch-ab) = 39216d8ef04a53137de88b579e080f02 +MD5 (patch-ac) = 3d8f958ef61f44e22e1a78f797d4e85b +MD5 (patch-ad) = a04b78abb81f358192829e92f455ad62 +MD5 (patch-ae) = 1e662b3ef642ded5a8cb215a007f1e95 +MD5 (patch-af) = b664ee17e734eae3ae3b79ebddc95c5b +MD5 (patch-ag) = 5e477488b958d79fb061d0f7cb5e9091 +MD5 (patch-ah) = 8ca81ee23cab14a6eead57f635017669 +MD5 (patch-ai) = 2d756604ca3d38cdc25ee7b280f908da +MD5 (patch-aj) = 69afd3beb6b52f618eea82d3c7eaa408 +MD5 (patch-ak) = d8214c64578e828f9ff36cc93cb0e82b +MD5 (patch-al) = 006ab8698481d90823c85131920e551d +MD5 (patch-am) = 17c7f999d0250f317beb951917cc51f0 +MD5 (patch-an) = 47370530bbf2e2d2ce316404ef4d1dbd +MD5 (patch-ao) = 34a92836afed85d218fad69faa80b286 +MD5 (patch-ap) = 3c7ad9dffb4d71a2ef01448b7c9f06f1 +MD5 (patch-aq) = 72f9e3f57805089247f2d9042e6995cb +MD5 (patch-ar) = f6f3a376dd67b01ef12192a3b00677bd +MD5 (patch-as) = d24b83fa59818aa97c307a472eea5a5a +MD5 (patch-at) = 66635b4c02eb8dc6e76e146bdfc53777 +MD5 (patch-au) = ae4ec0e86849e6ace7f2e61373b20077 +MD5 (patch-av) = ba6b627be636df846f40abe4f6c93b1b +MD5 (patch-bug-workaround) = 709891b6690b2957868daba5fb536f95 diff --git a/print/ghostscript-nox11/patches/patch-aa b/print/ghostscript-nox11/patches/patch-aa new file mode 100644 index 00000000000..9ce24193527 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-aa @@ -0,0 +1,10 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ + +--- lib/fixmswrd.pl.in.orig Thu Mar 9 03:40:39 2000 ++++ lib/fixmswrd.pl.in Mon May 1 20:26:23 2000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!@PERL@ + # $Id: patch-aa,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ + + # $Id: patch-aa,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ diff --git a/print/ghostscript-nox11/patches/patch-ab b/print/ghostscript-nox11/patches/patch-ab new file mode 100644 index 00000000000..c8e792fdc90 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ + +--- lib/gs_init.ps.orig Mon May 1 20:24:46 2000 ++++ lib/gs_init.ps Mon May 1 20:26:23 2000 +@@ -1704,3 +1704,7 @@ + (END GC) VMDEBUG + + % The interpreter will run the initial procedure (start). ++ ++% unofficial patch: ++% make it possible to print from within acroread pdf viewer ++/Default currenthalftone /Halftone defineresource pop diff --git a/print/ghostscript-nox11/patches/patch-ac b/print/ghostscript-nox11/patches/patch-ac new file mode 100644 index 00000000000..caa01a225ac --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ac @@ -0,0 +1,21 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- lib/gs_statd.ps.orig Thu Mar 9 23:01:55 2000 ++++ lib/gs_statd.ps Mon May 1 20:26:23 2000 +@@ -111,6 +111,8 @@ + % /csheet {1224 1584 //.setpagesize exec} bind def % ANSI C 17x22 + % /dsheet {1584 2448 //.setpagesize exec} bind def % ANSI D 22x34 + % /esheet {2448 3168 //.setpagesize exec} bind def % ANSI E 34x44 ++ /envyou4 {298 666 //.setpagesize exec} bind def % Japanese Envelope ++ /postcard {284 419 //.setpagesize exec} bind def % Japanese Postcard + %END SIZES + end + currentdict /.setpagesize .undef +@@ -124,6 +126,7 @@ + /a0 /a1 /a2 /a3 /a4 /a5 /a6 /a7 /a8 /a9 /a10 + /b0 /b1 /b2 /b3 /b4 /b5 /b6 /archE /archD /archC /archB /archA + /flsa /flse /halfletter /11x17 /ledger ++ /jisb0 /jisb1 /jisb2 /jisb3 /jisb4 /jisb5 /jisb6 /envyou4 /postcard + } cvlit readonly def + + %%%%%% The following items were suggested by a user as useful. diff --git a/print/ghostscript-nox11/patches/patch-ad b/print/ghostscript-nox11/patches/patch-ad new file mode 100644 index 00000000000..977b918ae3d --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ad @@ -0,0 +1,51 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/contrib.mak-5.94.add.orig Sat Oct 16 16:20:06 1999 ++++ src/contrib.mak-5.94.add Mon May 1 20:26:23 2000 +@@ -74,6 +74,10 @@ + # -DHPDJ_MARGIN_FILE='"$(gsdatadir)/hpdj.mdf"' + # + ############################################################################### ++# ++# 20000430 Adapt makefile fragment to latest Ghostscript conventions. ++# ++############################################################################### + + # Compilation options + hpdj_options= +@@ -90,23 +94,23 @@ + # Header file dependencies + $(hpdj_): $(GLSRC)pclcomp.h $(GLSRC)hpdj.h + +-$(GLOBJ)gdevhpdj.$(OBJ): $(GLSRC)gdevhpdj.c +- $(GLCC) $(C_) $(O_)$@ $(hpdj_opts) $(GLSRC)gdevhpdj.c ++$(GLOBJ)gdevhpdj.$(OBJ): $(GLSRC)gdevhpdj.c $(PDEVH) ++ $(GLCC) $(GLO_)gdevhpdj.$(OBJ) $(hpdj_opts) $(C_) $(GLSRC)gdevhpdj.c + +-$(GLOBJ)hpdjdata.$(OBJ): $(GLSRC)hpdjdata.c +- $(GLCC) $(C_) $(O_)$@ $(hpdj_opts) $(GLSRC)hpdjdata.c ++$(GLOBJ)hpdjdata.$(OBJ): $(GLSRC)hpdjdata.c $(PDEVH) ++ $(GLCC) $(GLO_)hpdjdata.$(OBJ) $(hpdj_opts) $(C_) $(GLSRC)hpdjdata.c + +-$(GLOBJ)hpdjparm.$(OBJ): $(GLSRC)hpdjparm.c +- $(GLCC) $(C_) $(O_)$@ $(hpdj_opts) $(GLSRC)hpdjparm.c ++$(GLOBJ)hpdjparm.$(OBJ): $(GLSRC)hpdjparm.c $(PDEVH) ++ $(GLCC) $(GLO_)hpdjparm.$(OBJ) $(hpdj_opts) $(C_) $(GLSRC)hpdjparm.c + +-$(GLOBJ)hpdjprn.$(OBJ): $(GLSRC)hpdjprn.c +- $(GLCC) $(C_) $(O_)$@ $(hpdj_opts) $(GLSRC)hpdjprn.c ++$(GLOBJ)hpdjprn.$(OBJ): $(GLSRC)hpdjprn.c $(PDEVH) ++ $(GLCC) $(GLO_)hpdjprn.$(OBJ) $(hpdj_opts) $(C_) $(GLSRC)hpdjprn.c + +-$(GLOBJ)pclcomp.$(OBJ): $(GLSRC)pclcomp.c +- $(GLCC) $(C_) $(O_)$@ $(hpdj_opts) $(GLSRC)pclcomp.c ++$(GLOBJ)pclcomp.$(OBJ): $(GLSRC)pclcomp.c $(PDEVH) ++ $(GLCC) $(GLO_)pclcomp.$(OBJ) $(hpdj_opts) $(C_) $(GLSRC)pclcomp.c + +-$(GLOBJ)pagecount.$(OBJ): $(GLSRC)pagecount.c +- $(GLCC) $(C_) $(O_)$@ $(hpdj_opts) $(GLSRC)pagecount.c ++$(GLOBJ)pagecount.$(OBJ): $(GLSRC)pagecount.c $(PDEVH) ++ $(GLCC) $(GLO_)pagecount.$(OBJ) $(hpdj_opts) $(C_) $(GLSRC)pagecount.c + + + $(DD)hpdj.dev: $(hpdj_) $(DD)page.dev diff --git a/print/ghostscript-nox11/patches/patch-ae b/print/ghostscript-nox11/patches/patch-ae new file mode 100644 index 00000000000..4febc00bc43 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ae @@ -0,0 +1,42 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/contrib.mak.orig Thu Mar 16 03:09:42 2000 ++++ src/contrib.mak Mon May 1 20:26:23 2000 +@@ -343,7 +343,7 @@ + $(SETPDEV) $(DD)coslw2p $(coslw_) + + $(DD)coslwxl.dev : $(coslw_) $(DD)page.dev +- $(SETPDEV) ($DD)coslwxl $(coslw_) ++ $(SETPDEV) $(DD)coslwxl $(coslw_) + + $(GLOBJ)gdevcslw.$(OBJ) : $(GLSRC)gdevcslw.c $(PDEVH) + $(GLCC) $(GLO_)gdevcslw.$(OBJ) $(C_) $(GLSRC)gdevcslw.c +@@ -551,16 +551,18 @@ + ### Note: these drivers were contributed by users. ### + ### For questions about these drivers, please contact ### + ### Lauri Paatero, lauri.paatero@paatero.pp.fi ### +- +-lbp8_=$(GLOBJ)gdevlbp8.$(OBJ) +-$(DD)lbp8.dev : $(lbp8_) $(DD)page.dev +- $(SETPDEV) $(DD)lbp8 $(lbp8_) +- +-$(DD)lips3.dev : $(lbp8_) $(DD)page.dev +- $(SETPDEV) $(DD)lips3 $(lbp8_) +- +-$(GLOBJ)gdevlbp8.$(OBJ) : $(GLSRC)gdevlbp8.c $(PDEVH) +- $(GLCC) $(GLO_)gdevlbp8.$(OBJ) $(C_) $(GLSRC)gdevlbp8.c ++# ++# Use the gdevlips drivers from http://www.bukka.p.chiba-u.ac.jp/~ohmori/gs/ ++# ++#lbp8_=$(GLOBJ)gdevlbp8.$(OBJ) ++#$(DD)lbp8.dev : $(lbp8_) $(DD)page.dev ++# $(SETPDEV) $(DD)lbp8 $(lbp8_) ++# ++#$(DD)lips3.dev : $(lbp8_) $(DD)page.dev ++# $(SETPDEV) $(DD)lips3 $(lbp8_) ++# ++#$(GLOBJ)gdevlbp8.$(OBJ) : $(GLSRC)gdevlbp8.c $(PDEVH) ++# $(GLCC) $(GLO_)gdevlbp8.$(OBJ) $(C_) $(GLSRC)gdevlbp8.c + + ### -------------- The Epson LP-8000 laser printer device -------------- ### + ### Note: this driver was contributed by a user: please contact Oleg ### diff --git a/print/ghostscript-nox11/patches/patch-af b/print/ghostscript-nox11/patches/patch-af new file mode 100644 index 00000000000..02c8e1113e3 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-af @@ -0,0 +1,26 @@ +$NetBSD: patch-af,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdev10v.mak.orig Mon May 1 20:24:43 2000 ++++ src/gdev10v.mak Mon May 1 20:26:23 2000 +@@ -1,12 +1,15 @@ + ### ----------------- The Canon BubbleJet BJ10v device ----------------- ### + +-bj10v_=gdev10v.$(OBJ) gdevprn.$(OBJ) +-bj10v.dev: $(bj10v_) +- $(SHP)gssetdev bj10v $(bj10v_) +-bj10vh.dev: $(bj10v_) +- $(SHP)gssetdev bj10vh $(bj10v_) ++bj10v_=$(GLOBJ)gdev10v.$(OBJ) $(GLOBJ)gdevprn.$(OBJ) ++ ++$(DD)bj10v.dev: $(bj10v_) $(DD)page.dev ++ $(SETPDEV) $(DD)bj10v $(bj10v_) ++ ++$(DD)bj10vh.dev: $(bj10v_) $(DD)page.dev ++ $(SETPDEV) $(DD)bj10vh $(bj10v_) + + # Uncomment the following line if you are using MS-DOS on PC9801 series. + +-gdev10v.$(OBJ): gdevbj10.c $(PDEVH) ++$(GLOBJ)gdev10v.$(OBJ): $(GLSRC)gdevbj10.c $(PDEVH) ++ $(GLCC) $(GLO_)gdev10v.$(OBJ) $(C_) $(GLSRC)gdev10v.c + # $(CCC) -DPC9801 gdev10v.c diff --git a/print/ghostscript-nox11/patches/patch-ag b/print/ghostscript-nox11/patches/patch-ag new file mode 100644 index 00000000000..606cd91ca46 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ag @@ -0,0 +1,25 @@ +$NetBSD: patch-ag,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevalps.mak-5.50.orig Mon May 1 20:24:43 2000 ++++ src/gdevalps.mak-5.50 Mon May 1 20:26:23 2000 +@@ -2,14 +2,14 @@ + + alps_=$(GLOBJ)gdevalps.$(OBJ) + +-md50Mono.dev: $(alps_) page.dev +- $(SETPDEV) md50Mono $(alps_) ++$(DD)md50Mono.dev: $(alps_) $(DD)page.dev ++ $(SETPDEV) $(DD)md50Mono $(alps_) + +-md50Eco.dev: $(alps_) page.dev +- $(SETPDEV) md50Eco $(alps_) ++$(DD)md50Eco.dev: $(alps_) $(DD)page.dev ++ $(SETPDEV) $(DD)md50Eco $(alps_) + +-md1xMono.dev: $(alps_) page.dev +- $(SETPDEV) md1xMono $(alps_) ++$(DD)md1xMono.dev: $(alps_) $(DD)page.dev ++ $(SETPDEV) $(DD)md1xMono $(alps_) + + $(GLOBJ)gdevalps.$(OBJ): $(GLSRC)gdevalps.c $(PDEVH) + $(GLCC) $(GLO_)gdevalps.$(OBJ) $(C_) $(GLSRC)gdevalps.c diff --git a/print/ghostscript-nox11/patches/patch-ah b/print/ghostscript-nox11/patches/patch-ah new file mode 100644 index 00000000000..4e8a8a25c2e --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ah @@ -0,0 +1,221 @@ +$NetBSD: patch-ah,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevcd8.c.orig Thu Mar 9 03:40:40 2000 ++++ src/gdevcd8.c Mon May 1 20:26:23 2000 +@@ -31,7 +31,7 @@ + + /* + A printer driver for the HP670, HP690, HP850, HP855 +- HP870, HP890, HP1100 and HP1600 color printers. ++ HP870, HP880, HP890, HP1100 and HP1600 color printers. + + To be used with the Ghostscript printing system. + Please report all problems to uliw@erdw.ethz.ch +@@ -59,6 +59,8 @@ + + */ + ++/* Add public code to add support for HP880 color printers. */ ++ + /* 1999-01-07 edited by L. Peter Deutsch <ghost@aladdin.com> to eliminate + non-const statics and otherwise bring up to date with Ghostscript coding + style guidelines. */ +@@ -303,6 +305,107 @@ + 166, 169, 174, 177, 182, 187, 194, 203, 215, 255} + }; + ++private const Gamma gammat880 = ++{ ++ /* Lookup values for cyan */ ++ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ++ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, ++ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, ++ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, ++ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, ++ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, ++ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, ++ 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, ++ 126, 127, ++ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, ++ 142, 143, ++ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, ++ 158, 159, ++ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, ++ 174, 175, ++ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, ++ 190, 191, ++ 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, ++ 206, 207, ++ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, ++ 222, 223, ++ 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, ++ 238, 239, ++ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, ++ 254, 255}, ++ /* Lookup values for magenta */ ++ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ++ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, ++ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, ++ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, ++ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, ++ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, ++ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, ++ 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, ++ 126, 127, ++ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, ++ 142, 143, ++ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, ++ 158, 159, ++ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, ++ 174, 175, ++ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, ++ 190, 191, ++ 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, ++ 206, 207, ++ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, ++ 222, 223, ++ 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, ++ 238, 239, ++ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, ++ 254, 255}, ++ /* Lookup values for yellow */ ++ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ++ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, ++ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, ++ 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, ++ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, ++ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, ++ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, ++ 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, ++ 126, 127, ++ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, ++ 142, 143, ++ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, ++ 158, 159, ++ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, ++ 174, 175, ++ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, ++ 190, 191, ++ 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, ++ 206, 207, ++ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, ++ 222, 223, ++ 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, ++ 238, 239, ++ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, ++ 254, 255}, ++ /* Lookup values for black */ ++ {0, 0, 0, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 2, 4, ++ 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, ++ 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 8, 8, 8, ++ 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 13, ++ 13, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, ++ 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 19, 19, 20, 20, 20, 20, ++ 20, 21, 21, 21, 21, 22, 22, 22, 22, 23, 22, 23, 23, 24, 24, 24, ++ 24, 25, 25, 26, 26, 26, 26, 27, 27, 28, 28, 28, 28, 29, 29, 30, ++ 30, 31, 31, 31, 32, 32, 33, 33, 34, 34, 35, 36, 36, 36, 37, 37, ++ 37, 38, 38, 40, 40, 40, 41, 41, 42, 43, 43, 43, 43, 44, 45, 45, ++ 46, 47, 47, 48, 49, 49, 50, 52, 52, 53, 54, 54, 56, 56, 57, 58, ++ 59, 60, 60, 61, 62, 63, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, ++ 72, 73, 75, 75, 76, 77, 78, 80, 81, 82, 82, 83, 84, 85, 86, 88, ++ 89, 90, 91, 94, 95, 96, 98, 99, 100, 101, 103, 105, 106, 107, 110, 111, ++ 112, 115, 116, 118, 120, 121, 124, 126, 127, 131, 133, 134, 138, 140, ++ 141, 146, ++ 148, 151, 154, 156, 160, 163, 166, 169, 174, 177, 182, 187, 194, 203, ++ 215, 255} ++}; ++ + private const Gamma gammat890 = + { + /* Lookup values for cyan */ +@@ -408,6 +511,7 @@ + { + &gammat850, /* CDJ670 */ + &gammat850, /* CDJ850 */ ++ &gammat880, /* CDJ880 */ + &gammat890, /* CDJ890 */ + &gammat850 /* CDJ1600 */ + }; +@@ -464,7 +568,7 @@ + + /* Printer types */ + typedef enum { +- DJ670C, DJ850C, DJ890C, DJ1600C ++ DJ670C, DJ850C, DJ880C, DJ890C, DJ1600C + } cdj_printer_type_t; + + /* No. of ink jets (used to minimise head movements) */ +@@ -586,7 +690,7 @@ + int intensities; /* intensity values per pixel [2,4] */ + int xscal; /* boolean to indicate x scaling by 2 */ + int yscal; /* boolean to indicate y scaling by 2 */ +- int /*cdj_printer_type_t*/ ptype; /* printer type, one of DJ670C, DJ850C, DJ890C, DJ1600C */ ++ int /*cdj_printer_type_t*/ ptype; /* printer type, one of DJ670C, DJ850C, DJ880C, DJ890C, DJ1600C */ + int compression; /* compression level */ + float mastergamma; /* Gammavalue applied to all colors */ + float gammavalc; /* range to which gamma-correction is +@@ -705,6 +809,10 @@ + cdj850_terminate_page(P2(gx_device_printer * pdev, FILE * prn_stream)); + + private void ++ cdj880_start_raster_mode(P3(gx_device_printer * pdev, ++ int papersize, FILE * prn_stream)); ++ ++private void + cdj1600_start_raster_mode(P3(gx_device_printer * pdev, + int papersize, FILE * prn_stream)); + private void +@@ -727,6 +835,10 @@ + cmyk_colour_procs(hp_colour_open, cdj850_get_params, cdj850_put_params, + NULL, gdev_cmyk_map_color_rgb, gdev_cmyk_map_cmyk_color); + ++private const gx_device_procs cdj880_procs = ++cmyk_colour_procs(hp_colour_open, cdj850_get_params, cdj850_put_params, ++ NULL, gdev_cmyk_map_color_rgb, gdev_cmyk_map_cmyk_color); ++ + private const gx_device_procs cdj890_procs = + cmyk_colour_procs(hp_colour_open, cdj850_get_params, cdj850_put_params, + NULL, gdev_cmyk_map_color_rgb, gdev_cmyk_map_cmyk_color); +@@ -749,6 +861,13 @@ + cdj850_start_raster_mode, cdj850_print_non_blank_lines, + cdj850_terminate_page); + ++const gx_device_cdj850 gs_cdj880_device = ++cdj_850_device(cdj880_procs, "cdj880", 600, 600, 32, cdj850_print_page, 0, ++ PRESENTATION, PLAIN_PAPER, 2, DJ880C, 9, ++ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, ++ cdj880_start_raster_mode, cdj850_print_non_blank_lines, ++ cdj1600_terminate_page); ++ + const gx_device_cdj850 gs_cdj890_device = + cdj_850_device(cdj890_procs, "cdj890", 600, 600, 32, cdj850_print_page, 0, + PRESENTATION, PLAIN_PAPER, 4, DJ890C, 9, +@@ -823,6 +942,7 @@ + m = (gdev_pcl_paper_size(pdev) == PAPER_SIZE_A4 ? dj_a4 : dj_letter); + break; + case DJ850C: ++ case DJ880C: + case DJ890C: + if (cdj850->quality == DRAFT) { + gx_device_set_resolution(pdev, 300.0, 300.0); +@@ -2722,6 +2842,20 @@ + * } + * end of unused code */ + ++/************************ the routines for the cdj880 printer ****************/ ++ ++/* Configure the printer and start Raster mode */ ++private void ++cdj880_start_raster_mode(gx_device_printer * pdev, int paper_size, ++ FILE * prn_stream) ++{ ++ /* switch to PCL control language */ ++ fputs("\033%-12345X@PJL enter language = PCL\n", prn_stream); ++ ++ cdj850_start_raster_mode(pdev, paper_size, prn_stream); ++ ++ return; ++} + + /************************ the routines for the cdj1600 printer ***************/ + diff --git a/print/ghostscript-nox11/patches/patch-ai b/print/ghostscript-nox11/patches/patch-ai new file mode 100644 index 00000000000..5100b1386b7 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ai @@ -0,0 +1,23 @@ +$NetBSD: patch-ai,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevdmpr.mak.orig Mon May 1 20:24:43 2000 ++++ src/gdevdmpr.mak Mon May 1 20:26:23 2000 +@@ -1,8 +1,12 @@ + ### ---------------- Dot matrix printer device ---------------- ### +-dmprt_=gdevdmpr.$(OBJ) dviprlib.$(OBJ) gdevprn.$(OBJ) ++dmprt_=$(GLOBJ)gdevdmpr.$(OBJ) $(GLOBJ)dviprlib.$(OBJ) $(GLOBJ)gdevprn.$(OBJ) + +-dmprt.dev: $(dmprt_) +- $(SETDEV) dmprt $(dmprt_) +- $(ADDMOD) dmprt -ps dmp_init +-gdevdmpr.$(OBJ): gdevdmpr.c dviprlib.h $(PDEVH) +-dviprlib.$(OBJ): dviprlib.c dviprlib.h ++$(DD)dmprt.dev: $(dmprt_) ++ $(SETDEV) $(DD)dmprt $(dmprt_) ++ $(ADDMOD) $(DD)dmprt -ps dmp_init ++ ++$(GLOBJ)gdevdmpr.$(OBJ): $(GLSRC)gdevdmpr.c $(GLSRC)dviprlib.h $(PDEVH) ++ $(GLCC) $(GLO_)gdevdmpr.$(OBJ) $(C_) $(GLSRC)gdevdmpr.c ++ ++$(GLOBJ)dviprlib.$(OBJ): $(GLSRC)dviprlib.c $(GLSRC)dviprlib.h ++ $(GLCC) $(GLO_)dviprlib.$(OBJ) $(C_) $(GLSRC)dviprlib.c diff --git a/print/ghostscript-nox11/patches/patch-aj b/print/ghostscript-nox11/patches/patch-aj new file mode 100644 index 00000000000..09af3ddd085 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-aj @@ -0,0 +1,24 @@ +$NetBSD: patch-aj,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevlips.mak.orig Mon May 1 20:24:43 2000 ++++ src/gdevlips.mak Mon May 1 20:26:23 2000 +@@ -37,10 +37,10 @@ + $(GLOBJ)gdevespg.$(OBJ): $(GLSRC)gdevespg.c $(GLSRC)gdevlprn.h $(PDEVH) + $(GLCC) -DA4 $(GLO_)gdevespg.$(OBJ) $(C_) $(GLSRC)gdevespg.c + +-$(GLOBJ)escpage.dev: $(escpage_) $(DD)page.dev ++$(DD)escpage.dev: $(escpage_) $(DD)page.dev + $(SETPDEV) $(DD)escpage $(escpage_) + +-$(GLOBJ)lp2000.dev: $(escpage_) $(DD)page.dev ++$(DD)lp2000.dev: $(escpage_) $(DD)page.dev + $(SETPDEV) $(DD)lp2000 $(escpage_) + + ### --- The NEC NPDL language printer device ------ ### +@@ -49,5 +49,5 @@ + $(GLOBJ)gdevnpdl.$(OBJ): $(GLSRC)gdevnpdl.c $(GLSRC)gdevlprn.h $(PDEVH) + $(GLCC) -DA4 $(GLO_)gdevnpdl.$(OBJ) $(C_) $(GLSRC)gdevnpdl.c + +-$(GLOBJ)npdl.dev: $(npdl_) $(DD)page.dev ++$(DD)npdl.dev: $(npdl_) $(DD)page.dev + $(SETPDEV) $(DD)npdl $(npdl_) diff --git a/print/ghostscript-nox11/patches/patch-ak b/print/ghostscript-nox11/patches/patch-ak new file mode 100644 index 00000000000..8f634be2e6b --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ak @@ -0,0 +1,384 @@ +$NetBSD: patch-ak,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevmjc.c.orig Mon May 1 20:24:43 2000 ++++ src/gdevmjc.c Mon May 1 20:31:17 2000 +@@ -16,6 +16,46 @@ + things, the copyright notice and this notice must be preserved on all + copies. */ + ++/*************************************************************************** ++This file includes the changes from the gdevmjc.c-0.8 patch for ghostscript ++5.50 by kurosawa with mj_put_params() fix by Inagaki Kentaro. ++ ++NO WARRANTY ++ ++From root Fri Nov 22 01:20:20 1996 ++Received: from theta.iis.u-tokyo.ac.jp by daikon.fujita3.iis.u-tokyo.ac.jp (AIX 3.2/UCB 5.64/3.4W2) ++ id AA18127; Fri, 22 Nov 1996 01:20:20 +0900 ++Received: from contura.sail.t.u-tokyo.ac.jp by theta.iis.u-tokyo.ac.jp (8.7.5+2.6Wbeta6/3.4W4) with ESMTP id BAA07053; Fri, 22 Nov 1996 01:20:12 +0900 (JST) ++Received: (from kurosawa@localhost) by contura.sail.t.u-tokyo.ac.jp (8.7.6/3.4Wbeta6/Sail961016) id BAA11954; Fri, 22 Nov 1996 01:19:56 +0900 (JST) ++Date: Fri, 22 Nov 1996 01:19:56 +0900 (JST) ++Message-Id: <199611211619.BAA11954@contura.sail.t.u-tokyo.ac.jp> ++To: mita@iis.u-tokyo.ac.jp ++Subject: mjc-patch ++From: kurosawa@sail.t.u-tokyo.ac.jp (KUROSAWA Takahiro) ++X-Mailer: mnews [version 1.19PL2] 1996-01/26(Fri) ++ ++$B9uBt$G$9(B. ++ ++$B$h$&$d$/$G$-$^$7$?(B, $B$?$V$s(B. $B$?$@$G$5$(F,$,2u$l$.$_$@$H8@$o$l$F$$$k$N$K(B ++$B$5$i$K$A$g$C$H:#F|(B($B:rF|$+(B)$B$O$D$+$l$F$F(B, $BF,$,AjEvJQ$@$C$?$_$?$$$G$9(B. ++$B:rF|J,$N%a!<%k$OL5;k$7$A$c$C$F$/$@$5$$(B. ++ ++# $B$5$C$-=P$7$?!V%(%i!<$,$G$k$h!A!W%a!<%k$N860x$G$9$1$I!$C1$K%U%)%s%H$r%$(B ++# $B%s%9%H!<%k$7$F$J$+$C$?$s$G$9(B. $B$4$a$s$J$5$$(B.... ++ ++$B!V=PNO%U%!%$%k$K=P$J$$!W$N7o$G$9$1$I(B, $B$A$g$C$H$7$?%1%"%l%9%_%9$H$$$&$+(B, ++$B9uBt$,$h$/(B gs $B$NFbIt9=B$$rM}2r$7$F$J$$$N$,860x$G$7$?(B. $B<B$O$"$N>u67$G$O(B ++/tmp $B$K%U%!%$%k$,$G$-$F$$$?$N$G$9(B. ++ ++$B$3$l$G?'$H$+%9%1!<%k$N<:GT$,$J$1$l$P$$$$$N$G$9$,(B, $B$"$^$j$=$&$&$^$/$O$$(B ++$B$+$J$$$H$*$b$$$^$9(B. $B%9%1!<%k$NJ}$OLdBj$J$$$+$b$7$l$^$;$s$,(B, $B?'?t$r8:$i(B ++$B$7$?$i$I$&$J$k$+$A$g$C$H?4G[$G$9(B. ++ ++$B$F$J$o$1$G(B, $B$*$?$a$7$/$@$5$$(B. $B%*%j%8%J%k$+$i$N%Q%C%A$G$9(B. ++# $B%*%j%8%J%k$+$i$N%Q%C%A$K$7$?$O$:$G$9$1$I(B, $B:#F|$N>u67$@$H$A$g$C$H<+?.(B ++# $B$r;}$F$J$$(B(^^;) ++***************************************************************************/ ++ + /* gdevmjc.c */ + /* Many parts of this file are copied from gdevcdj.c and gdevescp.c */ + +@@ -43,7 +83,8 @@ + #include <limits.h> + #include "gdevprn.h" + #include "gdevpcl.h" +-#include "gsprops.h" ++#include "gsparam.h" ++#include "gsstate.h" + + #include "mjmtx2.c" + #include "mjbksep.c" +@@ -150,7 +191,9 @@ + + /* Undefined macros expected to be defined in gdevpcl.h */ + #define PAPER_SIZE_A3_NOBI 28 ++#ifndef PAPER_SIZE_A2 + #define PAPER_SIZE_A2 29 ++#endif + #define PAPER_SIZE_B4 30 + #define PAPER_SIZE_B5 31 + +@@ -190,14 +233,12 @@ + private dev_proc_print_page(mjc720_print_page); + private dev_proc_print_page(mj500c_print_page); + +-private dev_proc_get_props(mj_get_props); +-private dev_proc_put_props(mj_put_props); ++private dev_proc_get_params(mj_get_params); ++private dev_proc_put_params(mj_put_params); + + private void expand_line(P4(word*, int, int, int)); +-private int put_prop_float(P5(gs_prop_item *, float *, float, float, int)); +-private int put_prop_int(P5(gs_prop_item *, int *, int, int, int)); +- +-private void set_bpp(P2(gx_device *, int)); ++private int mj_put_param_int(P6(gs_param_list *, gs_param_name, int *, int, int, int)); ++private void mj_set_bpp(P2(gx_device *, int)); + + private uint gdev_prn_rasterwidth(P2(const gx_device_printer *, int )); + +@@ -224,7 +265,7 @@ + #define mj ((gx_device_mj *) pdev) + + #define prn_hp_colour_device(procs, dev_name, x_dpi, y_dpi, bpp, print_page)\ +- prn_device_body(gx_device_printer, procs, dev_name,\ ++ prn_device_body(gx_device_mj, procs, dev_name,\ + WIDTH_10THS, HEIGHT_10THS, x_dpi, y_dpi, 0, 0, 0, 0, 0,\ + bpp, 0, 0, 0, 0, print_page) + +@@ -235,9 +276,9 @@ + } + + +-#define mj_colour_procs(proc_colour_open, proc_get_props, proc_put_props) {\ ++#define mj_colour_procs(proc_colour_open, proc_get_params, proc_put_params) {\ + proc_colour_open,\ +- gdev_pcl_get_initial_matrix,\ ++ gx_default_get_initial_matrix,\ + gx_default_sync_output,\ + gdev_prn_output_page,\ + gdev_prn_close,\ +@@ -249,15 +290,15 @@ + NULL, /* copy_color */\ + NULL, /* draw_line */\ + gx_default_get_bits,\ +- proc_get_props,\ +- proc_put_props\ ++ proc_get_params,\ ++ proc_put_params\ + } + + private int mjc_open(P1(gx_device *)); + private int mj_colour_open(P1(gx_device *)); + + private gx_device_procs mj_procs = +-mj_colour_procs(mjc_open, mj_get_props, mj_put_props); ++mj_colour_procs(mjc_open, mj_get_params, mj_put_params); + + gx_device_mj far_data gs_mjc180_device = + mj_device(mj_procs, "mjc180", 180, 180, BITSPERPIXEL, +@@ -306,14 +347,14 @@ + static const float mj_b4[4] = { MJ700V2C_MARGINS_B4 }; + static const float mj_b5[4] = { MJ700V2C_MARGINS_B5 }; + static const float mj_letter[4] = { MJ700V2C_MARGINS_LETTER }; +- const float _ds *m; ++ const float *m; + int psize; + + int paper_size; + + /* Set up colour params if put_props has not already done so */ + if (pdev->color_info.num_components == 0) +- set_bpp(pdev, pdev->color_info.depth); ++ mj_set_bpp(pdev, pdev->color_info.depth); + + paper_size = gdev_mjc_paper_size(pdev); + if (paper_size == PAPER_SIZE_A2 ) { +@@ -332,10 +373,7 @@ + m = mj_letter; + } + +- pdev->l_margin = m[0]; +- pdev->b_margin = m[1]; +- pdev->r_margin = m[2]; +- pdev->t_margin = m[3]; ++ gx_device_set_margins(pdev, m, true); + + switch (mj->colorcomp) { + case 1: +@@ -360,80 +398,74 @@ + * and control over the bits-per-pixel used in output rendering */ + /* Added properties for DeskJet 5xxC */ + +-private const gs_prop_item props_mj[] = { +- /* Read-write properties. */ +- prop_def("Density", prt_int), +- prop_def("Cyan", prt_int), +- prop_def("Magenta", prt_int), +- prop_def("Yellow", prt_int), +- prop_def("Black", prt_int), +- prop_def("Dither", prt_int), +- prop_def("ColorComponent", prt_int), +- prop_def("Direction", prt_int), +- prop_def("MicroWeave", prt_int), +- prop_def("DotSize", prt_int), +-}; +- + private int +-mj_get_props(gx_device *pdev, gs_prop_item *plist) +-{ int start = gdev_prn_get_props(pdev, plist); +- if ( plist != 0 ) { +- register gs_prop_item *pi = plist + start; +- memcpy(pi, props_mj, sizeof(props_mj)); +- pi[0].value.i = mj->density; +- pi[1].value.i = mj->cyan; +- pi[2].value.i = mj->magenta; +- pi[3].value.i = mj->yellow; +- pi[4].value.i = mj->black; +- pi[5].value.i = mj->dither; +- pi[6].value.i = mj->colorcomp; +- pi[7].value.i = mj->direction; +- pi[8].value.i = mj->microweave; +- pi[9].value.i = mj->dotsize; +- } +- return start + sizeof(props_mj) / sizeof(gs_prop_item); ++mj_get_params(gx_device *pdev, gs_param_list *plist) ++{ int code = gdev_prn_get_params(pdev, plist); ++ if ( code < 0 || ++ (code = param_write_int(plist, "Density", &mj->density)) < 0 || ++ (code = param_write_int(plist, "Cyan", &mj->cyan)) < 0 || ++ (code = param_write_int(plist, "Magenta", &mj->magenta)) < 0 || ++ (code = param_write_int(plist, "Yellow", &mj->yellow)) < 0 || ++ (code = param_write_int(plist, "Black", &mj->black)) < 0 || ++ (code = param_write_int(plist, "Dither", &mj->dither)) < 0 || ++ (code = param_write_int(plist, "ColorComponent", &mj->colorcomp)) < 0 || ++ (code = param_write_int(plist, "Direction", &mj->direction)) < 0 || ++ (code = param_write_int(plist, "MicroWeave", &mj->microweave)) < 0 || ++ (code = param_write_int(plist, "DotSize", &mj->dotsize)) < 0 ++ ) ++ return code; ++ return code; + } + + /* Put properties. */ + private int +-mj_put_props(gx_device *pdev, gs_prop_item *plist, int count) ++mj_put_params(gx_device *pdev, gs_param_list *plist) + { +- static const argn = 10; +-/* gs_prop_item *known[argn]; */ +- gs_prop_item *known[10]; + int old_bpp = mj->color_info.depth; + int bpp = 0; + int code = 0; +- +- props_extract(plist, count, props_mj, argn, known, 0); +- code = gdev_prn_put_props(pdev, plist, count); +- if ( code < 0 ) return code; +- +- code = put_prop_int(known[0], &mj->density, 0, INT_MAX, code); +- code = put_prop_int(known[1], &mj->cyan, 0, INT_MAX, code); +- code = put_prop_int(known[2], &mj->magenta, 0, INT_MAX, code); +- code = put_prop_int(known[3], &mj->yellow, 0, INT_MAX, code); +- code = put_prop_int(known[4], &mj->black, 0, INT_MAX, code); +- code = put_prop_int(known[5], &mj->dither, 0, 1, code); +- code = put_prop_int(known[6], &mj->colorcomp, 1, 4, code); +- code = put_prop_int(known[7], &mj->direction, 1, 2, code); +- code = put_prop_int(known[8], &mj->microweave, 0, 1, code); +- code = put_prop_int(known[9], &mj->dotsize, 0, 1, code); +- ++ int density = mj->density; ++ int cyan = mj->cyan; ++ int magenta = mj->magenta; ++ int yellow = mj->yellow; ++ int black = mj->black; ++ int dither = mj->dither; ++ int colorcomp = mj->colorcomp; ++ int direction = mj->direction; ++ int microweave = mj->microweave; ++ int dotsize = mj->dotsize; ++ code = mj_put_param_int(plist, "Density", &density, 0, INT_MAX, code); ++ code = mj_put_param_int(plist, "Cyan", &cyan, 0, INT_MAX, code); ++ code = mj_put_param_int(plist, "Magenta", &magenta, 0, INT_MAX, code); ++ code = mj_put_param_int(plist, "Yellow", &yellow, 0, INT_MAX, code); ++ code = mj_put_param_int(plist, "Black", &black, 0, INT_MAX, code); ++ code = mj_put_param_int(plist, "Dither", &dither, 0, 1, code); ++ code = mj_put_param_int(plist, "ColorComponent", &colorcomp, 1, 4, code); ++ code = mj_put_param_int(plist, "Direction", &direction, 1, 2, code); ++ code = mj_put_param_int(plist, "MicroWeave", µweave, 0, 1, code); ++ code = mj_put_param_int(plist, "DotSize", &dotsize, 0, 1, code); ++ code = mj_put_param_int(plist, "BitsPerPixel", &bpp, 1, 32, code); + if ( code < 0 ) +- return_error(code); +- +- if (bpp != 0) { +- set_bpp(pdev, bpp); +- +- /* Close the device; gs_putdeviceprops will reopen it. */ ++ return code; ++ mj->density = density; ++ mj->cyan = cyan; ++ mj->magenta = magenta; ++ mj->yellow = yellow; ++ mj->black = black; ++ mj->dither = dither; ++ mj->colorcomp = colorcomp; ++ mj->direction = direction; ++ mj->microweave = microweave; ++ mj->dotsize = dotsize; ++ if ( bpp != 0 ) { ++ mj_set_bpp(pdev, bpp); ++ gdev_prn_put_params(pdev, plist); + if ( bpp != old_bpp && pdev->is_open ) +- { int ccode = gs_closedevice(pdev); +- if ( ccode < 0 ) return ccode; +- } ++ return gs_closedevice(pdev); ++ return 0; + } +- +- return code; ++ else ++ return gdev_prn_put_params(pdev, plist); + } + + /* ------ Internal routines ------ */ +@@ -1163,7 +1195,8 @@ + + /* Send each scan line in turn */ + { +- long int lend = pdev->height - (pdev->t_margin + pdev->b_margin) * y_dpi; ++ long int lend = pdev->height - ++ (dev_t_margin_points(pdev) + dev_b_margin_points(pdev)); + int cErr, mErr, yErr, kErr; + int this_pass, i; + long int lnum; +@@ -1685,39 +1718,25 @@ + } + + private int +-put_prop_int(gs_prop_item *pi, int *property, int minval, int maxval, int code) +-{ +- if ( pi == 0 ) +- return (code); +- +- if ( pi->value.i < minval || pi->value.i > maxval ) +- { pi->status = pv_rangecheck; +- return (gs_error_rangecheck); +- } +- else +- { *property = pi->value.i; +- return (code ? code : 1); +- } +-} +- +-private int +-put_prop_float(gs_prop_item *pi, float *property, float minval, float maxval, int code) +-{ +- if ( pi == 0 ) +- return (code); +- +- if ( pi->value.f < minval || pi->value.f > maxval ) +- { pi->status = pv_rangecheck; +- return (gs_error_rangecheck); +- } +- else +- { *property = pi->value.f; +- return (code ? code : 1); +- } ++mj_put_param_int(gs_param_list *plist, gs_param_name pname, int *pvalue, ++ int minval, int maxval, int ecode) ++{ int code, value; ++ switch ( code = param_read_int(plist, pname, &value) ) ++ { ++ default: ++ return code; ++ case 1: ++ return ecode; ++ case 0: ++ if ( value < minval || value > maxval ) ++ param_signal_error(plist, pname, gs_error_rangecheck); ++ *pvalue = value; ++ return (ecode < 0 ? ecode : 1); ++ } + } + + private void +-set_bpp(gx_device *pdev, int bits_per_pixel) ++mj_set_bpp(gx_device *pdev, int bits_per_pixel) + { gx_device_color_info *ci = &pdev->color_info; + /* Only valid bits-per-pixel are 1, 3, 8, 16, 24, 32 */ + int bpp = bits_per_pixel < 3 ? 1 : bits_per_pixel < 8 ? 3 : +@@ -1725,9 +1744,9 @@ + ci->num_components = ((bpp == 1) || (bpp == 8) ? 1 : 3); + ci->depth = ((bpp > 1) && (bpp < 8) ? 8 : bpp); + ci->max_gray = (bpp >= 8 ? 255 : 1); +- ci->max_rgb = (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0); +- ci->dither_gray = (bpp >= 8 ? 5 : 2); +- ci->dither_rgb = (bpp >= 8 ? 5 : bpp > 1 ? 2 : 0); ++ ci->max_color = (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0); ++ ci->dither_grays = (bpp >= 8 ? 5 : 2); ++ ci->dither_colors = (bpp >= 8 ? 5 : bpp > 1 ? 2 : 0); + } + + /* This returns either the number of pixels in a scan line, or the number +@@ -1736,7 +1755,7 @@ + gdev_prn_rasterwidth(const gx_device_printer *pdev, int pixelcount) + { + word raster_width = +- pdev->width - pdev->x_pixels_per_inch * (pdev->l_margin + pdev->r_margin); ++ pdev->width - (pdev->HWMargins[0] + pdev->HWMargins[2]); + return (pixelcount ? + (uint)raster_width : + (uint)((raster_width * pdev->color_info.depth + 7) >> 3)); diff --git a/print/ghostscript-nox11/patches/patch-al b/print/ghostscript-nox11/patches/patch-al new file mode 100644 index 00000000000..283590470d9 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-al @@ -0,0 +1,40 @@ +$NetBSD: patch-al,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevmjc.mak.orig Mon May 1 20:24:43 2000 ++++ src/gdevmjc.mak Mon May 1 20:34:56 2000 +@@ -8,21 +8,22 @@ + # Append this file to Makefile + # + ## +-MJCSRC = gdevmjc.c mjmtx2.c mjbksep.c mjhtocmy.c mjvtbl.c \ +- mjgrnsp.c mjgrnsp2.c mjespdtc.c mjespdtm.c mjespdty.c mjbarrie.c ++MJCSRC= $(GLSRC)gdevmjc.c $(GLSRC)mjmtx2.c $(GLSRC)mjbksep.c\ ++ $(GLSRC)mjhtocmy.c $(GLSRC)mjvtbl.c $(GLSRC)mjgrnsp.c $(GLSRC)mjgrnsp2.c\ ++ $(GLSRC)mjespdtc.c $(GLSRC)mjespdtm.c $(GLSRC)mjespdty.c $(GLSRC)mjbarrie.c + +-mj700v2c_=gdevmjc.$(OBJ) $(HPPCL) ++mj700v2c_=$(GLOBJ)gdevmjc.$(OBJ) $(HPPCL) + + # To make A4 paper the default, change the second line below this to +-gdevmjc.$(OBJ): $(MJCSRC) $(PDEVH) $(gdevpcl_h) +- $(CCC) -DA4 gdevmjc.c ++$(GLOBJ)gdevmjc.$(OBJ): $(MJCSRC) $(PDEVH) $(gdevpcl_h) ++ $(GLCC) -DA4 $(GLO_)gdevmjc.$(OBJ) $(C_) $(GLSRC)gdevmjc.c + +-mjc180.dev: $(mj700v2c_) +- $(SHP)gssetdev mjc180 $(mj700v2c_) +-mjc360.dev: $(mj700v2c_) +- $(SHP)gssetdev mjc360 $(mj700v2c_) +-mjc720.dev: $(mj700v2c_) +- $(SHP)gssetdev mjc720 $(mj700v2c_) +-mj500c.dev: $(mj700v2c_) +- $(SHP)gssetdev mj500c $(mj700v2c_) ++$(DD)mjc180.dev: $(mj700v2c_) ++ $(SETPDEV) $(DD)mjc180 $(mj700v2c_) ++$(DD)mjc360.dev: $(mj700v2c_) ++ $(SETPDEV) $(DD)mjc360 $(mj700v2c_) ++$(DD)mjc720.dev: $(mj700v2c_) ++ $(SETPDEV) $(DD)mjc720 $(mj700v2c_) ++$(DD)mj500c.dev: $(mj700v2c_) ++ $(SETPDEV) $(DD)mj500c $(mj700v2c_) + diff --git a/print/ghostscript-nox11/patches/patch-am b/print/ghostscript-nox11/patches/patch-am new file mode 100644 index 00000000000..8775c909a66 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-am @@ -0,0 +1,13 @@ +$NetBSD: patch-am,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevmsxf.c.orig Mon May 1 20:24:46 2000 ++++ src/gdevmsxf.c Mon May 1 20:26:23 2000 +@@ -337,7 +337,7 @@ + + /* Render a character. */ + int +-win_render_char(gx_xfont * xf, gx_xglyph xg, int wmode gx_device * dev, ++win_render_char(gx_xfont * xf, gx_xglyph xg, int wmode, gx_device * dev, + int xo, int yo, gx_color_index color, int required) + { + char chr = (char)xg; diff --git a/print/ghostscript-nox11/patches/patch-an b/print/ghostscript-nox11/patches/patch-an new file mode 100644 index 00000000000..cfd95c48b9f --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-an @@ -0,0 +1,12 @@ +$NetBSD: patch-an,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevps.c.orig Fri Mar 10 02:45:50 2000 ++++ src/gdevps.c Mon May 1 20:26:23 2000 +@@ -600,6 +600,7 @@ + {"/a3", 842, 1190}, + {"/a4", 595, 842}, + {"/b5", 501, 709}, ++ {"/jisb5", 516, 729}, + {"/ledger", 1224, 792}, + {"/legal", 612, 1008}, + {"/letter", 612, 792}, diff --git a/print/ghostscript-nox11/patches/patch-ao b/print/ghostscript-nox11/patches/patch-ao new file mode 100644 index 00000000000..d6f2511c80b --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ao @@ -0,0 +1,31 @@ +$NetBSD: patch-ao,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gdevrpdl.mak.orig Mon May 1 20:36:35 2000 ++++ src/gdevrpdl.mak Mon May 1 22:00:17 2000 +@@ -1,15 +1,17 @@ + ### ---------- RICOH RPDL IV(600dpi) printer devices ---------- ### +-rpdl_=gdevrpdl.$(OBJ) ++rpdl_=$(GLOBJ)gdevrpdl.$(OBJ) ++$(GLOBJ)gdevrpdl.$(OBJ): $(GLSRC)gdevrpdl.c $(PDEVH) ++ $(GLCC) $(GLO_)gdevrpdl.$(OBJ) $(C_) $(GLSRC)gdevrpdl.c + +-rpdlA3.dev: $(rpdl_) page.dev +- $(SETPDEV) rpdlA3 $(rpdl_) ++$(DD)rpdlA3.dev: $(rpdl_) $(DD)page.dev ++ $(SETPDEV) $(DD)rpdlA3 $(rpdl_) + +-rpdlA4.dev: $(rpdl_) page.dev +- $(SETPDEV) rpdlA4 $(rpdl_) ++$(DD)rpdlA4.dev: $(rpdl_) $(DD)page.dev ++ $(SETPDEV) $(DD)rpdlA4 $(rpdl_) + +-rpdlB4.dev: $(rpdl_) page.dev +- $(SETPDEV) rpdlB4 $(rpdl_) ++$(DD)rpdlB4.dev: $(rpdl_) $(DD)page.dev ++ $(SETPDEV) $(DD)rpdlB4 $(rpdl_) + +-rpdlB5.dev: $(rpdl_) page.dev +- $(SETPDEV) rpdlB5 $(rpdl_) ++$(DD)rpdlB5.dev: $(rpdl_) $(DD)page.dev ++ $(SETPDEV) $(DD)rpdlB5 $(rpdl_) + diff --git a/print/ghostscript-nox11/patches/patch-ap b/print/ghostscript-nox11/patches/patch-ap new file mode 100644 index 00000000000..9fea06bf6e6 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ap @@ -0,0 +1,36 @@ +$NetBSD: patch-ap,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/genarch.c.orig Thu Mar 9 03:40:41 2000 ++++ src/genarch.c Mon May 1 20:26:24 2000 +@@ -194,6 +194,10 @@ + clock_t t = 0; + clock_t t_eps; + ++#if 0 ++ /* This doesn't work on multi-user environments nor on ++ * small-cache (< 1MB) machines. ++ */ + /* + * Increase the number of repetitions until the time is + * long enough to exceed the likely uncertainty. +@@ -220,7 +224,12 @@ + if (nreps == 0) + nreps = 1, t <<= 1; + } ++#else ++ bsize = 512; ++#endif + define_int(f, "ARCH_CACHE1_SIZE", bsize >> 1); ++#if 0 ++ /* Same as above. */ + /* + * Do the same thing a second time for the secondary cache. + */ +@@ -238,6 +247,7 @@ + if (nreps == 0) + nreps = 1, t <<= 1; + } ++#endif + define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1); + } + diff --git a/print/ghostscript-nox11/patches/patch-aq b/print/ghostscript-nox11/patches/patch-aq new file mode 100644 index 00000000000..b80c54650d6 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-aq @@ -0,0 +1,30 @@ +$NetBSD: patch-aq,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/gp_unifs.c.orig Thu Mar 9 03:40:41 2000 ++++ src/gp_unifs.c Mon May 1 20:26:24 2000 +@@ -36,8 +36,12 @@ + # define MAXPATHLEN 1024 + #endif + ++#ifdef HAVE_MKSTEMP ++#include <stdlib.h> ++#else + /* Library routines not declared in a standard header */ + extern char *mktemp(P1(char *)); ++#endif + + /* ------ File naming and accessing ------ */ + +@@ -69,8 +73,12 @@ + if (*fname != 0 && fname[strlen(fname) - 1] == 'X') + strcat(fname, "-"); + strcat(fname, "XXXXXX"); ++#ifdef HAVE_MKSTEMP ++ return fdopen(mkstemp(fname), mode); ++#else + mktemp(fname); + return fopen(fname, mode); ++#endif + } + + /* Open a file with the given name, as a stream of uninterpreted bytes. */ diff --git a/print/ghostscript-nox11/patches/patch-ar b/print/ghostscript-nox11/patches/patch-ar new file mode 100644 index 00000000000..271837a90a4 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-ar @@ -0,0 +1,15 @@ +$NetBSD: patch-ar,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/pagecount.c.orig Sun Nov 15 06:33:04 1998 ++++ src/pagecount.c Mon May 1 20:26:24 2000 +@@ -33,10 +33,6 @@ + + /*****************************************************************************/ + +-#ifndef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 500 +-#endif +- + /* Standard headers */ + #include <errno.h> + #include <stdio.h> diff --git a/print/ghostscript-nox11/patches/patch-as b/print/ghostscript-nox11/patches/patch-as new file mode 100644 index 00000000000..c5736066c02 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-as @@ -0,0 +1,13 @@ +$NetBSD: patch-as,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/unix-end.mak.orig Thu Mar 9 03:40:44 2000 ++++ src/unix-end.mak Mon May 1 20:26:24 2000 +@@ -36,7 +36,7 @@ + @if test ! -d $(PSOBJDIR)/$(PGRELDIR); then mkdir $(PSOBJDIR)/$(PGRELDIR); fi + + PGDEFS=GENOPT='-DPROFILE' CFLAGS='$(CFLAGS_PROFILE) $(GCFLAGS) $(XCFLAGS)'\ +- LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11' CC_LEAF='$(CC_LEAF_PG)'\ ++ LDFLAGS='$(XLDFLAGS) -pg' XLIBS='$(XLIBS)' CC_LEAF='$(CC_LEAF_PG)'\ + BINDIR=$(BINDIR)/$(PGRELDIR)\ + GLGENDIR=$(GLGENDIR)/$(PGRELDIR) GLOBJDIR=$(GLOBJDIR)/$(PGRELDIR)\ + PSGENDIR=$(PSGENDIR)/$(PGRELDIR) PSOBJDIR=$(PSOBJDIR)/$(PGRELDIR) diff --git a/print/ghostscript-nox11/patches/patch-at b/print/ghostscript-nox11/patches/patch-at new file mode 100644 index 00000000000..35fc369b5f1 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-at @@ -0,0 +1,183 @@ +$NetBSD: patch-at,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/unix-gcc.mak.orig Mon May 1 22:07:38 2000 ++++ src/unix-gcc.mak Mon May 1 22:08:39 2000 +@@ -58,7 +58,7 @@ + INSTALL_PROGRAM = $(INSTALL) -m 755 + INSTALL_DATA = $(INSTALL) -m 644 + +-prefix = /usr/local ++prefix = ${PREFIX} + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + scriptdir = $(bindir) +@@ -69,8 +69,8 @@ + gsdir = $(datadir)/ghostscript + gsdatadir = $(gsdir)/$(GS_DOT_VERSION) + +-docdir=$(gsdatadir)/doc +-exdir=$(gsdatadir)/examples ++docdir=$(datadir)/doc/ghostscript ++exdir=$(datadir)/examples/ghostscript + vfdir=$(gsdatadir)/vflib + GS_DOCDIR=$(docdir) + +@@ -156,7 +156,7 @@ + # what its name is. + # See gs.mak and Make.htm for more information. + +-SHARE_LIBPNG=0 ++SHARE_LIBPNG=1 + LIBPNG_NAME=png + + # Define the directory where the zlib sources are stored. +@@ -168,7 +168,7 @@ + # what its name is (usually libz, but sometimes libgz). + # See gs.mak and Make.htm for more information. + +-SHARE_ZLIB=0 ++SHARE_ZLIB=1 + #ZLIB_NAME=gz + ZLIB_NAME=z + +@@ -214,9 +214,9 @@ + # We don't include -ansi, because this gets in the way of the platform- + # specific stuff that <math.h> typically needs; nevertheless, we expect + # gcc to accept ANSI-style function prototypes and function definitions. +-XCFLAGS= ++#XCFLAGS= + +-CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS) ++#CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS) + + # Define platform flags for ld. + # SunOS 4.n may need -Bstatic. +@@ -225,9 +225,9 @@ + # -R /usr/local/xxx/lib:/usr/local/lib + # giving the full path names of the shared library directories. + # XLDFLAGS can be set from the command line. +-XLDFLAGS= ++#XLDFLAGS= + +-LDFLAGS=$(XLDFLAGS) -fno-common ++LDFLAGS=$(XLDFLAGS) # -fno-common + + # Define any extra libraries to link into the executable. + # ISC Unix 2.2 wants -linet. +@@ -244,8 +244,11 @@ + # include pthreads in libc and don't require any additional library. + # All reasonable platforms require -lm, but Rhapsody and perhaps one or + # two others fold libm into libc and don't require any additional library. ++# ++# If async device drivers won't be built, then -lpthread (or local equivalent) ++# can be removed from STDLIBS. + +-STDLIBS=-lpthread -lm ++STDLIBS=-lm + + # Define the include switch(es) for the X11 header files. + # This can be null if handled in some other way (e.g., the files are +@@ -255,7 +258,7 @@ + # Note that x_.h expects to find the header files in $(XINCLUDE)/X11, + # not in $(XINCLUDE). + +-XINCLUDE=-I/usr/local/X/include ++#XINCLUDE=-I/usr/local/X/include + + # Define the directory/ies and library names for the X11 library files. + # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH +@@ -270,9 +273,16 @@ + #XLIBS=Xt SM ICE Xext X11 + + #XLIBDIRS=-L/usr/local/X/lib +-XLIBDIRS=-L/usr/X11/lib ++#XLIBDIRS=-L/usr/X11/lib ++#XLIBDIR= ++#XLIBS=Xt Xext X11 ++ ++.if defined(USE_X11) ++XINCLUDE=-I${X11BASE}/include ++XLIBDIRS=-L${X11BASE}/lib -Wl,-R${X11BASE}/lib + XLIBDIR= +-XLIBS=Xt Xext X11 ++XLIBS=Xt SM ICE Xext X11 ++.endif + + # Define the directory/ies for the VFlib files. + # If you use FreeType, Add ttf to VFLIBS +@@ -281,7 +291,7 @@ + #VFLIBS=VFlib + VFINCLUDE= + VFLIBDIRS= +-VFLIBS=VFlib2 ttf ++VFLIBS=VFlib2 ttf intl + + # Define whether this platform has floating point hardware: + # FPU_TYPE=2 means floating point is faster than fixed point. +@@ -292,7 +302,7 @@ + # FPU_TYPE=-1 means that floating point is always much slower than + # fixed point. + +-FPU_TYPE=1 ++#FPU_TYPE=1 + + # Define the .dev module that implements thread and synchronization + # primitives for this platform. +@@ -339,7 +349,7 @@ + # Choose the device(s) to include. See devs.mak for details, + # devs.mak and contrib.mak for the list of available devices. + +-DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev ++#DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev + + #DEVICE_DEVS1= + #DEVICE_DEVS2= +@@ -357,27 +367,27 @@ + #DEVICE_DEVS14= + #DEVICE_DEVS15= + +-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=$(DD)bmpamono.dev $(DD)bmpasep1.dev $(DD)bmpasep8.dev $(DD)bmpa16.dev $(DD)bmpa256.dev $(DD)bmpa16m.dev $(DD)bmpa32b.dev +-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_DEVS5=$(DD)uniprint.dev +-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 +-DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev +-DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev +-DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev +-DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev +-DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev +-DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev +-DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev +-DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev +- +-DEVICE_DEVS16= +-DEVICE_DEVS17= +-DEVICE_DEVS18= +-DEVICE_DEVS19= +-DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev ++#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=$(DD)bmpamono.dev $(DD)bmpasep1.dev $(DD)bmpasep8.dev $(DD)bmpa16.dev $(DD)bmpa256.dev $(DD)bmpa16m.dev $(DD)bmpa32b.dev ++#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_DEVS5=$(DD)uniprint.dev ++#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 ++#DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev ++#DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev ++#DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev ++#DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev ++#DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev ++#DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev ++#DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev ++#DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev ++ ++#DEVICE_DEVS16= ++#DEVICE_DEVS17= ++#DEVICE_DEVS18= ++#DEVICE_DEVS19= ++#DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5c.dev + + # ---------------------------- End of options --------------------------- # + diff --git a/print/ghostscript-nox11/patches/patch-au b/print/ghostscript-nox11/patches/patch-au new file mode 100644 index 00000000000..446856e8977 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-au @@ -0,0 +1,22 @@ +$NetBSD: patch-au,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/unixinst.mak.orig Mon May 1 20:24:46 2000 ++++ src/unixinst.mak Mon May 1 20:26:24 2000 +@@ -59,7 +59,7 @@ + + MAN1_PAGES=gs gslp gsnd dvipdf eps2eps font2c pdf2dsc pdf2ps \ + pf2afm pfbtopfa printafm ps2ascii ps2epsi \ +- ps2pdf ps2pdfwr ps2ps wftopfa ++ ps2pdf ps2pdfwr ps2ps wftopfa gs-hpdj + MAN1_PS2PDF_LINKS=ps2pdf12 ps2pdf13 + MAN1_GSLP_LINKS=gsbj gsdj gsdj500 gslj + # There's no point in providing a complete dependency list: we include +@@ -133,7 +133,7 @@ + ridt91.eps ;\ + do $(INSTALL_DATA) $(PSEXDIR)/$$f $(exdir) ;\ + done +- -mkdir $(gsdatadir)/vflib ++ -mkdir $(vfdir) + for f in \ + allkanji.ps article9.ps fmaptype.ps hankaku.ps jcidcmap.ps jcidemu.ps \ + jcidinit.ps jcidjp1.ps kbase.ps kcomp.ps kconfig.ps kfcid.ps \ diff --git a/print/ghostscript-nox11/patches/patch-av b/print/ghostscript-nox11/patches/patch-av new file mode 100644 index 00000000000..bfaeb5ecf44 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-av @@ -0,0 +1,32 @@ +$NetBSD: patch-av,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +--- src/zmedia2.c.orig Thu Mar 9 03:40:45 2000 ++++ src/zmedia2.c Mon May 1 20:26:24 2000 +@@ -427,11 +427,27 @@ + + rx = ry, ry = temp; + } ++#if 0 ++ /* Adapt hpdj's changes to zmedia2.c to apply to the latest ++ Ghostscript source. */ + /* Adjust the medium size if flexible. */ + if (medium->p.x < MIN_MEDIA_SIZE && mx > rx) + mx = rx; + if (medium->p.y < MIN_MEDIA_SIZE && my > ry) + my = ry; ++#else ++ /* If 'medium' is flexible, adjust 'mx' and 'my' towards 'rx' and 'ry', ++ respectively. Note that 'mx' and 'my' have just acquired the largest ++ permissible value, medium->q. */ ++ if (medium->p.x < mx) /* non-empty width range */ ++ if (rx < medium->p.x) mx = medium->p.x; /* minimum */ ++ else if (mx > rx) mx = rx; /* fits */ ++ /* else use medium->q.x, i.e., the maximum */ ++ if (medium->p.y < my) /* non-empty height range */ ++ if (ry < medium->p.y) my = medium->p.y; /* minimum */ ++ else if (my > ry) my = ry; /* fits */ ++ /* else use medium->q.y, i.e., the maximum */ ++#endif + + /* Translate to align the centers. */ + gs_make_translation(mx / 2, my / 2, pmat); diff --git a/print/ghostscript-nox11/patches/patch-bug-workaround b/print/ghostscript-nox11/patches/patch-bug-workaround new file mode 100644 index 00000000000..63c9aad42a6 --- /dev/null +++ b/print/ghostscript-nox11/patches/patch-bug-workaround @@ -0,0 +1,23 @@ +$NetBSD: patch-bug-workaround,v 1.1.1.1 2000/05/07 02:04:35 jlam Exp $ + +I haven't found out the cause of the trouble of + + Unrecoverable error: invalidaccess in put + +... and this is only a workaround. +Please fix the problem and remove this patch. + +--- lib/gs_dps.ps.bak Thu Mar 9 17:40:39 2000 ++++ lib/gs_dps.ps Tue Mar 28 12:13:16 2000 +@@ -53,7 +53,10 @@ + } { + dup type /dicttype eq { + % Save a copy of this dictionary in global VM. +- dup maxlength dict .copydict readonly ++ dup maxlength dict ++ % same as .copydict, but uses .forceput ++ dup 3 -1 roll { .forceput dup } forall pop ++ readonly + } { + pop pop + } ifelse diff --git a/print/ghostscript-nox11/pkg/COMMENT b/print/ghostscript-nox11/pkg/COMMENT new file mode 100644 index 00000000000..dc6cbae233e --- /dev/null +++ b/print/ghostscript-nox11/pkg/COMMENT @@ -0,0 +1 @@ +Aladdin Postscript interpreter diff --git a/print/ghostscript-nox11/pkg/DESCR b/print/ghostscript-nox11/pkg/DESCR new file mode 100644 index 00000000000..68d479391a6 --- /dev/null +++ b/print/ghostscript-nox11/pkg/DESCR @@ -0,0 +1,6 @@ +Ghostscript is the well-known PostScript interpreter which is +available for all common and most esoteric platforms and supports +many different printers and some displays. + +This version of Ghostscript includes support for the Japanese +Vector Font library. diff --git a/print/ghostscript-nox11/pkg/PLIST b/print/ghostscript-nox11/pkg/PLIST new file mode 100644 index 00000000000..714bf1c0c27 --- /dev/null +++ b/print/ghostscript-nox11/pkg/PLIST @@ -0,0 +1,299 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/05/07 02:04:34 jlam Exp $ +bin/bdftops +bin/dvipdf +bin/eps2eps +bin/fixmswrd.pl +bin/font2c +bin/gs +bin/gsbj +bin/gsdj +bin/gsdj500 +bin/gslj +bin/gslp +bin/gsnd +bin/lprsetup.sh +bin/pdf2dsc +bin/pdf2ps +bin/pf2afm +bin/pfbtopfa +bin/pj-gs.sh +bin/printafm +bin/ps2ascii +bin/ps2epsi +bin/ps2pdf +bin/ps2pdf12 +bin/ps2pdf13 +bin/ps2pdfwr +bin/ps2ps +bin/pv.sh +bin/sysvlp.sh +bin/unix-lpr.sh +bin/wftopfa +man/man1/dvipdf.1 +man/man1/eps2eps.1 +man/man1/font2c.1 +man/man1/gs-hpdj.1 +man/man1/gs.1 +man/man1/gsbj.1 +man/man1/gsdj.1 +man/man1/gsdj500.1 +man/man1/gslj.1 +man/man1/gslp.1 +man/man1/gsnd.1 +man/man1/pdf2dsc.1 +man/man1/pdf2ps.1 +man/man1/pf2afm.1 +man/man1/pfbtopfa.1 +man/man1/printafm.1 +man/man1/ps2ascii.1 +man/man1/ps2epsi.1 +man/man1/ps2pdf.1 +man/man1/ps2pdf12.1 +man/man1/ps2pdf13.1 +man/man1/ps2pdfwr.1 +man/man1/ps2ps.1 +man/man1/wftopfa.1 +share/doc/ghostscript/Bug-form.htm +share/doc/ghostscript/C-style.htm +share/doc/ghostscript/Commprod.htm +share/doc/ghostscript/Copying.htm +share/doc/ghostscript/Current.htm +share/doc/ghostscript/DLL.htm +share/doc/ghostscript/Devices.htm +share/doc/ghostscript/Drivers.htm +share/doc/ghostscript/Fonts.htm +share/doc/ghostscript/Gdevlips.htm +share/doc/ghostscript/Helpers.htm +share/doc/ghostscript/Hershey.htm +share/doc/ghostscript/History1.htm +share/doc/ghostscript/History2.htm +share/doc/ghostscript/History3.htm +share/doc/ghostscript/History4.htm +share/doc/ghostscript/History5.htm +share/doc/ghostscript/History6.htm +share/doc/ghostscript/Htmstyle.htm +share/doc/ghostscript/Humor.htm +share/doc/ghostscript/Install.htm +share/doc/ghostscript/Language.htm +share/doc/ghostscript/Lib.htm +share/doc/ghostscript/Make.htm +share/doc/ghostscript/New-user.htm +share/doc/ghostscript/News.htm +share/doc/ghostscript/PUBLIC +share/doc/ghostscript/Ps2pdf.htm +share/doc/ghostscript/Psfiles.htm +share/doc/ghostscript/Public.htm +share/doc/ghostscript/README +share/doc/ghostscript/Readme.htm +share/doc/ghostscript/Release.htm +share/doc/ghostscript/Source.htm +share/doc/ghostscript/Tester.htm +share/doc/ghostscript/Unix-lpr.htm +share/doc/ghostscript/Use.htm +share/doc/ghostscript/Xfonts.htm +share/doc/ghostscript/gdev10v.jis +share/doc/ghostscript/gdevdmpr.sj +share/doc/ghostscript/gdevmjc-0.8/MJ700V2C.FAQ +share/doc/ghostscript/gdevmjc-0.8/README.mjc +share/doc/ghostscript/gdevmjc-0.8/README.mje +share/doc/ghostscript/gdevmjc-0.8/README.noz +share/doc/ghostscript/gdevmjc-0.8/cpem.doc +share/doc/ghostscript/gdevprsc.en +share/doc/ghostscript/gdevprsc.ja +share/doc/ghostscript/ps2epsi.txt +share/examples/ghostscript/alphabet.ps +share/examples/ghostscript/cheq.ps +share/examples/ghostscript/chess.ps +share/examples/ghostscript/colorcir.ps +share/examples/ghostscript/doretree.ps +share/examples/ghostscript/escher.ps +share/examples/ghostscript/golfer.ps +share/examples/ghostscript/grayalph.ps +share/examples/ghostscript/ridt91.eps +share/examples/ghostscript/snowflak.ps +share/examples/ghostscript/tiger.ps +share/examples/ghostscript/vasarely.ps +share/examples/ghostscript/waterfal.ps +share/ghostscript/6.01vflib/lib/Fontmap +share/ghostscript/6.01vflib/lib/Fontmap.GS +share/ghostscript/6.01vflib/lib/acctest.ps +share/ghostscript/6.01vflib/lib/addxchar.ps +share/ghostscript/6.01vflib/lib/align.ps +share/ghostscript/6.01vflib/lib/bdftops.ps +share/ghostscript/6.01vflib/lib/bjc610a0.upp +share/ghostscript/6.01vflib/lib/bjc610a1.upp +share/ghostscript/6.01vflib/lib/bjc610a2.upp +share/ghostscript/6.01vflib/lib/bjc610a3.upp +share/ghostscript/6.01vflib/lib/bjc610a4.upp +share/ghostscript/6.01vflib/lib/bjc610a5.upp +share/ghostscript/6.01vflib/lib/bjc610a6.upp +share/ghostscript/6.01vflib/lib/bjc610a7.upp +share/ghostscript/6.01vflib/lib/bjc610a8.upp +share/ghostscript/6.01vflib/lib/bjc610b1.upp +share/ghostscript/6.01vflib/lib/bjc610b2.upp +share/ghostscript/6.01vflib/lib/bjc610b3.upp +share/ghostscript/6.01vflib/lib/bjc610b4.upp +share/ghostscript/6.01vflib/lib/bjc610b6.upp +share/ghostscript/6.01vflib/lib/bjc610b7.upp +share/ghostscript/6.01vflib/lib/bjc610b8.upp +share/ghostscript/6.01vflib/lib/caption.ps +share/ghostscript/6.01vflib/lib/cbjc600.ppd +share/ghostscript/6.01vflib/lib/cbjc800.ppd +share/ghostscript/6.01vflib/lib/cdj550.upp +share/ghostscript/6.01vflib/lib/cdj690.upp +share/ghostscript/6.01vflib/lib/cdj690ec.upp +share/ghostscript/6.01vflib/lib/cid2code.ps +share/ghostscript/6.01vflib/lib/decrypt.ps +share/ghostscript/6.01vflib/lib/dmp_init.ps +share/ghostscript/6.01vflib/lib/dmp_site.ps +share/ghostscript/6.01vflib/lib/dnj750c.upp +share/ghostscript/6.01vflib/lib/dnj750m.upp +share/ghostscript/6.01vflib/lib/docie.ps +share/ghostscript/6.01vflib/lib/errpage.ps +share/ghostscript/6.01vflib/lib/escp_24.src +share/ghostscript/6.01vflib/lib/font2c.ps +share/ghostscript/6.01vflib/lib/font2pcl.ps +share/ghostscript/6.01vflib/lib/gs_btokn.ps +share/ghostscript/6.01vflib/lib/gs_ccfnt.ps +share/ghostscript/6.01vflib/lib/gs_ce_e.ps +share/ghostscript/6.01vflib/lib/gs_cff.ps +share/ghostscript/6.01vflib/lib/gs_cidfn.ps +share/ghostscript/6.01vflib/lib/gs_cmap.ps +share/ghostscript/6.01vflib/lib/gs_cmdl.ps +share/ghostscript/6.01vflib/lib/gs_dbt_e.ps +share/ghostscript/6.01vflib/lib/gs_diskf.ps +share/ghostscript/6.01vflib/lib/gs_dpnxt.ps +share/ghostscript/6.01vflib/lib/gs_dps.ps +share/ghostscript/6.01vflib/lib/gs_dps1.ps +share/ghostscript/6.01vflib/lib/gs_dps2.ps +share/ghostscript/6.01vflib/lib/gs_epsf.ps +share/ghostscript/6.01vflib/lib/gs_fform.ps +share/ghostscript/6.01vflib/lib/gs_fonts.ps +share/ghostscript/6.01vflib/lib/gs_il1_e.ps +share/ghostscript/6.01vflib/lib/gs_il2_e.ps +share/ghostscript/6.01vflib/lib/gs_init.ps +share/ghostscript/6.01vflib/lib/gs_kanji.ps +share/ghostscript/6.01vflib/lib/gs_ksb_e.ps +share/ghostscript/6.01vflib/lib/gs_l.xbm +share/ghostscript/6.01vflib/lib/gs_l.xpm +share/ghostscript/6.01vflib/lib/gs_l2img.ps +share/ghostscript/6.01vflib/lib/gs_l_m.xbm +share/ghostscript/6.01vflib/lib/gs_lev2.ps +share/ghostscript/6.01vflib/lib/gs_lgo_e.ps +share/ghostscript/6.01vflib/lib/gs_lgx_e.ps +share/ghostscript/6.01vflib/lib/gs_ll3.ps +share/ghostscript/6.01vflib/lib/gs_m.xbm +share/ghostscript/6.01vflib/lib/gs_m.xpm +share/ghostscript/6.01vflib/lib/gs_m_m.xbm +share/ghostscript/6.01vflib/lib/gs_mex_e.ps +share/ghostscript/6.01vflib/lib/gs_mgl_e.ps +share/ghostscript/6.01vflib/lib/gs_mro_e.ps +share/ghostscript/6.01vflib/lib/gs_pdf_e.ps +share/ghostscript/6.01vflib/lib/gs_pdfwr.ps +share/ghostscript/6.01vflib/lib/gs_pfile.ps +share/ghostscript/6.01vflib/lib/gs_rdlin.ps +share/ghostscript/6.01vflib/lib/gs_res.ps +share/ghostscript/6.01vflib/lib/gs_s.xbm +share/ghostscript/6.01vflib/lib/gs_s.xpm +share/ghostscript/6.01vflib/lib/gs_s_m.xbm +share/ghostscript/6.01vflib/lib/gs_setpd.ps +share/ghostscript/6.01vflib/lib/gs_statd.ps +share/ghostscript/6.01vflib/lib/gs_std_e.ps +share/ghostscript/6.01vflib/lib/gs_sym_e.ps +share/ghostscript/6.01vflib/lib/gs_t.xbm +share/ghostscript/6.01vflib/lib/gs_t.xpm +share/ghostscript/6.01vflib/lib/gs_t_m.xbm +share/ghostscript/6.01vflib/lib/gs_trap.ps +share/ghostscript/6.01vflib/lib/gs_ttf.ps +share/ghostscript/6.01vflib/lib/gs_typ32.ps +share/ghostscript/6.01vflib/lib/gs_typ42.ps +share/ghostscript/6.01vflib/lib/gs_type1.ps +share/ghostscript/6.01vflib/lib/gs_wan_e.ps +share/ghostscript/6.01vflib/lib/gs_wl1_e.ps +share/ghostscript/6.01vflib/lib/gs_wl2_e.ps +share/ghostscript/6.01vflib/lib/gs_wl5_e.ps +share/ghostscript/6.01vflib/lib/gslp.ps +share/ghostscript/6.01vflib/lib/gsnup.ps +share/ghostscript/6.01vflib/lib/ht_ccsto.ps +share/ghostscript/6.01vflib/lib/image-qa.ps +share/ghostscript/6.01vflib/lib/impath.ps +share/ghostscript/6.01vflib/lib/jispaper.ps +share/ghostscript/6.01vflib/lib/landscap.ps +share/ghostscript/6.01vflib/lib/level1.ps +share/ghostscript/6.01vflib/lib/lines.ps +share/ghostscript/6.01vflib/lib/markhint.ps +share/ghostscript/6.01vflib/lib/markpath.ps +share/ghostscript/6.01vflib/lib/necp2x.upp +share/ghostscript/6.01vflib/lib/necp2x6.upp +share/ghostscript/6.01vflib/lib/packfile.ps +share/ghostscript/6.01vflib/lib/pcharstr.ps +share/ghostscript/6.01vflib/lib/pdf2dsc.ps +share/ghostscript/6.01vflib/lib/pdf_base.ps +share/ghostscript/6.01vflib/lib/pdf_draw.ps +share/ghostscript/6.01vflib/lib/pdf_font.ps +share/ghostscript/6.01vflib/lib/pdf_main.ps +share/ghostscript/6.01vflib/lib/pdf_ops.ps +share/ghostscript/6.01vflib/lib/pdf_sec.ps +share/ghostscript/6.01vflib/lib/pdfeof.ps +share/ghostscript/6.01vflib/lib/pf2afm.ps +share/ghostscript/6.01vflib/lib/pfbtopfa.ps +share/ghostscript/6.01vflib/lib/ppath.ps +share/ghostscript/6.01vflib/lib/prfont.ps +share/ghostscript/6.01vflib/lib/printafm.ps +share/ghostscript/6.01vflib/lib/ps2ai.ps +share/ghostscript/6.01vflib/lib/ps2ascii.ps +share/ghostscript/6.01vflib/lib/ps2epsi.ps +share/ghostscript/6.01vflib/lib/quit.ps +share/ghostscript/6.01vflib/lib/ras1.upp +share/ghostscript/6.01vflib/lib/ras24.upp +share/ghostscript/6.01vflib/lib/ras3.upp +share/ghostscript/6.01vflib/lib/ras32.upp +share/ghostscript/6.01vflib/lib/ras4.upp +share/ghostscript/6.01vflib/lib/ras8m.upp +share/ghostscript/6.01vflib/lib/rollconv.ps +share/ghostscript/6.01vflib/lib/showchar.ps +share/ghostscript/6.01vflib/lib/showpage.ps +share/ghostscript/6.01vflib/lib/stc.upp +share/ghostscript/6.01vflib/lib/stc1520h.upp +share/ghostscript/6.01vflib/lib/stc2.upp +share/ghostscript/6.01vflib/lib/stc200_h.upp +share/ghostscript/6.01vflib/lib/stc2_h.upp +share/ghostscript/6.01vflib/lib/stc2s_h.upp +share/ghostscript/6.01vflib/lib/stc500p.upp +share/ghostscript/6.01vflib/lib/stc500ph.upp +share/ghostscript/6.01vflib/lib/stc600ih.upp +share/ghostscript/6.01vflib/lib/stc600p.upp +share/ghostscript/6.01vflib/lib/stc600pl.upp +share/ghostscript/6.01vflib/lib/stc640p.upp +share/ghostscript/6.01vflib/lib/stc800ih.upp +share/ghostscript/6.01vflib/lib/stc800p.upp +share/ghostscript/6.01vflib/lib/stc800pl.upp +share/ghostscript/6.01vflib/lib/stc_h.upp +share/ghostscript/6.01vflib/lib/stc_l.upp +share/ghostscript/6.01vflib/lib/stcany.upp +share/ghostscript/6.01vflib/lib/stcany_h.upp +share/ghostscript/6.01vflib/lib/stcinfo.ps +share/ghostscript/6.01vflib/lib/stcolor.ps +share/ghostscript/6.01vflib/lib/stocht.ps +share/ghostscript/6.01vflib/lib/testpage.ps +share/ghostscript/6.01vflib/lib/traceimg.ps +share/ghostscript/6.01vflib/lib/traceop.ps +share/ghostscript/6.01vflib/lib/type1enc.ps +share/ghostscript/6.01vflib/lib/type1ops.ps +share/ghostscript/6.01vflib/lib/uninfo.ps +share/ghostscript/6.01vflib/lib/unprot.ps +share/ghostscript/6.01vflib/lib/viewcmyk.ps +share/ghostscript/6.01vflib/lib/viewgif.ps +share/ghostscript/6.01vflib/lib/viewjpeg.ps +share/ghostscript/6.01vflib/lib/viewmiff.ps +share/ghostscript/6.01vflib/lib/viewpbm.ps +share/ghostscript/6.01vflib/lib/viewpcx.ps +share/ghostscript/6.01vflib/lib/viewps2a.ps +share/ghostscript/6.01vflib/lib/wftopfa.ps +share/ghostscript/6.01vflib/lib/winmaps.ps +share/ghostscript/6.01vflib/lib/wrfont.ps +share/ghostscript/6.01vflib/lib/zeroline.ps +@dirrm share/ghostscript/6.01vflib/lib +@dirrm share/examples/ghostscript +@dirrm share/doc/ghostscript/gdevmjc-0.8 +@dirrm share/doc/ghostscript |