Update gnu ghostscript to 7.05, now that this is free.

Compared to AFPL ghostscript 7.00, main difference is some CJK support
(currently untested, needs keyed CJK fonts).
This commit is contained in:
espie 2002-12-03 13:17:07 +00:00
parent 96daa31089
commit 13a59e439f
9 changed files with 134 additions and 73 deletions

View File

@ -1,24 +1,23 @@
# $OpenBSD: Makefile,v 1.28 2002/10/28 13:40:41 naddy Exp $
# $OpenBSD: Makefile,v 1.29 2002/12/03 13:17:07 espie Exp $
COMMENT="GNU PostScript interpreter"
VERSION= 6.51
VERSION= 7.05
DISTNAME= ghostscript-${VERSION}
CATEGORIES= print lang
NEED_VERSION= 1.525
DIR= gnu/gs${VERSION:S/.//}
MASTER_SITES= ${GS_SITES} ${MASTER_SITE_GNU:=ghostscript/}
MASTER_SITES1= ${MASTER_SITE_GNU:=ghostscript/}
MASTER_SITES2= ${PDF_SITES}
MASTER_SITES= ${GS_SITES}
MASTER_SITES1= ${PDF_SITES}
HOMEPAGE= http://www.cs.wisc.edu/~ghost/
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD}:1 pdf_sec.ps:2
DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} pdf_sec.ps:1
SUBST_VARS= OSREV VERSION
DIST_SUBDIR= gs
# GPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
@ -34,7 +33,7 @@ LIB_DEPENDS= png.2::${PNGDIR}
EXTRACT_ONLY= ${GS_SOURCES}
WRKDIST= ${WRKDIR}/ghostscript-${VERSION}
#WRKDIST= ${WRKDIR}/gs${VERSION}
WRKSRC= ${WRKDIST}/src
WRKBUILD= ${WRKDIST}
BASE_FLAGS= INSTALL_PROGRAM='${INSTALL_SCRIPT}' \
@ -54,7 +53,7 @@ BASE_FLAGS= INSTALL_PROGRAM='${INSTALL_SCRIPT}' \
PDFDIR=share/ghostscript/${VERSION}/lib
BASE_FLAGS+= DEVICE_DEVS='\
BASE_FLAGS+= DEVICE_DEVS1='\
$$(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)cljet5.dev $$(DD)deskjet.dev \
@ -100,52 +99,74 @@ $$(DD)mgr4.dev $$(DD)mgr8.dev $$(DD)sgirgb.dev'
MAKE_FLAGS= ${BASE_FLAGS} prefix=${PREFIX}
MAKE_FILE= src/unixansi.mak
#MAKE_FILE= src/unix-gcc.mak
GS_SOURCES= ghostscript-${VERSION}.tar.gz
# Note: the following two are real files that have symlinks with
# later version numbers pointing to them. To avoid unnecessarily
# downloading distfiles, do not change these when upgrading the port
# unless the files really change.
GS_FONTS_STD= gnu-gs-fonts-std-6.0.tar.gz
# Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
HP850_DRV= hp8xxs13.zip
GS_FONTS_STD= ghostscript-fonts-std-6.0.tar.gz
ALL_TARGET= all
INSTALL_TARGET= install
# The pdf_sec.ps non-stub version has been moved to a separate package
FLAVORS=A4
FLAVOR?=
FLAVORS=A4 gtk
.if ${FLAVOR:U} == "A4"
FLAVOR?=
.if ${FLAVOR:U:MA4}
CFLAGS+= -DA4
.endif
.if ${FLAVOR:L:Mgtk}
LIB_DEPENDS+= gtk.1::x11/gtk+
ALL_TARGET+=so
INSTALL_TARGET+=soinstall
NOT_FOR_ARCHS=${NO_SHARED_ARCHS}
MAKE_FLAGS += EXTRALIBS="-L${X11BASE}/lib -lXt -lSM -lICE -lXext -lX11 -L${LOCALBASE}/lib -lpng"
.else
end_install=
.endif
NO_REGRESS= Yes
FAKE_FLAGS=${BASE_FLAGS} \
prefix=${WRKINST}${PREFIX} \
man1dir=${WRKINST}${PREFIX}/man/man1
FAKE_FLAGS=${BASE_FLAGS} prefix=${WRKINST}${PREFIX}
post-extract:
ln -s ${WRKDIR}/${JPEGDIR}/jpeg* ${WRKDIST}/jpeg
ln -s ${WRKDIR}/${PNGDIR}/libpng* ${WRKDIST}/libpng
# Sloppy gnu guys don't clean up. Why am I not surprised ?
rm -f ${WRKSRC}/{zfileio.c,gdevx.c}.orig
do-configure:
cd ${WRKBUILD} && ln -s ${WRKSRC}/unix-gcc.mak Makefile
pre-build:
mkdir -p ${WRKBUILD}/objects
mkdir -p ${WRKBUILD}/bin
mkdir -p ${WRKDIST}/objects
mkdir -p ${WRKDIST}/bin
mkdir -p ${WRKDIST}/soobj
mkdir -p ${WRKDIST}/sobin
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/ghostscript
${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
@${INSTALL_DATA_DIR} ${PREFIX}/share/ghostscript
@${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
@${INSTALL_MAN_DIR} ${PREFIX}/man/man1
cd ${PREFIX}/share/ghostscript && \
tar xzf ${FULLDISTDIR}/${GS_FONTS_STD}
post-install:
@strip ${PREFIX}/bin/gs
strip ${PREFIX}/bin/gs
cd ${PREFIX}/man/man1 && \
ln -sf ps2ps.1 eps2eps.1 && \
ln -sf gslp.1 gsbj.1 && \
ln -sf gslp.1 gsdj.1 && \
ln -sf gslp.1 gsdj500.1 && \
ln -sf gslp.1 gslj.1 && \
ln -sf ps2pdf.1 ps2pdf12.1 && \
ln -sf ps2pdf.1 ps2pdf13.1
cd ${PREFIX}/man/de/man1 && \
ln -sf ps2pdf.1 ps2pdf12.1 && \
ln -sf ps2pdf.1 ps2pdf13.1 && \
ln -sf ps2ps.1 eps2eps.1
${INSTALL_DATA} ${FULLDISTDIR}/pdf_sec.ps ${PREFIX}/${PDFDIR}
.include <bsd.port.mk>

View File

@ -1,9 +1,9 @@
MD5 (gs/ghostscript-6.51.tar.gz) = be4723a485b15c30999d4a833eec98c5
MD5 (gs/gnu-gs-fonts-std-6.0.tar.gz) = 1521fab85ca3e8ce3ce781d4970e6c79
MD5 (gs/ghostscript-7.05.tar.gz) = 1ba0e5b1c9327bcd775716c082688c8d
MD5 (gs/ghostscript-fonts-std-6.0.tar.gz) = 8250132d6fcc6eb1419f505f06c7690b
MD5 (gs/pdf_sec.ps) = 92cd6af5b4d7219e91e61b8351f0f7c4
RMD160 (gs/ghostscript-6.51.tar.gz) = 4f8209562b0dae1d3a132194db5c66d46a0b831d
RMD160 (gs/gnu-gs-fonts-std-6.0.tar.gz) = 5d5fe14cd8700e24ef4c11ab4728114a03e23ee8
RMD160 (gs/ghostscript-7.05.tar.gz) = a0963201c1ca473aa1c2897de99415092e72da53
RMD160 (gs/ghostscript-fonts-std-6.0.tar.gz) = 817e5e01f92bb509d7a75ffc6508185eae71f14d
RMD160 (gs/pdf_sec.ps) = efb8e01a8fb6a99d8635d35360578c45a7c1c2e9
SHA1 (gs/ghostscript-6.51.tar.gz) = bc0fce6c751341efa8291c367a0d811aae3402b0
SHA1 (gs/gnu-gs-fonts-std-6.0.tar.gz) = cdad2f3752c513fe1cfb0eeaf6661753e2cc182c
SHA1 (gs/ghostscript-7.05.tar.gz) = 75e327e47cde76e501b56ae465231a4c0fd3f827
SHA1 (gs/ghostscript-fonts-std-6.0.tar.gz) = a990603330ac08ebb85624a695a6658ffcebfa8f
SHA1 (gs/pdf_sec.ps) = e185f12cb8764ce2d7d32931c6dbd5e05df8722f

View File

@ -1 +0,0 @@
x11.dev x11alpha.dev x11cmyk.dev x11cmyk2.dev x11cmyk4.dev x11cmyk8.dev x11gray2.dev x11gray4.dev x11mono.dev cljet5.dev deskjet.dev djet500.dev laserjet.dev ljet2p.dev ljet3.dev ljet3d.dev ljet4.dev ljetplus.dev lj5mono.dev lj5gray.dev lp2563.dev oce9050.dev faxg3.dev faxg32d.dev faxg4.dev tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev epswrite.dev pdfwrite.dev pswrite.dev pxlmono.dev pxlcolor.dev bit.dev bitrgb.dev bitcmyk.dev bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev cgmmono.dev cgm8.dev cgm24.dev jpeg.dev jpeggray.dev miff24.dev pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev pkm.dev pkmraw.dev plan9bm.dev pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev psmono.dev psgray.dev psrgb.dev tiff12nc.dev tiff24nc.dev tifflzw.dev tiffpack.dev sxlcrt.dev ap3250.dev appledmp.dev bj10e.dev bj200.dev bjc600.dev bjc800.dev ccr.dev cdeskjet.dev cdjcolor.dev cdjmono.dev cdj500.dev cdj550.dev cdj850.dev cdj670.dev cdj890.dev cdj1600.dev cp50.dev declj250.dev djet500c.dev dnj650c.dev epson.dev eps9mid.dev eps9high.dev epsonc.dev hl7x0.dev ibmpro.dev imagen.dev iwhi.dev iwlo.dev iwlq.dev jetp3852.dev la50.dev la70.dev la75.dev la75plus.dev lbp8.dev lips3.dev ln03.dev lj250.dev lj4dith.dev lp8000.dev lq850.dev m8510.dev necp6.dev oki182.dev okiibm.dev paintjet.dev pj.dev pjetxl.dev pjxl.dev pjxl300.dev r4081.dev sj48.dev st800.dev stcolor.dev t4693d2.dev t4693d4.dev t4693d8.dev tek4696.dev uniprint.dev xes.dev dfaxhigh.dev dfaxlow.dev cif.dev inferno.dev mgrmono.dev mgrgray2.dev mgrgray4.dev mgrgray8.dev mgr4.dev mgr8.dev sgirgb.dev

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-lib_gs_init_ps,v 1.1 2001/07/03 15:38:27 espie Exp $
--- lib/gs_init.ps.orig Tue Jun 5 09:42:40 2001
+++ lib/gs_init.ps Tue Jul 3 17:09:58 2001
@@ -1799,3 +1799,7 @@ WRITESYSTEMDICT not { systemdict readonl
(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

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-lib_ps2epsi,v 1.1 2001/09/06 18:10:24 espie Exp $
--- lib/ps2epsi.orig Thu Sep 6 20:03:59 2001
+++ lib/ps2epsi Thu Sep 6 20:04:05 2001
@@ -62,7 +62,7 @@ save countdictstack mark newpath /showpa
BEGINEPS
cat ${infile} |
-sed -e '/^%%BeginPreview:/,/^%%EndPreview[^!-~]*$/d' -e '/^%!PS-Adobe/d'\
+sed -e '/^%%BeginPreview:/,/^%%EndPreview[^!-~]*$/d' -e '/^%!PS-Adobe/d' \
-e '/^%%[A-Za-z][A-Za-z]*[^!-~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
cat << ENDEPS

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-src_spprint_h,v 1.1 2001/07/03 15:38:27 espie Exp $
--- src/spprint.h.orig Tue Jul 3 17:12:49 2001
+++ src/spprint.h Tue Jul 3 17:16:37 2001
@@ -32,6 +32,7 @@ typedef struct stream_s stream;
/* Put a character on a stream. */
#define pputc(s, c) spputc(s, c)
+#define pwrite gs_pwrite
/* Put a byte array on a stream. */
int pwrite(P3(stream * s, const void *ptr, uint count));

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_unix-dll_mak,v 1.1 2002/12/03 13:17:07 espie Exp $
--- src/unix-dll.mak.orig Tue Dec 3 13:25:33 2002
+++ src/unix-dll.mak Tue Dec 3 13:37:36 2002
@@ -70,7 +70,7 @@ $(GSSOX_XE): $(GS_SO) $(GLSRC)dxmain.c
$(GLCC) -g `gtk-config --cflags` -o $(GSSOX_XE) $(GLSRC)dxmain.c -L$(BINDIR) -l$(GS) `gtk-config --libs`
$(GSSOC_XE): $(GS_SO) $(GLSRC)dxmainc.c
- $(GLCC) -g -o $(GSSOC_XE) $(GLSRC)dxmainc.c -L$(BINDIR) -l$(GS)
+ $(GLCC) -g -o $(GSSOC_XE) $(GLSRC)dxmainc.c -L$(BINDIR) -l$(GS) $(EXTRALIBS)
# ------------------------- Recursive make targets ------------------------- #

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.gtk,v 1.1 2002/12/03 13:17:07 espie Exp $
bin/gsx
bin/gsc
lib/libgs.so.${VERSION}
DYNLIBDIR(%D/lib)

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.3 2001/07/03 15:38:27 espie Exp $
@comment $OpenBSD: PLIST,v 1.4 2002/12/03 13:17:07 espie Exp $
%%gtk%%
bin/bdftops
bin/dvipdf
bin/eps2eps
@ -24,12 +25,33 @@ 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
man/de/man1/ansi2knr.1
man/de/man1/dvipdf.1
man/de/man1/eps2eps.1
man/de/man1/font2c.1
man/de/man1/gsbj.1
man/de/man1/gsdj.1
man/de/man1/gsdj500.1
man/de/man1/gslj.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
@ -54,14 +76,18 @@ man/man1/ps2pdf13.1
man/man1/ps2pdfwr.1
man/man1/ps2ps.1
man/man1/wftopfa.1
share/ghostscript/${VERSION}/doc/API.htm
share/ghostscript/${VERSION}/doc/Bug-form.htm
share/ghostscript/${VERSION}/doc/Bug-info.htm
share/ghostscript/${VERSION}/doc/C-style.htm
share/ghostscript/${VERSION}/doc/CJK.htm
share/ghostscript/${VERSION}/doc/CJKTTCID.htm
share/ghostscript/${VERSION}/doc/Changes.htm
share/ghostscript/${VERSION}/doc/Commprod.htm
share/ghostscript/${VERSION}/doc/Copying.htm
share/ghostscript/${VERSION}/doc/Current.htm
share/ghostscript/${VERSION}/doc/DLL.htm
share/ghostscript/${VERSION}/doc/Develop.htm
share/ghostscript/${VERSION}/doc/Devices.htm
share/ghostscript/${VERSION}/doc/Drivers.htm
share/ghostscript/${VERSION}/doc/Fonts.htm
@ -73,16 +99,19 @@ share/ghostscript/${VERSION}/doc/History3.htm
share/ghostscript/${VERSION}/doc/History4.htm
share/ghostscript/${VERSION}/doc/History5.htm
share/ghostscript/${VERSION}/doc/History6.htm
share/ghostscript/${VERSION}/doc/History7.htm
share/ghostscript/${VERSION}/doc/Htmstyle.htm
share/ghostscript/${VERSION}/doc/Humor.htm
share/ghostscript/${VERSION}/doc/Install.htm
share/ghostscript/${VERSION}/doc/Issues.htm
share/ghostscript/${VERSION}/doc/Language.htm
share/ghostscript/${VERSION}/doc/Lib.htm
share/ghostscript/${VERSION}/doc/Maintain.htm
share/ghostscript/${VERSION}/doc/Make.htm
share/ghostscript/${VERSION}/doc/New-user.htm
share/ghostscript/${VERSION}/doc/News.htm
share/ghostscript/${VERSION}/doc/PUBLIC
share/ghostscript/${VERSION}/doc/Projects.htm
share/ghostscript/${VERSION}/doc/Ps-style.htm
share/ghostscript/${VERSION}/doc/Ps2epsi.htm
share/ghostscript/${VERSION}/doc/Ps2pdf.htm
share/ghostscript/${VERSION}/doc/Psfiles.htm
@ -95,9 +124,19 @@ share/ghostscript/${VERSION}/doc/Tester.htm
share/ghostscript/${VERSION}/doc/Unix-lpr.htm
share/ghostscript/${VERSION}/doc/Use.htm
share/ghostscript/${VERSION}/doc/Xfonts.htm
share/ghostscript/${VERSION}/doc/gs.css
share/ghostscript/${VERSION}/doc/index.html
share/ghostscript/${VERSION}/examples/alphabet.ps
share/ghostscript/${VERSION}/examples/cheq.ps
share/ghostscript/${VERSION}/examples/chess.ps
share/ghostscript/${VERSION}/examples/cjk/all_ac1.ps
share/ghostscript/${VERSION}/examples/cjk/all_ag1.ps
share/ghostscript/${VERSION}/examples/cjk/all_aj1.ps
share/ghostscript/${VERSION}/examples/cjk/all_aj2.ps
share/ghostscript/${VERSION}/examples/cjk/all_ak1.ps
share/ghostscript/${VERSION}/examples/cjk/gscjk_ac.ps
share/ghostscript/${VERSION}/examples/cjk/gscjk_ag.ps
share/ghostscript/${VERSION}/examples/cjk/gscjk_aj.ps
share/ghostscript/${VERSION}/examples/cjk/gscjk_ak.ps
share/ghostscript/${VERSION}/examples/cjk/iso2022.ps
share/ghostscript/${VERSION}/examples/colorcir.ps
share/ghostscript/${VERSION}/examples/doretree.ps
share/ghostscript/${VERSION}/examples/escher.ps
@ -108,6 +147,18 @@ share/ghostscript/${VERSION}/examples/snowflak.ps
share/ghostscript/${VERSION}/examples/tiger.ps
share/ghostscript/${VERSION}/examples/vasarely.ps
share/ghostscript/${VERSION}/examples/waterfal.ps
share/ghostscript/${VERSION}/lib/CIDFnmap
share/ghostscript/${VERSION}/lib/CIDFnmap.ARP
share/ghostscript/${VERSION}/lib/CIDFnmap.Bae
share/ghostscript/${VERSION}/lib/CIDFnmap.CJK
share/ghostscript/${VERSION}/lib/CIDFnmap.Koc
share/ghostscript/${VERSION}/lib/CIDFnmap.Ore
share/ghostscript/${VERSION}/lib/CIDFnmap.Sol
share/ghostscript/${VERSION}/lib/CIDFnmap.Win
share/ghostscript/${VERSION}/lib/CIDFnmap.b5
share/ghostscript/${VERSION}/lib/CIDFnmap.gb
share/ghostscript/${VERSION}/lib/CIDFnmap.ksx
share/ghostscript/${VERSION}/lib/CIDFnmap.sj
share/ghostscript/${VERSION}/lib/Fontmap
share/ghostscript/${VERSION}/lib/Fontmap.GS
share/ghostscript/${VERSION}/lib/acctest.ps
@ -172,6 +223,7 @@ share/ghostscript/${VERSION}/lib/gs_epsf.ps
share/ghostscript/${VERSION}/lib/gs_fform.ps
share/ghostscript/${VERSION}/lib/gs_fonts.ps
share/ghostscript/${VERSION}/lib/gs_frsd.ps
share/ghostscript/${VERSION}/lib/gs_icc.ps
share/ghostscript/${VERSION}/lib/gs_il1_e.ps
share/ghostscript/${VERSION}/lib/gs_il2_e.ps
share/ghostscript/${VERSION}/lib/gs_init.ps
@ -269,6 +321,9 @@ share/ghostscript/${VERSION}/lib/stc2.upp
share/ghostscript/${VERSION}/lib/stc200_h.upp
share/ghostscript/${VERSION}/lib/stc2_h.upp
share/ghostscript/${VERSION}/lib/stc2s_h.upp
share/ghostscript/${VERSION}/lib/stc300.upp
share/ghostscript/${VERSION}/lib/stc300bl.upp
share/ghostscript/${VERSION}/lib/stc300bm.upp
share/ghostscript/${VERSION}/lib/stc500p.upp
share/ghostscript/${VERSION}/lib/stc500ph.upp
share/ghostscript/${VERSION}/lib/stc600ih.upp
@ -411,7 +466,10 @@ share/ghostscript/fonts/z003034l.pfb
share/ghostscript/fonts/z003034l.pfm
@dirrm share/ghostscript/fonts
@dirrm share/ghostscript/${VERSION}/lib
@dirrm share/ghostscript/${VERSION}/examples/cjk
@dirrm share/ghostscript/${VERSION}/examples
@dirrm share/ghostscript/${VERSION}/doc
@dirrm share/ghostscript/${VERSION}
@dirrm share/ghostscript
@dirrm man/de/man1
@dirrm man/de