summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-esp/DESCR8
-rw-r--r--print/ghostscript-esp/Makefile9
-rw-r--r--print/ghostscript-esp/Makefile.common104
-rw-r--r--print/ghostscript-esp/PLIST393
-rw-r--r--print/ghostscript-esp/distinfo9
-rw-r--r--print/ghostscript-esp/patches/patch-aa13
-rw-r--r--print/ghostscript-esp/patches/patch-ab15
-rw-r--r--print/ghostscript-esp/patches/patch-ac13
8 files changed, 564 insertions, 0 deletions
diff --git a/print/ghostscript-esp/DESCR b/print/ghostscript-esp/DESCR
new file mode 100644
index 00000000000..181cc558a43
--- /dev/null
+++ b/print/ghostscript-esp/DESCR
@@ -0,0 +1,8 @@
+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 package contains ESP Ghostscript, which is a separately maintained
+distribution of GNU Ghostscript and distributed under the terms of the GNU
+Public License. ESP Ghostscript incorporates the CUPS raster printer
+driver, and a large number of contributed Ghostscript printer drivers.
diff --git a/print/ghostscript-esp/Makefile b/print/ghostscript-esp/Makefile
new file mode 100644
index 00000000000..dbd8c94140b
--- /dev/null
+++ b/print/ghostscript-esp/Makefile
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/18 22:28:16 jlam Exp $
+
+PKGNAME= ghostscript-esp-${GS_VERS}
+COMMENT= ESP/CUPS Postscript interpreter
+
+USE_X11= # defined
+CONFIGURE_ARGS+= --with-x
+
+.include "Makefile.common"
diff --git a/print/ghostscript-esp/Makefile.common b/print/ghostscript-esp/Makefile.common
new file mode 100644
index 00000000000..f78776f9610
--- /dev/null
+++ b/print/ghostscript-esp/Makefile.common
@@ -0,0 +1,104 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2002/09/18 22:28:15 jlam Exp $
+
+DISTNAME= espgs-${GS_VERS}-source
+BASEGS_VERS= 7.05
+GS_VERS= ${BASEGS_VERS}.5
+WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.easysw.com/pub/ghostscript/ \
+ ftp://ftp2.easysw.com/pub/ghostscript/ \
+ ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/ghostscript/ \
+ ftp://ftp.mpg.goe.ni.schule.de/pub/internet/printing/ghostscript/ \
+ ftp://ftp.ntua.gr/pub/gnu/ghostscript/ \
+ ftp://ftp.fisek.com.tr/pub/ghostscript/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://www.cups.org/ghostscript.html
+
+CONFLICTS+= ghostscript{,-nox11}-[0-9]*
+CONFLICTS+= ghostscript-esp{,-nox11}-[0-9]*
+CONFLICTS+= ghostscript-gnu{,-nox11,-x11}-[0-9]*
+
+DEPENDS+= ghostscript-fonts-6.0:../../fonts/ghostscript-fonts
+
+USE_BUILDLINK2= # defined
+USE_GMAKE= # defined
+GNU_CONFIGURE= # defined
+CONFIGURE_ARGS+= --with-ijs
+CONFIGURE_ARGS+= --with-gimp-print
+CONFIGURE_ARGS+= --without-omni
+
+DIST_SUBDIR= ghostscript
+GS_SRCS= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES+= ${GS_SRCS}
+EXTRACT_ONLY= ${GS_SRCS}
+
+# Adobe's JPEG implementation in their PDF/PS documents is non-standard,
+# so we can't use an already installed libjpeg.so.
+#
+JPEG_SRCS= jpegsrc.v6b.tar.gz
+JPEG_WRKSRC= ${WRKDIR}/jpeg-6b
+SITES_${JPEG_SRCS}= ftp://ftp.uu.net/graphics/jpeg/
+DISTFILES+= ${JPEG_SRCS}
+EXTRACT_ONLY+= ${JPEG_SRCS}
+
+DISTINFO_FILE= ${.CURDIR}/../ghostscript-esp/distinfo
+FILESDIR= ${.CURDIR}/../ghostscript-esp/files
+PATCHDIR= ${.CURDIR}/../ghostscript-esp/patches
+PLIST_SRC= ${.CURDIR}/../ghostscript-esp/PLIST
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
+CFLAGS+= -DA4
+.endif
+CFLAGS+= -DHAVE_MKSTEMP=1
+
+.if ${OPSYS} == "SunOS"
+LDFLAGS+= -L${ZOULARISBASE}/lib -Wl,-R${ZOULARISBASE}/lib
+.endif
+
+REPLACE_PERL= lib/fixmswrd.pl
+
+CUPS_CONFDIR?= ${PKG_SYSCONFBASE}/cups
+GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/Resource
+GSDATADIR= ${PREFIX}/share/ghostscript/${BASEGS_VERS}
+DOCDIR= ${PREFIX}/share/doc/ghostscript
+EGDIR= ${PREFIX}/share/examples/ghostscript
+HTMLDIR= ${PREFIX}/share/doc/html/ghostscript
+LIBDIR= ${GSDATADIR}/lib
+
+PLIST_SUBST+= GS_VERS=${BASEGS_VERS}
+
+CONF_FILES= ${EGDIR}/pstoraster.convs ${CUPS_CONFDIR}/pstoraster.convs
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MKDIR} ${WRKSRC}/obj
+ ${RM} -f ${WRKSRC}/jpeg
+ ${LN} -s ${JPEG_WRKSRC} ${WRKSRC}/jpeg
+ cd ${WRKSRC}/lib; for file in gs_res.ps; do \
+ ${SED} -e "s|/Resource/|${GS_RESOURCEDIR}/|g" \
+ $${file} > $${file}.fixed; \
+ ${MV} -f $${file}.fixed $${file}; \
+ done
+
+# Reinstall the gs binary so that it's properly stripped.
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/gs ${PREFIX}/bin/gs
+ ${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/pstoraster \
+ ${PREFIX}/libexec/cups/filter
+ ${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs ${EGDIR}
+
+.include "../../graphics/png/buildlink2.mk"
+.include "../../graphics/tiff/buildlink2.mk"
+.include "../../print/cups/buildlink2.mk"
+.include "../../print/gimp-print-lib/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"
+
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "arm32"
+CFLAGS+= -O0
+.endif
diff --git a/print/ghostscript-esp/PLIST b/print/ghostscript-esp/PLIST
new file mode 100644
index 00000000000..bb7a71a8fab
--- /dev/null
+++ b/print/ghostscript-esp/PLIST
@@ -0,0 +1,393 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/18 22:28:16 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/pdfopt
+bin/pf2afm
+bin/pfbtopfa
+bin/pj-gs.sh
+bin/printafm
+bin/ps2ascii
+bin/ps2epsi
+bin/ps2pdf
+bin/ps2pdf12
+bin/ps2pdf13
+bin/ps2pdf14
+bin/ps2pdfwr
+bin/ps2ps
+bin/pv.sh
+bin/sysvlp.sh
+bin/unix-lpr.sh
+bin/wftopfa
+libexec/cups/filter/pstoraster
+man/de/man1/ansi2knr.1
+man/de/man1/dvipdf.1
+man/de/man1/eps2eps.1
+man/de/man1/font2c.1
+man/de/man1/gsnd.1
+man/de/man1/pdf2dsc.1
+man/de/man1/pdf2ps.1
+man/de/man1/pdfopt.1
+man/de/man1/printafm.1
+man/de/man1/ps2ascii.1
+man/de/man1/ps2pdf.1
+man/de/man1/ps2pdf12.1
+man/de/man1/ps2pdf13.1
+man/de/man1/ps2ps.1
+man/de/man1/wftopfa.1
+man/man1/ansi2knr.1
+man/man1/dvipdf.1
+man/man1/eps2eps.1
+man/man1/font2c.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/pdfopt.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/html/ghostscript/API.htm
+share/doc/html/ghostscript/Bug-form.htm
+share/doc/html/ghostscript/Bug-info.htm
+share/doc/html/ghostscript/C-style.htm
+share/doc/html/ghostscript/CJK.htm
+share/doc/html/ghostscript/CJKTTCID.htm
+share/doc/html/ghostscript/Changes.htm
+share/doc/html/ghostscript/Commprod.htm
+share/doc/html/ghostscript/Copying.htm
+share/doc/html/ghostscript/Current.htm
+share/doc/html/ghostscript/DLL.htm
+share/doc/html/ghostscript/Develop.htm
+share/doc/html/ghostscript/Devices.htm
+share/doc/html/ghostscript/Drivers.htm
+share/doc/html/ghostscript/Fonts.htm
+share/doc/html/ghostscript/Helpers.htm
+share/doc/html/ghostscript/Hershey.htm
+share/doc/html/ghostscript/History1.htm
+share/doc/html/ghostscript/History2.htm
+share/doc/html/ghostscript/History3.htm
+share/doc/html/ghostscript/History4.htm
+share/doc/html/ghostscript/History5.htm
+share/doc/html/ghostscript/History6.htm
+share/doc/html/ghostscript/History7.htm
+share/doc/html/ghostscript/Htmstyle.htm
+share/doc/html/ghostscript/Humor.htm
+share/doc/html/ghostscript/Install.htm
+share/doc/html/ghostscript/Issues.htm
+share/doc/html/ghostscript/Language.htm
+share/doc/html/ghostscript/Lib.htm
+share/doc/html/ghostscript/Maintain.htm
+share/doc/html/ghostscript/Make.htm
+share/doc/html/ghostscript/New-user.htm
+share/doc/html/ghostscript/News.htm
+share/doc/html/ghostscript/Projects.htm
+share/doc/html/ghostscript/Ps-style.htm
+share/doc/html/ghostscript/Ps2epsi.htm
+share/doc/html/ghostscript/Ps2pdf.htm
+share/doc/html/ghostscript/Psfiles.htm
+share/doc/html/ghostscript/Public.htm
+share/doc/html/ghostscript/README
+share/doc/html/ghostscript/Readme.htm
+share/doc/html/ghostscript/Release.htm
+share/doc/html/ghostscript/Source.htm
+share/doc/html/ghostscript/Tester.htm
+share/doc/html/ghostscript/Unix-lpr.htm
+share/doc/html/ghostscript/Use.htm
+share/doc/html/ghostscript/Xfonts.htm
+share/doc/html/ghostscript/gs.css
+share/doc/html/ghostscript/index.html
+share/examples/ghostscript/alphabet.ps
+share/examples/ghostscript/cjk/all_ac1.ps
+share/examples/ghostscript/cjk/all_ag1.ps
+share/examples/ghostscript/cjk/all_aj1.ps
+share/examples/ghostscript/cjk/all_aj2.ps
+share/examples/ghostscript/cjk/all_ak1.ps
+share/examples/ghostscript/cjk/gscjk_ac.ps
+share/examples/ghostscript/cjk/gscjk_ag.ps
+share/examples/ghostscript/cjk/gscjk_aj.ps
+share/examples/ghostscript/cjk/gscjk_ak.ps
+share/examples/ghostscript/cjk/iso2022.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/pstoraster.convs
+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/${GS_VERS}/lib/CIDFnmap
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.ARP
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.Bae
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.CJK
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.Koc
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.Ore
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.Sol
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.Win
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.b5
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.gb
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.ksx
+share/ghostscript/${GS_VERS}/lib/CIDFnmap.sj
+share/ghostscript/${GS_VERS}/lib/Fontmap
+share/ghostscript/${GS_VERS}/lib/Fontmap.GS
+share/ghostscript/${GS_VERS}/lib/PM760p.upp
+share/ghostscript/${GS_VERS}/lib/PM760pl.upp
+share/ghostscript/${GS_VERS}/lib/PM820p.upp
+share/ghostscript/${GS_VERS}/lib/PM820pl.upp
+share/ghostscript/${GS_VERS}/lib/Stc670p.upp
+share/ghostscript/${GS_VERS}/lib/Stc670pl.upp
+share/ghostscript/${GS_VERS}/lib/Stc680p.upp
+share/ghostscript/${GS_VERS}/lib/Stc680pl.upp
+share/ghostscript/${GS_VERS}/lib/Stc740p.upp
+share/ghostscript/${GS_VERS}/lib/Stc740pl.upp
+share/ghostscript/${GS_VERS}/lib/Stc760p.upp
+share/ghostscript/${GS_VERS}/lib/Stc760pl.upp
+share/ghostscript/${GS_VERS}/lib/Stc777p.upp
+share/ghostscript/${GS_VERS}/lib/Stc777pl.upp
+share/ghostscript/${GS_VERS}/lib/Stp720p.upp
+share/ghostscript/${GS_VERS}/lib/Stp720pl.upp
+share/ghostscript/${GS_VERS}/lib/Stp870p.upp
+share/ghostscript/${GS_VERS}/lib/Stp870pl.upp
+share/ghostscript/${GS_VERS}/lib/acctest.ps
+share/ghostscript/${GS_VERS}/lib/addxchar.ps
+share/ghostscript/${GS_VERS}/lib/align.ps
+share/ghostscript/${GS_VERS}/lib/bdftops.ps
+share/ghostscript/${GS_VERS}/lib/bj8.rpd
+share/ghostscript/${GS_VERS}/lib/bj8gc12f.upp
+share/ghostscript/${GS_VERS}/lib/bj8hg12f.upp
+share/ghostscript/${GS_VERS}/lib/bj8oh06n.upp
+share/ghostscript/${GS_VERS}/lib/bj8pa06n.upp
+share/ghostscript/${GS_VERS}/lib/bj8pp12f.upp
+share/ghostscript/${GS_VERS}/lib/bj8ts06n.upp
+share/ghostscript/${GS_VERS}/lib/bjc6000a1.upp
+share/ghostscript/${GS_VERS}/lib/bjc6000b1.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a0.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a1.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a2.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a3.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a4.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a5.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a6.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a7.upp
+share/ghostscript/${GS_VERS}/lib/bjc610a8.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b1.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b2.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b3.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b4.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b6.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b7.upp
+share/ghostscript/${GS_VERS}/lib/bjc610b8.upp
+share/ghostscript/${GS_VERS}/lib/caption.ps
+share/ghostscript/${GS_VERS}/lib/cbjc600.ppd
+share/ghostscript/${GS_VERS}/lib/cbjc800.ppd
+share/ghostscript/${GS_VERS}/lib/cdj550.upp
+share/ghostscript/${GS_VERS}/lib/cdj690.upp
+share/ghostscript/${GS_VERS}/lib/cdj690ec.upp
+share/ghostscript/${GS_VERS}/lib/cid2code.ps
+share/ghostscript/${GS_VERS}/lib/decrypt.ps
+share/ghostscript/${GS_VERS}/lib/dmp_init.ps
+share/ghostscript/${GS_VERS}/lib/dmp_site.ps
+share/ghostscript/${GS_VERS}/lib/dnj750c.upp
+share/ghostscript/${GS_VERS}/lib/dnj750m.upp
+share/ghostscript/${GS_VERS}/lib/docie.ps
+share/ghostscript/${GS_VERS}/lib/errpage.ps
+share/ghostscript/${GS_VERS}/lib/escp_24.src
+share/ghostscript/${GS_VERS}/lib/font2c.ps
+share/ghostscript/${GS_VERS}/lib/font2pcl.ps
+share/ghostscript/${GS_VERS}/lib/gdevmjc.ps
+share/ghostscript/${GS_VERS}/lib/gs_agl.ps
+share/ghostscript/${GS_VERS}/lib/gs_btokn.ps
+share/ghostscript/${GS_VERS}/lib/gs_ccfnt.ps
+share/ghostscript/${GS_VERS}/lib/gs_ce_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_cff.ps
+share/ghostscript/${GS_VERS}/lib/gs_cidcm.ps
+share/ghostscript/${GS_VERS}/lib/gs_cidfn.ps
+share/ghostscript/${GS_VERS}/lib/gs_cmap.ps
+share/ghostscript/${GS_VERS}/lib/gs_cmdl.ps
+share/ghostscript/${GS_VERS}/lib/gs_css_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_dbt_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_diskf.ps
+share/ghostscript/${GS_VERS}/lib/gs_dpnxt.ps
+share/ghostscript/${GS_VERS}/lib/gs_dps.ps
+share/ghostscript/${GS_VERS}/lib/gs_dps1.ps
+share/ghostscript/${GS_VERS}/lib/gs_dps2.ps
+share/ghostscript/${GS_VERS}/lib/gs_dscp.ps
+share/ghostscript/${GS_VERS}/lib/gs_epsf.ps
+share/ghostscript/${GS_VERS}/lib/gs_fform.ps
+share/ghostscript/${GS_VERS}/lib/gs_fonts.ps
+share/ghostscript/${GS_VERS}/lib/gs_frsd.ps
+share/ghostscript/${GS_VERS}/lib/gs_icc.ps
+share/ghostscript/${GS_VERS}/lib/gs_il1_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_il2_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_init.ps
+share/ghostscript/${GS_VERS}/lib/gs_kanji.ps
+share/ghostscript/${GS_VERS}/lib/gs_ksb_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_l.xbm
+share/ghostscript/${GS_VERS}/lib/gs_l.xpm
+share/ghostscript/${GS_VERS}/lib/gs_l2img.ps
+share/ghostscript/${GS_VERS}/lib/gs_l_m.xbm
+share/ghostscript/${GS_VERS}/lib/gs_lev2.ps
+share/ghostscript/${GS_VERS}/lib/gs_lgo_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_lgx_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_ll3.ps
+share/ghostscript/${GS_VERS}/lib/gs_m.xbm
+share/ghostscript/${GS_VERS}/lib/gs_m.xpm
+share/ghostscript/${GS_VERS}/lib/gs_m_m.xbm
+share/ghostscript/${GS_VERS}/lib/gs_mex_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_mgl_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_mro_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_pdf_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_pdfwr.ps
+share/ghostscript/${GS_VERS}/lib/gs_pfile.ps
+share/ghostscript/${GS_VERS}/lib/gs_rdlin.ps
+share/ghostscript/${GS_VERS}/lib/gs_res.ps
+share/ghostscript/${GS_VERS}/lib/gs_s.xbm
+share/ghostscript/${GS_VERS}/lib/gs_s.xpm
+share/ghostscript/${GS_VERS}/lib/gs_s_m.xbm
+share/ghostscript/${GS_VERS}/lib/gs_setpd.ps
+share/ghostscript/${GS_VERS}/lib/gs_statd.ps
+share/ghostscript/${GS_VERS}/lib/gs_std_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_sym_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_t.xbm
+share/ghostscript/${GS_VERS}/lib/gs_t.xpm
+share/ghostscript/${GS_VERS}/lib/gs_t_m.xbm
+share/ghostscript/${GS_VERS}/lib/gs_trap.ps
+share/ghostscript/${GS_VERS}/lib/gs_ttf.ps
+share/ghostscript/${GS_VERS}/lib/gs_typ32.ps
+share/ghostscript/${GS_VERS}/lib/gs_typ42.ps
+share/ghostscript/${GS_VERS}/lib/gs_type1.ps
+share/ghostscript/${GS_VERS}/lib/gs_wan_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_wl1_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_wl2_e.ps
+share/ghostscript/${GS_VERS}/lib/gs_wl5_e.ps
+share/ghostscript/${GS_VERS}/lib/gslp.ps
+share/ghostscript/${GS_VERS}/lib/gsnup.ps
+share/ghostscript/${GS_VERS}/lib/ht_ccsto.ps
+share/ghostscript/${GS_VERS}/lib/image-qa.ps
+share/ghostscript/${GS_VERS}/lib/impath.ps
+share/ghostscript/${GS_VERS}/lib/jispaper.ps
+share/ghostscript/${GS_VERS}/lib/landscap.ps
+share/ghostscript/${GS_VERS}/lib/level1.ps
+share/ghostscript/${GS_VERS}/lib/lines.ps
+share/ghostscript/${GS_VERS}/lib/markhint.ps
+share/ghostscript/${GS_VERS}/lib/markpath.ps
+share/ghostscript/${GS_VERS}/lib/necp2x.upp
+share/ghostscript/${GS_VERS}/lib/necp2x6.upp
+share/ghostscript/${GS_VERS}/lib/packfile.ps
+share/ghostscript/${GS_VERS}/lib/pcharstr.ps
+share/ghostscript/${GS_VERS}/lib/pdf2dsc.ps
+share/ghostscript/${GS_VERS}/lib/pdf_base.ps
+share/ghostscript/${GS_VERS}/lib/pdf_draw.ps
+share/ghostscript/${GS_VERS}/lib/pdf_font.ps
+share/ghostscript/${GS_VERS}/lib/pdf_main.ps
+share/ghostscript/${GS_VERS}/lib/pdf_ops.ps
+share/ghostscript/${GS_VERS}/lib/pdf_sec.ps
+share/ghostscript/${GS_VERS}/lib/pdfopt.ps
+share/ghostscript/${GS_VERS}/lib/pdfwrite.ps
+share/ghostscript/${GS_VERS}/lib/pf2afm.ps
+share/ghostscript/${GS_VERS}/lib/pfbtopfa.ps
+share/ghostscript/${GS_VERS}/lib/ppath.ps
+share/ghostscript/${GS_VERS}/lib/prfont.ps
+share/ghostscript/${GS_VERS}/lib/printafm.ps
+share/ghostscript/${GS_VERS}/lib/ps2ai.ps
+share/ghostscript/${GS_VERS}/lib/ps2ascii.ps
+share/ghostscript/${GS_VERS}/lib/ps2epsi.ps
+share/ghostscript/${GS_VERS}/lib/quit.ps
+share/ghostscript/${GS_VERS}/lib/ras1.upp
+share/ghostscript/${GS_VERS}/lib/ras24.upp
+share/ghostscript/${GS_VERS}/lib/ras3.upp
+share/ghostscript/${GS_VERS}/lib/ras32.upp
+share/ghostscript/${GS_VERS}/lib/ras4.upp
+share/ghostscript/${GS_VERS}/lib/ras8m.upp
+share/ghostscript/${GS_VERS}/lib/rollconv.ps
+share/ghostscript/${GS_VERS}/lib/s400a1.upp
+share/ghostscript/${GS_VERS}/lib/s400b1.upp
+share/ghostscript/${GS_VERS}/lib/sharp.upp
+share/ghostscript/${GS_VERS}/lib/showchar.ps
+share/ghostscript/${GS_VERS}/lib/showpage.ps
+share/ghostscript/${GS_VERS}/lib/st640ih.upp
+share/ghostscript/${GS_VERS}/lib/st640ihg.upp
+share/ghostscript/${GS_VERS}/lib/st640p.upp
+share/ghostscript/${GS_VERS}/lib/st640pg.upp
+share/ghostscript/${GS_VERS}/lib/st640pl.upp
+share/ghostscript/${GS_VERS}/lib/st640plg.upp
+share/ghostscript/${GS_VERS}/lib/stc.upp
+share/ghostscript/${GS_VERS}/lib/stc1520h.upp
+share/ghostscript/${GS_VERS}/lib/stc2.upp
+share/ghostscript/${GS_VERS}/lib/stc200_h.upp
+share/ghostscript/${GS_VERS}/lib/stc2_h.upp
+share/ghostscript/${GS_VERS}/lib/stc2s_h.upp
+share/ghostscript/${GS_VERS}/lib/stc300.upp
+share/ghostscript/${GS_VERS}/lib/stc300bl.upp
+share/ghostscript/${GS_VERS}/lib/stc300bm.upp
+share/ghostscript/${GS_VERS}/lib/stc500p.upp
+share/ghostscript/${GS_VERS}/lib/stc500ph.upp
+share/ghostscript/${GS_VERS}/lib/stc600ih.upp
+share/ghostscript/${GS_VERS}/lib/stc600p.upp
+share/ghostscript/${GS_VERS}/lib/stc600pl.upp
+share/ghostscript/${GS_VERS}/lib/stc640p.upp
+share/ghostscript/${GS_VERS}/lib/stc740ih.upp
+share/ghostscript/${GS_VERS}/lib/stc740p.upp
+share/ghostscript/${GS_VERS}/lib/stc740pl.upp
+share/ghostscript/${GS_VERS}/lib/stc800ih.upp
+share/ghostscript/${GS_VERS}/lib/stc800p.upp
+share/ghostscript/${GS_VERS}/lib/stc800pl.upp
+share/ghostscript/${GS_VERS}/lib/stc_h.upp
+share/ghostscript/${GS_VERS}/lib/stc_l.upp
+share/ghostscript/${GS_VERS}/lib/stcany.upp
+share/ghostscript/${GS_VERS}/lib/stcany_h.upp
+share/ghostscript/${GS_VERS}/lib/stcinfo.ps
+share/ghostscript/${GS_VERS}/lib/stcolor.ps
+share/ghostscript/${GS_VERS}/lib/stocht.ps
+share/ghostscript/${GS_VERS}/lib/traceimg.ps
+share/ghostscript/${GS_VERS}/lib/traceop.ps
+share/ghostscript/${GS_VERS}/lib/type1enc.ps
+share/ghostscript/${GS_VERS}/lib/type1ops.ps
+share/ghostscript/${GS_VERS}/lib/uninfo.ps
+share/ghostscript/${GS_VERS}/lib/unprot.ps
+share/ghostscript/${GS_VERS}/lib/viewcmyk.ps
+share/ghostscript/${GS_VERS}/lib/viewgif.ps
+share/ghostscript/${GS_VERS}/lib/viewjpeg.ps
+share/ghostscript/${GS_VERS}/lib/viewmiff.ps
+share/ghostscript/${GS_VERS}/lib/viewpbm.ps
+share/ghostscript/${GS_VERS}/lib/viewpcx.ps
+share/ghostscript/${GS_VERS}/lib/viewps2a.ps
+share/ghostscript/${GS_VERS}/lib/wftopfa.ps
+share/ghostscript/${GS_VERS}/lib/winmaps.ps
+share/ghostscript/${GS_VERS}/lib/wrfont.ps
+share/ghostscript/${GS_VERS}/lib/zeroline.ps
+@dirrm share/ghostscript/${GS_VERS}/lib
+@dirrm share/ghostscript/${GS_VERS}
+@dirrm share/examples/ghostscript/cjk
+@dirrm share/examples/ghostscript
+@dirrm share/doc/html/ghostscript
+@dirrm man/de/man1
+@dirrm man/de
diff --git a/print/ghostscript-esp/distinfo b/print/ghostscript-esp/distinfo
new file mode 100644
index 00000000000..16b028bd59f
--- /dev/null
+++ b/print/ghostscript-esp/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/18 22:28:16 jlam Exp $
+
+SHA1 (ghostscript/espgs-7.05.5-source.tar.bz2) = 4f6224a3375b683a0f5f4977d6aaf67ff1598bee
+Size (ghostscript/espgs-7.05.5-source.tar.bz2) = 5368020 bytes
+SHA1 (ghostscript/jpegsrc.v6b.tar.gz) = 7079f0d6c42fad0cfba382cf6ad322add1ace8f9
+Size (ghostscript/jpegsrc.v6b.tar.gz) = 613261 bytes
+SHA1 (patch-aa) = bbc381631bfd7ec47254cf229ebef138ac593b66
+SHA1 (patch-ab) = f4d6e63e84ee4a1d720c860ec65f505d0ca07fe7
+SHA1 (patch-ac) = 67308cde89fcfb7ae40220bc9b8d7cc24c0cebe2
diff --git a/print/ghostscript-esp/patches/patch-aa b/print/ghostscript-esp/patches/patch-aa
new file mode 100644
index 00000000000..9734f15b548
--- /dev/null
+++ b/print/ghostscript-esp/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/18 22:28:16 jlam Exp $
+
+--- pstoraster/cups.mak.orig Sat May 11 17:46:33 2002
++++ pstoraster/cups.mak
+@@ -34,8 +34,6 @@ $(DD)cups.dev: $(cups_) $(GLD)page.dev
+ $(GLOBJ)gdevcups.$(OBJ): pstoraster/gdevcups.c $(PDEVH)
+ $(GLCC) $(GLO_)gdevcups.$(OBJ) $(C_) pstoraster/gdevcups.c
+
+-install: install-cups
+-
+ install-cups:
+ -mkdir -p $(CUPSSERVER)/filter
+ $(INSTALL_PROGRAM) pstoraster/pstoraster $(CUPSSERVER)/filter
diff --git a/print/ghostscript-esp/patches/patch-ab b/print/ghostscript-esp/patches/patch-ab
new file mode 100644
index 00000000000..5fc6cdbc30c
--- /dev/null
+++ b/print/ghostscript-esp/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/09/18 22:28:16 jlam Exp $
+
+--- src/Makefile.in.orig Thu Jul 18 15:19:50 2002
++++ src/Makefile.in
+@@ -63,8 +63,8 @@ datadir = @datadir@
+ gsdir = $(datadir)/ghostscript
+ gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
+
+-docdir=$(gsdatadir)/doc
+-exdir=$(gsdatadir)/examples
++docdir=$(datadir)/doc/html/ghostscript
++exdir=$(datadir)/examples/ghostscript
+ GS_DOCDIR=$(docdir)
+
+ # Define the default directory/ies for the runtime
diff --git a/print/ghostscript-esp/patches/patch-ac b/print/ghostscript-esp/patches/patch-ac
new file mode 100644
index 00000000000..dba9cf707bb
--- /dev/null
+++ b/print/ghostscript-esp/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/09/18 22:28:16 jlam Exp $
+
+--- src/unixinst.mak.orig Sat Jul 20 14:03:21 2002
++++ src/unixinst.mak
+@@ -134,7 +134,7 @@ install-man: $(PSMANDIR)/gs.1
+ ln -s ps2pdf.$(man1ext) $$f.$(man1ext) ) ;\
+ done ;\
+ fi ;\
+- if ( test -f $$man1dir/ps2ps.$(man1ext) ) ;\
++ if ( test -f $$man1dir/gslp.$(man1ext) ) ;\
+ then for f in $(MAN1_LINKS_GSLP) ;\
+ do ( cd $$man1dir; rm -f $$f.$(man1ext) ;\
+ ln -s gslp.$(man1ext) $$f.$(man1ext) ) ;\