summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2013-03-16 21:32:00 +0000
committerdholland <dholland@pkgsrc.org>2013-03-16 21:32:00 +0000
commit3fc035a706100f81c588b4a13af6dda5a9ba8197 (patch)
treeea79c09ab2e79648eb5f3520580eb1e9e75e7a59 /print
parent4ff71c2d2fb42eb5a0f4d8181d80b083d020fe91 (diff)
downloadpkgsrc-3fc035a706100f81c588b4a13af6dda5a9ba8197.tar.gz
Copy the pre-update ghostscript 9.05 package as ghostscript-gpl.
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-gpl/DESCR9
-rw-r--r--print/ghostscript-gpl/Makefile112
-rw-r--r--print/ghostscript-gpl/Makefile.common6
-rw-r--r--print/ghostscript-gpl/PLIST632
-rw-r--r--print/ghostscript-gpl/buildlink3.mk33
-rw-r--r--print/ghostscript-gpl/distinfo16
-rw-r--r--print/ghostscript-gpl/hacks.mk22
-rw-r--r--print/ghostscript-gpl/options.mk62
-rw-r--r--print/ghostscript-gpl/patches/patch-CVE-2012-440518
-rw-r--r--print/ghostscript-gpl/patches/patch-af51
-rw-r--r--print/ghostscript-gpl/patches/patch-ah35
-rw-r--r--print/ghostscript-gpl/patches/patch-ai17
-rw-r--r--print/ghostscript-gpl/patches/patch-aj14
-rw-r--r--print/ghostscript-gpl/patches/patch-al13
-rw-r--r--print/ghostscript-gpl/patches/patch-an22
-rw-r--r--print/ghostscript-gpl/patches/patch-base_gdevpng.c25
-rw-r--r--print/ghostscript-gpl/patches/patch-base_gserrors_h15
-rw-r--r--print/ghostscript-gpl/patches/patch-configure.ac15
-rw-r--r--print/ghostscript-gpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h19
19 files changed, 1136 insertions, 0 deletions
diff --git a/print/ghostscript-gpl/DESCR b/print/ghostscript-gpl/DESCR
new file mode 100644
index 00000000000..bad0841334a
--- /dev/null
+++ b/print/ghostscript-gpl/DESCR
@@ -0,0 +1,9 @@
+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 is the latest version of Ghostscript, formerly being distributed
+under Aladdin Free Public License and released under GPL. The main
+ghostscript version now includes support for cups, enabled by the
+"cups" option (which is off by default), and thus it is no longer
+necessary to use ghostscript-esp.
diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile
new file mode 100644
index 00000000000..61e7990308f
--- /dev/null
+++ b/print/ghostscript-gpl/Makefile
@@ -0,0 +1,112 @@
+# $NetBSD: Makefile,v 1.1 2013/03/16 21:32:00 dholland Exp $
+
+DISTNAME= ghostscript-${GS_VERSION}
+PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-gpl/}
+PKGREVISION= 3
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
+MASTER_SITES+= http://ghostscript.com/releases/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://ghostscript.sourceforge.net/
+COMMENT= Postscript interpreter
+
+# Plus adobe verbatim for Resources/CMap.
+LICENSE= gnu-gpl-v3
+
+.include "Makefile.common"
+
+DEPENDS+= ghostscript-fonts>=6.0:../../fonts/ghostscript-fonts
+
+CONFLICTS+= ghostscript-afpl-[0-9]*
+CONFLICTS+= ghostscript-esp{,-nox11}-[0-9]*
+CONFLICTS+= ghostscript-gnu{,-nox11,-x11}-[0-9]*
+
+USE_TOOLS+= gmake perl:run lex pkg-config
+USE_LANGUAGES+= c c++
+GNU_CONFIGURE= yes
+UNLIMIT_RESOURCES+= datasize # gsromfs1.c
+
+BUILD_TARGET= so
+INSTALL_TARGET= soinstall
+CONFIGURE_ARGS+= -with-omni=no # otherwise pulls in libstdc++
+
+REPLACE_PERL+= toolbin/localcluster/clusterpush.pl
+REPLACE_PERL+= toolbin/checkdeps.pl
+REPLACE_PERL+= toolbin/pscet_status.pl
+REPLACE_PERL+= toolbin/performance.pl
+REPLACE_PERL+= toolbin/squeeze2html.pl
+REPLACE_PERL+= toolbin/bugsByEngineer.pl
+REPLACE_PERL+= toolbin/htmldiff.pl
+
+GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/${PKGVERSION}/Resource
+# MESSAGE file substitution
+MESSAGE_SUBST+= GS_RESOURCEDIR=${GS_RESOURCEDIR}
+
+# XXX make sure the local jpeg headers are found before those pulled
+# in indirectly by cups bl3
+CPPFLAGS+= -Ijpeg
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+
+.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
+CFLAGS+= -DA4
+.endif
+
+REQD_DIRS+= share/ghostscript
+
+SUBST_CLASSES+= resdir
+SUBST_STAGE.resdir= post-extract
+SUBST_MESSAGE.resdir= Fixing resource directory path
+SUBST_FILES.resdir= Resource/Init/gs_res.ps
+SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g"
+
+.if ${OPSYS} == "HPUX"
+CONFIGURE_ENV+= ac_cv_func_fopen64=no
+.endif
+
+# On Linux-*-x86_64, there was an error message:
+# gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be
+# used when making a shared object; recompile with -fPIC
+.if !empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -fPIC
+.endif
+
+# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't
+# require linking against libiconv when it should do so.
+.if ${OPSYS} == "IRIX"
+BUILDLINK_TRANSFORM+= l:fontconfig:fontconfig:iconv
+.endif
+
+CONFIGURE_ENV+= LPLIBDIR=${PREFIX}/lib
+
+.include "options.mk"
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MKDIR} ${WRKSRC}/obj
+# ${RM} -rf ${WRKSRC}/jasper
+ ${RM} -rf ${WRKSRC}/libpng
+# ${RM} -rf ${WRKSRC}/tiff
+# ${RM} -rf ${WRKSRC}/zlib
+ ${RM} -rf ${WRKSRC}/freetype
+#
+# To allow outside customization, rename cidfmap
+# (if you look at inside of the file, it is logically empty)
+.if !empty(PKG_OPTIONS:Mdisable-compile-inits)
+ (cd ${WRKSRC}/Resource/Init/; ${MV} cidfmap cidfmap.dist)
+.endif
+
+post-install:
+ ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs
+
+.include "../../print/libpaper/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+# pkgsrc jasper is too new
+#.include "../../graphics/jasper/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/ghostscript-gpl/Makefile.common b/print/ghostscript-gpl/Makefile.common
new file mode 100644
index 00000000000..819242cde25
--- /dev/null
+++ b/print/ghostscript-gpl/Makefile.common
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile.common,v 1.1 2013/03/16 21:32:00 dholland Exp $
+# used by print/ghostscript-gpl/Makefile
+# used (potentially) by fonts/ghostscript-cidfonts/Makefile
+# used (potentially) by fonts/ghostscript-cidfonts-ryumin/Makefile
+
+GS_VERSION= 9.05
diff --git a/print/ghostscript-gpl/PLIST b/print/ghostscript-gpl/PLIST
new file mode 100644
index 00000000000..bea6c99482d
--- /dev/null
+++ b/print/ghostscript-gpl/PLIST
@@ -0,0 +1,632 @@
+@comment $NetBSD: PLIST,v 1.1 2013/03/16 21:32:00 dholland Exp $
+bin/dumphint
+bin/dvipdf
+bin/eps2eps
+bin/font2c
+bin/gs
+bin/gsbj
+bin/gsc
+bin/gsdj
+bin/gsdj500
+bin/gslj
+bin/gslp
+bin/gsnd
+bin/gsx
+bin/lprsetup.sh
+bin/pdf2dsc
+bin/pdf2ps
+bin/pdfopt
+bin/pf2afm
+bin/pfbtopfa
+bin/pphs
+bin/printafm
+bin/ps2ascii
+bin/ps2epsi
+bin/ps2pdf
+bin/ps2pdf12
+bin/ps2pdf13
+bin/ps2pdf14
+bin/ps2pdfwr
+bin/ps2ps
+bin/ps2ps2
+bin/unix-lpr.sh
+bin/wftopfa
+include/ghostscript/gdevdsp.h
+include/ghostscript/iapi.h
+include/ghostscript/ierrors.h
+lib/libgs.so
+lib/libgs.so.9
+lib/libgs.so.${PKGVERSION}
+${PLIST.cups}libexec/cups/filter/gstopxl
+${PLIST.cups}libexec/cups/filter/gstoraster
+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/ps2pdf14.1
+man/de/man1/ps2ps.1
+man/de/man1/wftopfa.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/ps2pdf14.1
+man/man1/ps2pdfwr.1
+man/man1/ps2ps.1
+man/man1/wftopfa.1
+${PLIST.cups}share/cups/model/pxlcolor.ppd
+${PLIST.cups}share/cups/model/pxlmono.ppd
+${PLIST.cups}share/examples/cups/gstoraster.convs
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CIDFSubst/DroidSansFallback.ttf
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CIDFont/ArtifexBullet
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78ms-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/78ms-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/83pv-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90ms-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90ms-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90msp-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90msp-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90pv-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/90pv-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Add-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Add-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Add-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Add-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-0
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-1
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-2
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-3
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-4
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-5
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-CNS1-6
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-GB1-0
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-GB1-1
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-GB1-2
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-GB1-3
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-GB1-4
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-GB1-5
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-0
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-1
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-2
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-3
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-4
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-5
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Japan1-6
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Korea1-0
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Korea1-1
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Adobe-Korea1-2
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/B5pc-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/B5pc-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/CNS-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/CNS-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/CNS1-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/CNS1-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/CNS2-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/CNS2-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/ETHK-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/ETHK-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/ETen-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/ETen-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/ETenms-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/ETenms-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Ext-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Ext-RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Ext-RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Ext-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GB-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GB-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GB-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GB-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBK-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBK-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBK2K-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBK2K-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBKp-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBKp-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBT-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBT-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBT-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBT-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBTpc-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBTpc-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBpc-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/GBpc-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKdla-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKdla-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKdlb-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKdlb-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKgccs-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKgccs-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKm314-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKm314-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKm471-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKm471-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKscs-B5-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/HKscs-B5-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Hankaku
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Hiragana
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Identity-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Identity-UTF16-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Identity-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSC-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSC-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSC-Johab-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSC-Johab-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSCms-UHC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSCms-UHC-HW-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSCms-UHC-HW-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSCms-UHC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSCpc-EUC-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/KSCpc-EUC-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Katakana
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/NWP-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/NWP-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/RKSJ-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/RKSJ-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/Roman
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UCS2-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UCS2-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UTF16-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UTF16-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UTF8-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniCNS-UTF8-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UCS2-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UCS2-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UTF16-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UTF16-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UTF8-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniGB-UTF8-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniHojo-UCS2-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UCS2-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UCS2-HW-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UCS2-HW-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UCS2-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UTF16-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UTF16-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UTF8-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS-UTF8-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS2004-UTF16-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS2004-UTF16-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS2004-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS2004-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS2004-UTF8-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJIS2004-UTF8-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISPro-UCS2-HW-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISPro-UCS2-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISPro-UTF8-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISX0213-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISX0213-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISX02132004-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniJISX02132004-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UCS2-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UCS2-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UTF16-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UTF16-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UTF32-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UTF32-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UTF8-H
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/UniKS-UTF8-V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/V
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/CMap/WP-Symbol
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/ColorSpace/DefaultCMYK
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/ColorSpace/DefaultGray
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/ColorSpace/DefaultRGB
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/ColorSpace/TrivialCMYK
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/ColorSpace/sGray
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/ColorSpace/sRGB
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/FCO_Dingbats
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/FCO_Symbol
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/FCO_Unicode
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/FCO_Wingdings
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/Latin1
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/StandardEncoding
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Decoding/Unicode
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Encoding/Wingdings
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/CenturySchL-Bold
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/CenturySchL-BoldItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/CenturySchL-Ital
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/CenturySchL-Roma
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/Dingbats
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusMonL-Bold
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusMonL-BoldObli
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusMonL-Regu
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusMonL-ReguObli
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusRomNo9L-Medi
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusRomNo9L-MediItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusRomNo9L-Regu
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusRomNo9L-ReguItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-Bold
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-BoldCond
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-BoldCondItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-BoldItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-Regu
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-ReguCond
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-ReguCondItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/NimbusSanL-ReguItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/StandardSymL
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWBookmanL-DemiBold
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWBookmanL-DemiBoldItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWBookmanL-Ligh
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWBookmanL-LighItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWChanceryL-MediItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWGothicL-Book
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWGothicL-BookObli
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWGothicL-Demi
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWGothicL-DemiObli
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWPalladioL-Bold
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWPalladioL-BoldItal
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWPalladioL-Ital
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Font/URWPalladioL-Roma
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/FAPIcidfmap
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/FAPIconfig
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/FAPIfontmap
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/FCOfontmap-PCLPS2
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/Fontmap
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/Fontmap.GS
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/cidfmap.dist
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_agl.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_btokn.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cet.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cff.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cidcm.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_ciddc.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cidfm.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cidfn.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cidtt.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cmap.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_cspace.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_css_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_dbt_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_diskf.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_diskn.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_dpnxt.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_dps.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_dps1.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_dps2.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_dscp.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_epsf.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_fapi.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_fntem.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_fonts.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_frsd.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_icc.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_il1_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_img.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_init.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_l2img.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_lev2.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_ll3.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_mex_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_mgl_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_mro_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_pdf_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_pdfwr.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_res.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_resmp.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_setpd.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_statd.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_std_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_sym_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_trap.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_ttf.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_typ32.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_typ42.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_type1.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/gs_wan_e.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_base.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_cslayer.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_draw.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_font.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_main.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_ops.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_rbld.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/pdf_sec.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/Init/xlatmap
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/SubstCID/CNS1-WMode
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/SubstCID/GB1-WMode
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/SubstCID/Japan1-WMode
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/Resource/SubstCID/Korea1-WMode
+share/ghostscript/${PKGVERSION}/doc/API.htm
+share/ghostscript/${PKGVERSION}/doc/C-style.htm
+share/ghostscript/${PKGVERSION}/doc/Changes.htm
+share/ghostscript/${PKGVERSION}/doc/Commprod.htm
+share/ghostscript/${PKGVERSION}/doc/DLL.htm
+share/ghostscript/${PKGVERSION}/doc/Deprecated.htm
+share/ghostscript/${PKGVERSION}/doc/Details.htm
+share/ghostscript/${PKGVERSION}/doc/Details8.htm
+share/ghostscript/${PKGVERSION}/doc/Details9.htm
+share/ghostscript/${PKGVERSION}/doc/Develop.htm
+share/ghostscript/${PKGVERSION}/doc/Devices.htm
+share/ghostscript/${PKGVERSION}/doc/Drivers.htm
+share/ghostscript/${PKGVERSION}/doc/Fonts.htm
+share/ghostscript/${PKGVERSION}/doc/Helpers.htm
+share/ghostscript/${PKGVERSION}/doc/Hershey.htm
+share/ghostscript/${PKGVERSION}/doc/History1.htm
+share/ghostscript/${PKGVERSION}/doc/History2.htm
+share/ghostscript/${PKGVERSION}/doc/History3.htm
+share/ghostscript/${PKGVERSION}/doc/History4.htm
+share/ghostscript/${PKGVERSION}/doc/History5.htm
+share/ghostscript/${PKGVERSION}/doc/History6.htm
+share/ghostscript/${PKGVERSION}/doc/History7.htm
+share/ghostscript/${PKGVERSION}/doc/History8.htm
+share/ghostscript/${PKGVERSION}/doc/History9.htm
+share/ghostscript/${PKGVERSION}/doc/Install.htm
+share/ghostscript/${PKGVERSION}/doc/Issues.htm
+share/ghostscript/${PKGVERSION}/doc/Language.htm
+share/ghostscript/${PKGVERSION}/doc/Lib.htm
+share/ghostscript/${PKGVERSION}/doc/Make.htm
+share/ghostscript/${PKGVERSION}/doc/News.htm
+share/ghostscript/${PKGVERSION}/doc/Projects.htm
+share/ghostscript/${PKGVERSION}/doc/Ps-style.htm
+share/ghostscript/${PKGVERSION}/doc/Ps2epsi.htm
+share/ghostscript/${PKGVERSION}/doc/Ps2pdf.htm
+share/ghostscript/${PKGVERSION}/doc/Psfiles.htm
+share/ghostscript/${PKGVERSION}/doc/Readme.htm
+share/ghostscript/${PKGVERSION}/doc/Release.htm
+share/ghostscript/${PKGVERSION}/doc/Source.htm
+share/ghostscript/${PKGVERSION}/doc/Unix-lpr.htm
+share/ghostscript/${PKGVERSION}/doc/Use.htm
+share/ghostscript/${PKGVERSION}/doc/Xfonts.htm
+share/ghostscript/${PKGVERSION}/doc/gs.css
+share/ghostscript/${PKGVERSION}/doc/index.html
+share/ghostscript/${PKGVERSION}/examples/alphabet.ps
+share/ghostscript/${PKGVERSION}/examples/annots.pdf
+share/ghostscript/${PKGVERSION}/examples/chess.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/all_ac1.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/all_ag1.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/all_aj1.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/all_aj2.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/all_ak1.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/article9.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/gscjk_ac.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/gscjk_ag.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/gscjk_aj.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/gscjk_ak.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/iso2022.ps
+share/ghostscript/${PKGVERSION}/examples/cjk/iso2022v.ps
+share/ghostscript/${PKGVERSION}/examples/colorcir.ps
+share/ghostscript/${PKGVERSION}/examples/doretree.ps
+share/ghostscript/${PKGVERSION}/examples/escher.ps
+share/ghostscript/${PKGVERSION}/examples/golfer.eps
+share/ghostscript/${PKGVERSION}/examples/grayalph.ps
+share/ghostscript/${PKGVERSION}/examples/ridt91.eps
+share/ghostscript/${PKGVERSION}/examples/snowflak.ps
+share/ghostscript/${PKGVERSION}/examples/tiger.eps
+share/ghostscript/${PKGVERSION}/examples/vasarely.ps
+share/ghostscript/${PKGVERSION}/examples/waterfal.ps
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/default_cmyk.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/default_gray.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/default_rgb.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/gray_to_k.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/lab.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/ps_cmyk.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/ps_gray.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/ps_rgb.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/sgray.icc
+${PLIST.no_cidfmap}share/ghostscript/${PKGVERSION}/iccprofiles/srgb.icc
+share/ghostscript/${PKGVERSION}/lib/PDFA_def.ps
+share/ghostscript/${PKGVERSION}/lib/PDFX_def.ps
+share/ghostscript/${PKGVERSION}/lib/PM760p.upp
+share/ghostscript/${PKGVERSION}/lib/PM760pl.upp
+share/ghostscript/${PKGVERSION}/lib/PM820p.upp
+share/ghostscript/${PKGVERSION}/lib/PM820pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stc670p.upp
+share/ghostscript/${PKGVERSION}/lib/Stc670pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stc680p.upp
+share/ghostscript/${PKGVERSION}/lib/Stc680pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stc740p.upp
+share/ghostscript/${PKGVERSION}/lib/Stc740pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stc760p.upp
+share/ghostscript/${PKGVERSION}/lib/Stc760pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stc777p.upp
+share/ghostscript/${PKGVERSION}/lib/Stc777pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stp720p.upp
+share/ghostscript/${PKGVERSION}/lib/Stp720pl.upp
+share/ghostscript/${PKGVERSION}/lib/Stp870p.upp
+share/ghostscript/${PKGVERSION}/lib/Stp870pl.upp
+share/ghostscript/${PKGVERSION}/lib/acctest.ps
+share/ghostscript/${PKGVERSION}/lib/addxchar.ps
+share/ghostscript/${PKGVERSION}/lib/align.ps
+share/ghostscript/${PKGVERSION}/lib/bj8.rpd
+share/ghostscript/${PKGVERSION}/lib/bj8gc12f.upp
+share/ghostscript/${PKGVERSION}/lib/bj8hg12f.upp
+share/ghostscript/${PKGVERSION}/lib/bj8oh06n.upp
+share/ghostscript/${PKGVERSION}/lib/bj8pa06n.upp
+share/ghostscript/${PKGVERSION}/lib/bj8pp12f.upp
+share/ghostscript/${PKGVERSION}/lib/bj8ts06n.upp
+share/ghostscript/${PKGVERSION}/lib/bjc6000a1.upp
+share/ghostscript/${PKGVERSION}/lib/bjc6000b1.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a0.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a1.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a2.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a3.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a4.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a5.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a6.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a7.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610a8.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b1.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b2.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b3.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b4.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b6.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b7.upp
+share/ghostscript/${PKGVERSION}/lib/bjc610b8.upp
+share/ghostscript/${PKGVERSION}/lib/caption.ps
+share/ghostscript/${PKGVERSION}/lib/cbjc600.ppd
+share/ghostscript/${PKGVERSION}/lib/cbjc800.ppd
+share/ghostscript/${PKGVERSION}/lib/cdj550.upp
+share/ghostscript/${PKGVERSION}/lib/cdj690.upp
+share/ghostscript/${PKGVERSION}/lib/cdj690ec.upp
+share/ghostscript/${PKGVERSION}/lib/cid2code.ps
+share/ghostscript/${PKGVERSION}/lib/decrypt.ps
+share/ghostscript/${PKGVERSION}/lib/dmp_init.ps
+share/ghostscript/${PKGVERSION}/lib/dmp_site.ps
+share/ghostscript/${PKGVERSION}/lib/dnj750c.upp
+share/ghostscript/${PKGVERSION}/lib/dnj750m.upp
+share/ghostscript/${PKGVERSION}/lib/docie.ps
+share/ghostscript/${PKGVERSION}/lib/dumphint.ps
+share/ghostscript/${PKGVERSION}/lib/escp_24.src
+share/ghostscript/${PKGVERSION}/lib/font2c.ps
+share/ghostscript/${PKGVERSION}/lib/font2pcl.ps
+share/ghostscript/${PKGVERSION}/lib/ghostpdf.ppd
+share/ghostscript/${PKGVERSION}/lib/gs_ce_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_cmdl.ps
+share/ghostscript/${PKGVERSION}/lib/gs_fform.ps
+share/ghostscript/${PKGVERSION}/lib/gs_il2_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_kanji.ps
+share/ghostscript/${PKGVERSION}/lib/gs_ksb_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_l.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_l.xpm
+share/ghostscript/${PKGVERSION}/lib/gs_l_m.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_lgo_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_lgx_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_m.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_m.xpm
+share/ghostscript/${PKGVERSION}/lib/gs_m_m.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_pfile.ps
+share/ghostscript/${PKGVERSION}/lib/gs_rdlin.ps
+share/ghostscript/${PKGVERSION}/lib/gs_s.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_s.xpm
+share/ghostscript/${PKGVERSION}/lib/gs_s_m.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_t.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_t.xpm
+share/ghostscript/${PKGVERSION}/lib/gs_t_m.xbm
+share/ghostscript/${PKGVERSION}/lib/gs_wl1_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_wl2_e.ps
+share/ghostscript/${PKGVERSION}/lib/gs_wl5_e.ps
+share/ghostscript/${PKGVERSION}/lib/gslp.ps
+share/ghostscript/${PKGVERSION}/lib/gsnup.ps
+share/ghostscript/${PKGVERSION}/lib/ht_ccsto.ps
+share/ghostscript/${PKGVERSION}/lib/image-qa.ps
+share/ghostscript/${PKGVERSION}/lib/impath.ps
+share/ghostscript/${PKGVERSION}/lib/jispaper.ps
+share/ghostscript/${PKGVERSION}/lib/landscap.ps
+share/ghostscript/${PKGVERSION}/lib/level1.ps
+share/ghostscript/${PKGVERSION}/lib/lines.ps
+share/ghostscript/${PKGVERSION}/lib/markhint.ps
+share/ghostscript/${PKGVERSION}/lib/markpath.ps
+share/ghostscript/${PKGVERSION}/lib/mkcidfm.ps
+share/ghostscript/${PKGVERSION}/lib/necp2x.upp
+share/ghostscript/${PKGVERSION}/lib/necp2x6.upp
+share/ghostscript/${PKGVERSION}/lib/packfile.ps
+share/ghostscript/${PKGVERSION}/lib/pcharstr.ps
+share/ghostscript/${PKGVERSION}/lib/pdf2dsc.ps
+share/ghostscript/${PKGVERSION}/lib/pdfopt.ps
+share/ghostscript/${PKGVERSION}/lib/pdfwrite.ps
+share/ghostscript/${PKGVERSION}/lib/pf2afm.ps
+share/ghostscript/${PKGVERSION}/lib/pfbtopfa.ps
+share/ghostscript/${PKGVERSION}/lib/ppath.ps
+share/ghostscript/${PKGVERSION}/lib/pphs.ps
+share/ghostscript/${PKGVERSION}/lib/prfont.ps
+share/ghostscript/${PKGVERSION}/lib/printafm.ps
+share/ghostscript/${PKGVERSION}/lib/ps2ai.ps
+share/ghostscript/${PKGVERSION}/lib/ps2ascii.ps
+share/ghostscript/${PKGVERSION}/lib/ps2epsi.ps
+share/ghostscript/${PKGVERSION}/lib/quit.ps
+share/ghostscript/${PKGVERSION}/lib/ras1.upp
+share/ghostscript/${PKGVERSION}/lib/ras24.upp
+share/ghostscript/${PKGVERSION}/lib/ras3.upp
+share/ghostscript/${PKGVERSION}/lib/ras32.upp
+share/ghostscript/${PKGVERSION}/lib/ras4.upp
+share/ghostscript/${PKGVERSION}/lib/ras8m.upp
+share/ghostscript/${PKGVERSION}/lib/rollconv.ps
+share/ghostscript/${PKGVERSION}/lib/s400a1.upp
+share/ghostscript/${PKGVERSION}/lib/s400b1.upp
+share/ghostscript/${PKGVERSION}/lib/sharp.upp
+share/ghostscript/${PKGVERSION}/lib/showchar.ps
+share/ghostscript/${PKGVERSION}/lib/showpage.ps
+share/ghostscript/${PKGVERSION}/lib/sipixa6.upp
+share/ghostscript/${PKGVERSION}/lib/st640ih.upp
+share/ghostscript/${PKGVERSION}/lib/st640ihg.upp
+share/ghostscript/${PKGVERSION}/lib/st640p.upp
+share/ghostscript/${PKGVERSION}/lib/st640pg.upp
+share/ghostscript/${PKGVERSION}/lib/st640pl.upp
+share/ghostscript/${PKGVERSION}/lib/st640plg.upp
+share/ghostscript/${PKGVERSION}/lib/stc.upp
+share/ghostscript/${PKGVERSION}/lib/stc1520h.upp
+share/ghostscript/${PKGVERSION}/lib/stc2.upp
+share/ghostscript/${PKGVERSION}/lib/stc200_h.upp
+share/ghostscript/${PKGVERSION}/lib/stc2_h.upp
+share/ghostscript/${PKGVERSION}/lib/stc2s_h.upp
+share/ghostscript/${PKGVERSION}/lib/stc300.upp
+share/ghostscript/${PKGVERSION}/lib/stc300bl.upp
+share/ghostscript/${PKGVERSION}/lib/stc300bm.upp
+share/ghostscript/${PKGVERSION}/lib/stc500p.upp
+share/ghostscript/${PKGVERSION}/lib/stc500ph.upp
+share/ghostscript/${PKGVERSION}/lib/stc600ih.upp
+share/ghostscript/${PKGVERSION}/lib/stc600p.upp
+share/ghostscript/${PKGVERSION}/lib/stc600pl.upp
+share/ghostscript/${PKGVERSION}/lib/stc640p.upp
+share/ghostscript/${PKGVERSION}/lib/stc740ih.upp
+share/ghostscript/${PKGVERSION}/lib/stc800ih.upp
+share/ghostscript/${PKGVERSION}/lib/stc800p.upp
+share/ghostscript/${PKGVERSION}/lib/stc800pl.upp
+share/ghostscript/${PKGVERSION}/lib/stc_h.upp
+share/ghostscript/${PKGVERSION}/lib/stc_l.upp
+share/ghostscript/${PKGVERSION}/lib/stcany.upp
+share/ghostscript/${PKGVERSION}/lib/stcany_h.upp
+share/ghostscript/${PKGVERSION}/lib/stcinfo.ps
+share/ghostscript/${PKGVERSION}/lib/stcolor.ps
+share/ghostscript/${PKGVERSION}/lib/stocht.ps
+share/ghostscript/${PKGVERSION}/lib/traceimg.ps
+share/ghostscript/${PKGVERSION}/lib/traceop.ps
+share/ghostscript/${PKGVERSION}/lib/type1enc.ps
+share/ghostscript/${PKGVERSION}/lib/type1ops.ps
+share/ghostscript/${PKGVERSION}/lib/uninfo.ps
+share/ghostscript/${PKGVERSION}/lib/unprot.ps
+share/ghostscript/${PKGVERSION}/lib/viewcmyk.ps
+share/ghostscript/${PKGVERSION}/lib/viewgif.ps
+share/ghostscript/${PKGVERSION}/lib/viewjpeg.ps
+share/ghostscript/${PKGVERSION}/lib/viewmiff.ps
+share/ghostscript/${PKGVERSION}/lib/viewpbm.ps
+share/ghostscript/${PKGVERSION}/lib/viewpcx.ps
+share/ghostscript/${PKGVERSION}/lib/viewps2a.ps
+share/ghostscript/${PKGVERSION}/lib/wftopfa.ps
+share/ghostscript/${PKGVERSION}/lib/winmaps.ps
+share/ghostscript/${PKGVERSION}/lib/wrfont.ps
+share/ghostscript/${PKGVERSION}/lib/zeroline.ps
diff --git a/print/ghostscript-gpl/buildlink3.mk b/print/ghostscript-gpl/buildlink3.mk
new file mode 100644
index 00000000000..9c1231f5eca
--- /dev/null
+++ b/print/ghostscript-gpl/buildlink3.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/03/16 21:32:00 dholland Exp $
+
+BUILDLINK_TREE+= ghostscript-gpl
+
+.if !defined(GHOSTSCRIPT_GPL_BUILDLINK3_MK)
+GHOSTSCRIPT_GPL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ghostscript-gpl+= ghostscript-gpl>=8.63nb1
+BUILDLINK_ABI_DEPENDS.ghostscript-gpl+= ghostscript-gpl>=9.05nb3
+BUILDLINK_PKGSRCDIR.ghostscript-gpl?= ../../print/ghostscript-gpl
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
+pkgbase := ghostscript-gpl
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mcups)
+.include "../../print/cups/buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mfontconfig)
+.include "../../fonts/fontconfig/buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.ghostscript-gpl:Mx11)
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.endif
+.endif # GHOSTSCRIPT_GPL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ghostscript-gpl
diff --git a/print/ghostscript-gpl/distinfo b/print/ghostscript-gpl/distinfo
new file mode 100644
index 00000000000..6fb6d422b1d
--- /dev/null
+++ b/print/ghostscript-gpl/distinfo
@@ -0,0 +1,16 @@
+$NetBSD: distinfo,v 1.1 2013/03/16 21:32:00 dholland Exp $
+
+SHA1 (ghostscript-9.05.tar.bz2) = 1a54a846e90ae95b5307f4f0459d044b9597d8cf
+RMD160 (ghostscript-9.05.tar.bz2) = 27935f60083b788b2793b19ee42f3663082ba084
+Size (ghostscript-9.05.tar.bz2) = 28279634 bytes
+SHA1 (patch-CVE-2012-4405) = 1dcb4cfeceb366c144e0a1337c6ccc2d8e13e4ca
+SHA1 (patch-af) = 79af4d253001f879f1b5d3ef93584ae7300361de
+SHA1 (patch-ah) = 35d6e3a4623bb28e59526f61a3062874cc363429
+SHA1 (patch-ai) = 8a3de7e097d3d893a0de4ea2936acf192f770c65
+SHA1 (patch-aj) = 620d921210b5c0efec0a84e33bc416e4ab4bd11c
+SHA1 (patch-al) = 86489b704c60320385794c3eb68170d9b9f1f6cc
+SHA1 (patch-an) = 22ed9965aec5d540adb31334d8dd9e05eab8e0c2
+SHA1 (patch-base_gdevpng.c) = 24120e26bd2a846f6d4c8ab9753dfe91f151343f
+SHA1 (patch-base_gserrors_h) = fde64bd096a6e6f94005c8352a6295df06c19bae
+SHA1 (patch-configure.ac) = 450053cef6948c638bf8f72cfcba7391edb33600
+SHA1 (patch-openjpeg_libopenjpeg_opj_malloc_h) = 4be081d6c4c9bc632ef8d9685fe4167ea3c51484
diff --git a/print/ghostscript-gpl/hacks.mk b/print/ghostscript-gpl/hacks.mk
new file mode 100644
index 00000000000..69e520af0e0
--- /dev/null
+++ b/print/ghostscript-gpl/hacks.mk
@@ -0,0 +1,22 @@
+# $NetBSD: hacks.mk,v 1.1 2013/03/16 21:32:00 dholland Exp $
+
+### [Tue Jan 9 15:57:05 EST 2007 : tv]
+### Interix has u_int64_t, but not uint64_t
+### (gdevpdfe.c doesn't use the autoconf test based int64 type,
+### but absolutely requires a 64-bit unsigned int)
+###
+.if ${OPSYS} == "Interix"
+PKG_HACKS+= interix-uint64_t
+CPPFLAGS.Interix+= -Duint64_t=u_int64_t
+.endif
+
+### [ Thu Nov 13 12:30:45 EST 2008 : chuck]
+### gs has hand-rolled shared lib handling that doesn't do the right
+### thing on Darwin by default, you need to reconfigure unix-dll.mak
+### to make it work.
+.if ${OPSYS} == "Darwin"
+post-patch:
+ ${SED} -e 's/^#Darwin#//' ${WRKSRC}/base/unix-dll.mak > \
+ ${WRKSRC}/base/unix-darwin.mak
+ ${MV} ${WRKSRC}/base/unix-darwin.mak ${WRKSRC}/base/unix-dll.mak
+.endif
diff --git a/print/ghostscript-gpl/options.mk b/print/ghostscript-gpl/options.mk
new file mode 100644
index 00000000000..f31b8a6de35
--- /dev/null
+++ b/print/ghostscript-gpl/options.mk
@@ -0,0 +1,62 @@
+# $NetBSD: options.mk,v 1.1 2013/03/16 21:32:00 dholland Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ghostscript
+PKG_SUPPORTED_OPTIONS= x11 cups debug fontconfig disable-compile-inits
+PKG_SUGGESTED_OPTIONS= x11 fontconfig
+
+.include "../../mk/bsd.options.mk"
+
+# (no_cidfmap) when --disable-compile-inits selected,
+# cidfmap is renamed to cidfmap.dist
+PLIST_VARS+= no_cidfmap
+
+.if !empty(PKG_OPTIONS:Mx11)
+CONFIGURE_ARGS+= --with-x
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-x
+CONFIGURE_ARGS+= --disable-freetype
+.endif
+
+PLIST_VARS+= cups
+.if !empty(PKG_OPTIONS:Mcups)
+CONFIGURE_ARGS+= --enable-cups
+PLIST.cups= yes
+INSTALL_TARGET+= install-cups
+
+CUPS_CONFDIR?= ${PKG_SYSCONFBASEDIR}/cups
+CUPS_EGDIR= ${PREFIX}/share/examples/cups
+CONF_FILES+= ${CUPS_EGDIR}/gstoraster.convs ${CUPS_CONFDIR}/gstoraster.convs
+
+SUBST_CLASSES+= cupsetc
+SUBST_STAGE.cupsetc= post-extract
+SUBST_MESSAGE.cupsetc= Fixing CUPS etc directory path to install as example
+SUBST_FILES.cupsetc= cups/cups.mak
+SUBST_SED.cupsetc= -e 's|$$(CUPSSERVERROOT)|${CUPS_EGDIR}|g'
+
+.include "../../print/cups/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-cups
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
+.if !empty(PKG_OPTIONS:Mfontconfig)
+.include "../../fonts/fontconfig/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-fontconfig
+CONFIGURE_ARGS+= --disable-freetype
+.endif
+
+# Please note the same if condition is in post-extract: target in Makefile
+.if !empty(PKG_OPTIONS:Mdisable-compile-inits)
+CONFIGURE_ARGS+= --disable-compile-inits
+PLIST.no_cidfmap= YES
+.else
+PLIST.cidfmap= YES
+.endif
diff --git a/print/ghostscript-gpl/patches/patch-CVE-2012-4405 b/print/ghostscript-gpl/patches/patch-CVE-2012-4405
new file mode 100644
index 00000000000..ea22152319a
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-CVE-2012-4405
@@ -0,0 +1,18 @@
+$NetBSD: patch-CVE-2012-4405,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+from RedHat bug #854227
+
+--- icclib/icc.c.orig 2009-07-28 07:48:19.000000000 +0000
++++ icclib/icc.c
+@@ -4996,6 +4996,11 @@
+ p->clutPoints = read_UInt8Number(bp+10);
+
+ /* Sanity check */
++ if (p->inputChan < 1) {
++ sprintf(icp->err,"icmLut_read: No input channels!");
++ return icp->errc = 1;
++ }
++
+ if (p->inputChan > MAX_CHAN) {
+ sprintf(icp->err,"icmLut_read: Can't handle > %d input channels\n",MAX_CHAN);
+ return icp->errc = 1;
diff --git a/print/ghostscript-gpl/patches/patch-af b/print/ghostscript-gpl/patches/patch-af
new file mode 100644
index 00000000000..fff05edd1fd
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-af
@@ -0,0 +1,51 @@
+$NetBSD: patch-af,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+(From the log for revision 1.4 of print/ghostscript/patches/patch-af)
+date: 2008/11/13 17:36:54; author: chuck; state: Exp; lines: +22 -4
+ghostscript has hand-rolled shared lib handling in src/unix-dll.mak
+that does not do the right thing on Darwin (where shared libs are
+created with different linking flags and use dylib rather than so
+as an extension).
+
+You need to manually reconfigure unix-dll.mak to make it work, so
+do it in hacks.mk.
+
+XXX: this still leaves the issue of libgs.so (et al.) being hardwired
+in PLIST, instead of using libgs.dylib (et al.). i'm not sure of
+the best way to fix that. at least it compiles now....
+
+--- base/unix-dll.mak.orig 2012-08-08 17:01:36.000000000 +0900
++++ base/unix-dll.mak 2012-10-10 10:03:50.000000000 +0900
+@@ -59,13 +59,12 @@
+
+
+ # MacOS X
+-#GS_SOEXT=dylib
+-#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)
+-#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)
+-#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)
++#Darwin#GS_SOEXT=dylib
++#Darwin#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT)
++#Darwin#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT)
++#Darwin#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT)
+ #LDFLAGS_SO=-dynamiclib -flat_namespace
+-LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR)
+-#LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME)
++#Darwin#LDFLAGS_SO=-dynamiclib -install_name $(DESTDIR)$(libdir)/$(GS_SONAME_MAJOR)
+
+ GS_SO=$(BINDIR)/$(GS_SONAME)
+ GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR)
+@@ -86,11 +85,11 @@
+ # Build the small Ghostscript loaders, with Gtk+ and without
+ $(GSSOC_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER)
+ $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c \
+- -L$(BINDIR) -l$(GS)
++ -L$(BINDIR) -Wl,-R$(PREFIX)/lib -l$(GS)
+
+ $(GSSOX_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER)
+ $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(PSSRC)$(SOC_LOADER) \
+- -L$(BINDIR) -l$(GS) $(SOC_LIBS)
++ -L$(BINDIR) -l$(GS) -Wl,-R$(PREFIX)/lib -l$(GS) $(SOC_LIBS)
+
+ # ------------------------- Recursive make targets ------------------------- #
+
diff --git a/print/ghostscript-gpl/patches/patch-ah b/print/ghostscript-gpl/patches/patch-ah
new file mode 100644
index 00000000000..5a25bf56cf9
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-ah
@@ -0,0 +1,35 @@
+$NetBSD: patch-ah,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+(1) First chunk to fix the X11_TYPE=native problem, which
+ freetype2 in /usr/X11R7/ is way old, and work around to
+ use ghostscript-provided freetype2.
+
+(2) Second chunk existed from old days, and no idea, sorry (mef@).
+
+--- configure.orig 2012-08-08 17:04:57.000000000 +0900
++++ configure
+@@ -3786,13 +3786,13 @@
+ ;;
+ *BSD)
+ if test $ac_cv_c_compiler_gnu = yes; then
+- CC_OPT_FLAGS_TO_TRY="-O2"
++ CC_OPT_FLAGS_TO_TRY="-O2 -I./freetype/include"
+ CC_DBG_FLAGS_TO_TRY="-g -O0"
+ fi
+ ;;
+ Darwin*)
+ if test $ac_cv_c_compiler_gnu = yes; then
+- CC_OPT_FLAGS_TO_TRY="-O2"
++ CC_OPT_FLAGS_TO_TRY="-O2 -I./freetype/include"
+ CC_DBG_FLAGS_TO_TRY="-g -O0"
+ fi
+ SET_DT_SONAME=""
+@@ -5331,7 +5331,7 @@
+ fi
+
+ if test x$with_libpaper != xno; then
+- LIBS="$LIBS -lpaper"
++ LIBS="$LIBS -L${LPLIBDIR} -Wl,-R${LPLIBDIR} -lpaper"
+
+ $as_echo "#define USE_LIBPAPER 1" >>confdefs.h
+
diff --git a/print/ghostscript-gpl/patches/patch-ai b/print/ghostscript-gpl/patches/patch-ai
new file mode 100644
index 00000000000..7e2edfd5f30
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-ai
@@ -0,0 +1,17 @@
+$NetBSD: patch-ai,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+replace BSD/Linux specific "qd" printf format specifier by "lld",
+should fix build problem on Solaris reported by Joern Clausen
+per PR pkg/40664
+
+--- base/mkromfs.c.orig 2009-02-13 12:20:54.000000000 +0100
++++ base/mkromfs.c
+@@ -1033,7 +1033,7 @@
+ #endif
+ fprintf(out,"\n#include \"stdint_.h\"\n");
+ fprintf(out,"\n#include \"time_.h\"\n\n");
+- fprintf(out," time_t gs_romfs_buildtime = %ld;\n\n", time(NULL));
++ fprintf(out," time_t gs_romfs_buildtime = %lld;\n\n", (long long)time(NULL));
+
+ /* process the remaining arguments (options interspersed with paths) */
+ for (; atarg < argc; atarg++) {
diff --git a/print/ghostscript-gpl/patches/patch-aj b/print/ghostscript-gpl/patches/patch-aj
new file mode 100644
index 00000000000..f264ca04e04
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-aj
@@ -0,0 +1,14 @@
+$NetBSD: patch-aj,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+http://bugs.ghostscript.com/show_bug.cgi?id=690883
+
+--- base/gxpcolor.h.orig 2009-09-14 10:49:17.000000000 +0200
++++ base/gxpcolor.h 2009-09-14 10:49:42.000000000 +0200
+@@ -18,6 +18,7 @@
+ #ifndef gxpcolor_INCLUDED
+ # define gxpcolor_INCLUDED
+
++#include "gxdcolor.h"
+ #include "gspcolor.h"
+ #include "gxcspace.h"
+ #include "gxdevice.h"
diff --git a/print/ghostscript-gpl/patches/patch-al b/print/ghostscript-gpl/patches/patch-al
new file mode 100644
index 00000000000..253c984e023
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-al
@@ -0,0 +1,13 @@
+$NetBSD: patch-al,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+--- base/unixlink.mak.orig 2010-02-18 12:08:31.000000000 +0000
++++ base/unixlink.mak
+@@ -50,7 +50,7 @@ $(GS_A): $(obj_tr) $(ECHOGS_XE) $(INT_AR
+ # which has limited environment space.
+ ldt_tr=$(PSOBJ)ldt.tr
+ $(GS_XE): $(ld_tr) $(ECHOGS_XE) $(XE_ALL) $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ)
+- $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) -o $(GS_XE)
++ $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) $(LDFLAGS_SO) -o $(GS_XE)
+ $(ECHOGS_XE) -a $(ldt_tr) -n -s $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) $(PSOBJ)gs.$(OBJ) -s
+ cat $(ld_tr) >>$(ldt_tr)
+ $(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) $(STDLIBS)
diff --git a/print/ghostscript-gpl/patches/patch-an b/print/ghostscript-gpl/patches/patch-an
new file mode 100644
index 00000000000..be397f18fc1
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-an
@@ -0,0 +1,22 @@
+$NetBSD: patch-an,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+Do some initialization of global stuff earlier, in particular before
+"@file" args get processed, fixes PR pkg/42984 from T. M. Pederson.
+I'm not 100% sure that this has no side effects (the initialization
+order in gs is messy and undocumented) but I haven't found any within
+some weeks of testing.
+
+--- psi/imainarg.c.orig 2011-01-13 23:37:33.000000000 +0900
++++ psi/imainarg.c 2011-03-30 16:22:08.000000000 +0900
+@@ -194,6 +194,11 @@
+ return e_Fatal;
+ }
+ }
++
++ code = gs_main_init1(minst);
++ if (code < 0)
++ return code;
++
+ while ((arg = arg_next(&args, &code)) != 0) {
+ switch (*arg) {
+ case '-':
diff --git a/print/ghostscript-gpl/patches/patch-base_gdevpng.c b/print/ghostscript-gpl/patches/patch-base_gdevpng.c
new file mode 100644
index 00000000000..6dc9148809f
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-base_gdevpng.c
@@ -0,0 +1,25 @@
+$NetBSD: patch-base_gdevpng.c,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+The patch was included in patches/patch-ak:
+ revision 1.5
+ date: 2011/01/15 14:08:10; author: wiz; state: Exp; lines: +194 -29
+ Fix build with png-1.5. Patch from John Bowler in private mail.
+
+ and 'fix for build with png-1.5' is now included in upstream in different
+ shape, so some left out is here:
+
+--- base/gdevpng.c.orig 2011-08-05 20:12:20.000000000 +0900
++++ base/gdevpng.c 2011-08-22 19:04:12.000000000 +0900
+@@ -40,8 +40,11 @@
+ /*
+ * libpng versions 1.0.3 and later allow disabling access to the stdxxx
+ * files while retaining support for FILE * I/O.
++ *
++ * This is a misunderstanding - this is a build time option for libpng,
++ * it has no effect on a user of libpng.
+ */
+-#define PNG_NO_CONSOLE_IO
++/*#define PNG_NO_CONSOLE_IO*/
+ /*
+ * Earlier libpng versions require disabling FILE * I/O altogether.
+ * This produces a compiler warning about no prototype for png_init_io.
diff --git a/print/ghostscript-gpl/patches/patch-base_gserrors_h b/print/ghostscript-gpl/patches/patch-base_gserrors_h
new file mode 100644
index 00000000000..9c28a432d29
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-base_gserrors_h
@@ -0,0 +1,15 @@
+$NetBSD: patch-base_gserrors_h,v 1.1 2013/03/16 21:32:01 dholland Exp $
+# This suppresses the noisy warning that __func__ redefined
+
+--- base/gserrors.h.orig 2012-02-08 17:48:48.000000000 +0900
++++ base/gserrors.h 2012-03-24 07:26:35.000000000 +0900
+@@ -53,6 +53,9 @@
+ #define return_error(err) return gs_note_error(err)
+
+ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
++# if (defined(__func__))
++# undef __func__
++# endif
+ # if defined(__GNUC__) && __GNUC__ >= 2
+ # define __func__ __FUNCTION__
+ # elif defined(__FUNCTION__)
diff --git a/print/ghostscript-gpl/patches/patch-configure.ac b/print/ghostscript-gpl/patches/patch-configure.ac
new file mode 100644
index 00000000000..6d241bb9f3c
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-configure.ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure.ac,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+See patch-ah (configure)
+
+--- base/configure.ac.orig 2011-08-05 20:12:20.000000000 +0900
++++ base/configure.ac 2011-08-22 19:10:30.000000000 +0900
+@@ -404,7 +404,7 @@
+ fi
+
+ if test x$with_libpaper != xno; then
+- LIBS="$LIBS -lpaper"
++ LIBS="$LIBS -L${LPLIBDIR} -Wl,-R${LPLIBDIR} -lpaper"
+ AC_DEFINE(USE_LIBPAPER, 1, [Using libpaper])
+ CFLAGS="$CFLAGS -DUSE_LIBPAPER"
+ fi
diff --git a/print/ghostscript-gpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h b/print/ghostscript-gpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h
new file mode 100644
index 00000000000..4106c689b12
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h
@@ -0,0 +1,19 @@
+$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.1 2013/03/16 21:32:01 dholland Exp $
+
+To avoid following problem:
+| gcc .. (omitted).. g -o ./sobin/gsc ./psi/dxmainc.c \
+| -L./sobin -Wl,-R/usr/pkg/lib -lgs
+| ./sobin/libgs.so: undefined reference to `memalign'
+| gmake[2]: *** [sobin/gsc] Error 1
+
+--- openjpeg/libopenjpeg/opj_malloc.h.orig 2012-04-18 22:36:57.000000000 +0900
++++ openjpeg/libopenjpeg/opj_malloc.h 2012-04-18 22:54:13.000000000 +0900
+@@ -84,7 +84,7 @@
+ #if defined(__sun)
+ #define HAVE_MEMALIGN
+ /* Linux x86_64 and OSX always align allocations to 16 bytes */
+- #elif !defined(__amd64__) && !defined(__APPLE__)
++ #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
+ #define HAVE_MEMALIGN
+ #include <malloc.h>
+ #endif