diff options
author | naddy <naddy@FreeBSD.org> | 2003-06-08 10:38:06 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2003-06-08 10:38:06 +0800 |
commit | 40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5 (patch) | |
tree | f054cbeda3f9b6410c423ef678202a288636588c /print | |
parent | f419319cd646bfd901db16e4bd346f7281b5e35d (diff) | |
download | freebsd-ports-gnome-40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5.tar.gz freebsd-ports-gnome-40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5.tar.zst freebsd-ports-gnome-40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5.zip |
- Add drivers for Lexmark printers.
- Add option to use SVGAlib console driver.
PR: 52479
Submitted by: Ports Fury
Diffstat (limited to 'print')
60 files changed, 891 insertions, 993 deletions
diff --git a/print/ghostscript-afpl/Makefile b/print/ghostscript-afpl/Makefile index fe25669f2a38..14d528db12cd 100644 --- a/print/ghostscript-afpl/Makefile +++ b/print/ghostscript-afpl/Makefile @@ -7,7 +7,7 @@ PORTNAME= ghostscript PORTVERSION= ${GS_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gs_fonts,bjc250/} \ http://hp.sourceforge.net/:hp2200 \ @@ -20,7 +20,9 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gs_fonts,bjc250/} \ http://www.epkowa.on.arena.ne.jp/pips/data/V306/:eplaser \ http://www.hi.is.uec.ac.jp/~osamuw/gdevnpdl/:npdl \ http://www.linuxprinting.org/download/printing/samsung-gdi/:gdi \ - ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts \ + http://www.linuxprinting.org/download/printing/:lxm3200 \ + http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \ + ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:gs_fonts \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs${GS_VERSION:S/.//}/:gs_srcs MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,gs_fonts,ports_jp_gs \ bjc250gs/:bjc250 \ @@ -37,17 +39,20 @@ DISTFILES= ${GS_SRCS}:gs_srcs \ ${BJC250_SRCS}:bjc250 \ ${CPCA_SRCS}:cpca \ ${LIPS_SRCS}:lips \ - ${DMPRT_SRCS}:ports_jp_gs \ ${EPAG_SRCS}:epag \ ${EPLASER_SRCS}:eplaser \ ${MJC_SRCS}:ports_jp \ ${NPDL_SRCS}:npdl \ - ${GDI_SRCS}:gdi + ${GDI_SRCS}:gdi \ + ${LXM3200_SRCS}:lxm3200 \ + ${LX5000_SRCS}:lx5000 \ + ${LEX7000_SRCS}:lx5000 + DIST_SUBDIR= ghostscript EXTRACT_ONLY= ${GS_SRCS} MAINTAINER= ports@FreeBSD.org -COMMENT= AFPL Postscript interpreter version 7 +COMMENT= AFPL Postscript interpreter LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png @@ -59,10 +64,11 @@ USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= yes MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \ - XCFLAGS="${XCFLAGS}" WITHOUT_X11="${WITHOUT_X11}" -PLIST_SUB= GS_VERSION=${GS_VERSION} + XCFLAGS="${XCFLAGS}" +PLIST_SUB= GS_VERSION="${GS_VERSION}" -SCRIPTS_ENV= GS_OPTIONS="${GS_OPTIONS}" WITHOUT_X11="${WITHOUT_X11}" +SCRIPTS_ENV= GS_OPTIONS="${GS_OPTIONS}" WITHOUT_X11="${WITHOUT_X11}" \ + WITH_SVGALIB="${WITH_SVGALIB}" MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 pdf2dsc.1 pdf2ps.1 \ pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 ps2ascii.1 \ @@ -87,6 +93,10 @@ PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11 USE_XLIB= yes .endif +.if defined(WITH_SVGALIB) +LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib +.endif + .if defined(WITH_SHLIB) .undef WITHOUT_X11 USE_GNOME= gtk12 @@ -159,12 +169,6 @@ LIPS_VERS= 2.4.0 LIPS_NAME= gdevlips-${LIPS_VERS} LIPS_SRCS= ${LIPS_NAME}.tar.gz -# DMPRT - additional driver for generic dot matrix printers -DMPRT= dmprt -DMPRT_VERS= 2.01 -DMPRT_NAME= ${DMPRT}-${DMPRT_VERS} -DMPRT_SRCS= ${DMPRT_NAME}.tar.gz - # EPAG - additional driver for Epson ESC/Page printers # http://www.humblesoft.com/gdevepag.html EPAG= epag @@ -196,10 +200,27 @@ GDI= gdi GDI_NAME= Samsung-SmartGDI-all-GS GDI_SRCS= ${GDI_NAME}.tar.gz +# LXM3200 - additional driver for Lexmark 3200/Z12/Z22/Z31/Z32 +LXM3200= lxm3200 +LXM3200_VERS= 20030501 +LXM3200_NAME= ${LXM3200}-tweaked-${LXM3200_VERS} +LXM3200_SRCS= ${LXM3200_NAME}.tar.gz + +# LX5000 - additional driver for Lexmark 5000/Z51/Z82 +# http://homepage.powerup.com.au/~pbwest/lexmark/lexmark.html +LX5000= lx5000 +LX5000_SRCS= gdevlx50.c + +# LEX7000 - additional driver for Lexmark 2050/3200/5700/7000 +# http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/ +LEX7000= lex7000 +LEX7000_SRCS= gs6.0.lexmark7000.patch + # contributed uniprint profiles CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp +.include <bsd.port.pre.mk> .SILENT: pre-everything:: @@ -249,9 +270,6 @@ post-extract: ${ECHO_MSG} ">>> extracting ${LIPS_SRCS} ..." ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LIPS_SRCS} ${LN} -sf ${LIPS_NAME} ${WRKSRC}/${LIPS} -# for DMPRT driver - ${ECHO_MSG} ">>> extracting ${DMPRT_SRCS} ..." - ${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${DMPRT_SRCS} # for EPAG driver ${ECHO_MSG} ">>> extracting ${EPAG_SRCS} ..." ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPAG_SRCS} @@ -269,18 +287,25 @@ post-extract: # for GDI driver ${ECHO_MSG} ">>> extracting ${GDI_SRCS} ..." ${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${GDI_SRCS} +# for LXM3200 driver + ${ECHO_MSG} ">>> extracting ${LXM3200_SRCS} ..." + ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LXM3200_SRCS} + ${LN} -sf ${LXM3200_NAME} ${WRKSRC}/${LXM3200} +# for LX5000 driver + ${ECHO_MSG} ">>> extracting ${LX5000_SRCS} ..." + ${CP} ${DISTDIR}/${DIST_SUBDIR}/${LX5000_SRCS} ${WRKSRC}/src +# for LEX7000 driver + ${ECHO_MSG} ">>> extracting ${LEX7000_SRCS} ..." + ${MKDIR} ${WRKSRC}/${LEX7000} + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${LEX7000_SRCS} | \ + ${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \ + 2>/dev/null || ${TRUE} post-patch: ${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \ ${WRKSRC}/src/unix-gcc.mak ${REINPLACE_CMD} -e 's|\. de|\.|g' \ ${WRKSRC}/src/unixinst.mak - ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \ - ${WRKSRC}/lib/gs_res.ps -# for DMPRT driver - ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \ - s|%%GS_VERSION%%|${GS_VERSION}|g' \ - ${WRKSRC}/src/dmp_site.ps # here we apply the modifications necessary to build the 3rd party drivers # advantage: you see unmodified makefiles after a pure make extract @@ -318,10 +343,6 @@ pre-configure: ${ECHO_MSG} ">>> adding ${LIPS} driver to contrib.mak ..." ${CAT} ${WRKSRC}/${LIPS_NAME}/gdevlips.mak \ >> ${WRKSRC}/src/contrib.mak -# for DMPRT driver - ${ECHO_MSG} ">>> adding ${DMPRT} driver to contrib.mak ..." - ${CAT} ${WRKSRC}/src/gdevdmpr.mak \ - >> ${WRKSRC}/src/contrib.mak # for EPAG driver ${ECHO_MSG} ">>> adding ${EPAG} driver to contrib.mak ..." ${SED} -e 's:npdl:epag:g' ${WRKSRC}/${NPDL_NAME}/gdevnpdl.mak \ @@ -344,6 +365,18 @@ pre-configure: ${ECHO_MSG} ">>> adding ${GDI} driver to contrib.mak ..." ${CAT} ${WRKSRC}/src/smartgdi-contrib.mak \ >> ${WRKSRC}/src/contrib.mak +# for LXM3200 driver + ${ECHO_MSG} ">>> adding ${LXM3200} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lxm3200.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak +# for LX5000 driver + ${ECHO_MSG} ">>> adding ${LX5000} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lx5000.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak +# for LEX7000 driver + ${ECHO_MSG} ">>> adding ${LEX7000} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lex7000.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak pre-build: ${ECHO_MSG} ">>> in pre-build ..." @@ -404,6 +437,16 @@ pre-build: .for i in gdevnpdl.c ${LN} -sf ${WRKSRC}/${NPDL_NAME}/${i} ${WRKSRC}/src .endfor +# for LXM3200 driver + ${ECHO_MSG} ">>> creating symlinks for ${LXM3200} ..." +.for i in gdevlx32.c + ${LN} -sf ${WRKSRC}/${LXM3200_NAME}/${i} ${WRKSRC}/src +.endfor +# for LEX7000 driver + ${ECHO_MSG} ">>> creating symlinks for ${LEX7000} ..." +.for i in gdevlx7.c + ${LN} -sf ${WRKSRC}/${LEX7000}/src/${i} ${WRKSRC}/src +.endfor pre-install: ${ECHO_MSG} ">>> in pre-install ..." @@ -423,12 +466,6 @@ post-install: .else ${STRIP_CMD} ${PREFIX}/bin/gs .endif -# for DMPRT driver - ${ECHO_MSG} ">>> installing ${DMPRT} resources ..." -.for i in dmp_init.ps dmp_site.ps escp_24.src - ${INSTALL_DATA} ${WRKSRC}/src/${i} \ - ${DATADIR}/${GS_VERSION}/lib -.endfor # for EPAG driver ${ECHO_MSG} ">>> installing ${EPAG} utility in bindir ..." ${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin @@ -472,13 +509,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/${LIPS_NAME}/${i} \ ${DOCSDIR}/${GS_VERSION}/${LIPS} .endfor -# for DMPRT driver - ${ECHO_MSG} ">>> installing ${DMPRT} docs ..." - ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${DMPRT} -.for i in gdevdmpr.sj - ${INSTALL_DATA} ${WRKSRC}/src/${i} \ - ${DOCSDIR}/${GS_VERSION}/${DMPRT} -.endfor # for EPAG driver ${ECHO_MSG} ">>> installing ${EPAG} docs ..." ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${EPAG} @@ -518,8 +548,15 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/src/${i} \ ${DOCSDIR}/${GS_VERSION}/${GDI} .endfor +# for LXM3200 driver + ${ECHO_MSG} ">>> installing ${LXM3200} docs ..." + ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${LXM3200} +.for i in README RELEASE_NOTES Z12-Z31-QuickSetup + ${INSTALL_DATA} ${WRKSRC}/${LXM3200_NAME}/${i} \ + ${DOCSDIR}/${GS_VERSION}/${LXM3200} +.endfor .endif ${ECHO_MSG} "> post-installation tasks completed." .include "Makefile.inc" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/print/ghostscript-afpl/Makefile.inc b/print/ghostscript-afpl/Makefile.inc index cf63422dcf01..d980e2905804 100644 --- a/print/ghostscript-afpl/Makefile.inc +++ b/print/ghostscript-afpl/Makefile.inc @@ -1,4 +1,4 @@ # $FreeBSD$ -GS_VERSION= 8.00 +GS_VERSION= 8.10 diff --git a/print/ghostscript-afpl/distinfo b/print/ghostscript-afpl/distinfo index 9cf385b82519..46973a1229d7 100644 --- a/print/ghostscript-afpl/distinfo +++ b/print/ghostscript-afpl/distinfo @@ -1,4 +1,4 @@ -MD5 (ghostscript/ghostscript-8.00.tar.bz2) = f87b74758f8e73f899f0b3654e5887b1 +MD5 (ghostscript/ghostscript-8.10.tar.bz2) = fe2817648951839741cbfa48f7bf76de MD5 (ghostscript/ghostscript-fonts-std-6.0.tar.gz) = 8250132d6fcc6eb1419f505f06c7690b MD5 (ghostscript/ghostscript-fonts-other-6.0.tar.gz) = 1a643ae62ef166562e4d422b1a601272 MD5 (ghostscript/gs-hp2200.tar.gz) = cafe60c0003abe370579f9bfb1d27caa @@ -15,3 +15,6 @@ MD5 (ghostscript/eplaser-3.0.6-652.tgz) = a575b9f3424d0a9ab6fbb5619429a8fd MD5 (ghostscript/gdevmjc-0.8.tar.gz) = 228f41c3cccce22c8f477c7a9407527c MD5 (ghostscript/gdevnpdl-1.6.3.tar.gz) = 6c8dad13d07bbaf6e951d6d2d6b8a9f2 MD5 (ghostscript/Samsung-SmartGDI-all-GS.tar.gz) = e6963f6c9460a964fe57d38479bbdd41 +MD5 (ghostscript/lxm3200-tweaked-20030501.tar.gz) = 0f88082030c6eb66a95804a6cc9b9e6b +MD5 (ghostscript/gdevlx50.c) = 081e355c866316a56fbbff5b59f2b7cf +MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de diff --git a/print/ghostscript-afpl/files/lex7000.contrib.mak b/print/ghostscript-afpl/files/lex7000.contrib.mak new file mode 100644 index 000000000000..a5f1a162b785 --- /dev/null +++ b/print/ghostscript-afpl/files/lex7000.contrib.mak @@ -0,0 +1,21 @@ +# ------ The Lexmark 5700 and 7000 devices ------ # + +lex7000_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex7000.dev: $(lex7000_) $(DD)page.dev + $(SETPDEV) $(DD)lex7000 $(lex7000_) + +lex5700_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex5700.dev: $(lex5700_) $(DD)page.dev + $(SETPDEV) $(DD)lex5700 $(lex5700_) + +lex3200_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex3200.dev: $(lex3200_) $(DD)page.dev + $(SETPDEV) $(DD)lex3200 $(lex3200_) + +lex2050_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex2050.dev: $(lex2050_) $(DD)page.dev + $(SETPDEV) $(DD)lex2050 $(lex2050_) + +$(GLOBJ)gdevlx7.$(OBJ): $(GLSRC)gdevlx7.c $(PDEVH) + $(GLCC) $(GLO_)gdevlx7.$(OBJ) $(C_) $(GLSRC)gdevlx7.c + diff --git a/print/ghostscript-afpl/files/lx5000.contrib.mak b/print/ghostscript-afpl/files/lx5000.contrib.mak new file mode 100644 index 000000000000..f22c1dbb904c --- /dev/null +++ b/print/ghostscript-afpl/files/lx5000.contrib.mak @@ -0,0 +1,11 @@ +### ----------------- LexMark 5000 printer ----------------------------- ### +### Note: this driver was contributed by users. Please contact: ### +### Peter B. West <p.west@uq.net.au> ### + +lx5000_=$(GLOBJ)gdevlx50.$(OBJ) +$(DD)lx5000.dev: $(lx5000_) + $(SETPDEV) $(DD)lx5000 $(lx5000_) + +$(GLOBJ)gdevlx50.$(OBJ): $(GLSRC)gdevlx50.c $(PDEVH) + $(GLCC) $(GLO_)gdevlx50.$(OBJ) $(C_) $(GLSRC)gdevlx50.c + diff --git a/print/ghostscript-afpl/files/lxm3200.contrib.mak b/print/ghostscript-afpl/files/lxm3200.contrib.mak new file mode 100644 index 000000000000..c670f6de111c --- /dev/null +++ b/print/ghostscript-afpl/files/lxm3200.contrib.mak @@ -0,0 +1,10 @@ +### ---------------- Lexmark 3200 device ----------------- ### + +lxm3200_=$(GLOBJ)gdevlx32.$(OBJ) + +$(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev + $(SETPDEV) $(DD)lxm3200 $(lxm3200_) + +$(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h) + $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c + diff --git a/print/ghostscript-afpl/files/patch-lib:gs_res.ps b/print/ghostscript-afpl/files/patch-lib:gs_res.ps deleted file mode 100644 index 2e5169720649..000000000000 --- a/print/ghostscript-afpl/files/patch-lib:gs_res.ps +++ /dev/null @@ -1,13 +0,0 @@ ---- lib/gs_res.ps.orig Mon Jul 16 01:09:41 2001 -+++ lib/gs_res.ps Fri Feb 8 07:12:09 2002 -@@ -248,8 +248,8 @@ - /pssystemparams 10 dict readonly def - } if - pssystemparams begin -- /FontResourceDir (/Resource/Font/) readonly .forcedef % pssys'params is r-o -- /GenericResourceDir (/Resource/) readonly .forcedef % pssys'params is r-o -+ /FontResourceDir (%%DATADIR%%/Resource/Font/) readonly .forcedef % pssys'params is r-o -+ /GenericResourceDir (%%DATADIR%%/Resource/) readonly .forcedef % pssys'params is r-o - /GenericResourcePathSep (/) readonly .forcedef % pssys'params is r-o - end - end diff --git a/print/ghostscript-afpl/files/patch-lxm3200:gdevlx32.c b/print/ghostscript-afpl/files/patch-lxm3200:gdevlx32.c new file mode 100644 index 000000000000..fef3a6452e40 --- /dev/null +++ b/print/ghostscript-afpl/files/patch-lxm3200:gdevlx32.c @@ -0,0 +1,25 @@ +--- lxm3200/gdevlx32.c.orig Wed Apr 23 01:06:20 2003 ++++ lxm3200/gdevlx32.c Thu May 15 08:24:08 2003 +@@ -422,9 +422,11 @@ + * of the nearest color. + */ + private gx_color_index +-lxm3200_map_rgb_color(gx_device *dev, gx_color_value r, +- gx_color_value g, gx_color_value b) ++lxm3200_map_rgb_color(gx_device *dev, const gx_color_value cv[]) + { ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; + gx_color_index col; + int c, m, y; + +@@ -479,7 +481,7 @@ + break; + + default: +- col = gdev_prn_map_rgb_color(dev, r, g, b); ++ col = gdev_prn_map_rgb_color(dev, cv); + break; + } + diff --git a/print/ghostscript-afpl/files/patch-src:dmp_site.ps b/print/ghostscript-afpl/files/patch-src:dmp_site.ps deleted file mode 100644 index ee1a5717d641..000000000000 --- a/print/ghostscript-afpl/files/patch-src:dmp_site.ps +++ /dev/null @@ -1,10 +0,0 @@ ---- src/dmp_site.ps.orig Tue May 27 09:57:00 1997 -+++ src/dmp_site.ps Tue Apr 2 23:05:45 2002 -@@ -1,6 +1,6 @@ - BeginConfig - %%%%%%%%%%%%%%%%%%%%%% Standard user cusomizations %%%%%%%%%%%%%%%%%%%%% --/printer (epsimage.src) -+/printer (%%DATADIR%%/%%GS_VERSION%%/lib/escp_24.src) - % horizontal / vertical - % /resolution [ 160.0 180.0 ] - % horizontal / vertical diff --git a/print/ghostscript-afpl/files/patch-src:dviprlib.c b/print/ghostscript-afpl/files/patch-src:dviprlib.c deleted file mode 100644 index c61ca748cbc2..000000000000 --- a/print/ghostscript-afpl/files/patch-src:dviprlib.c +++ /dev/null @@ -1,134 +0,0 @@ ---- src/dviprlib.c.orig Tue May 13 16:14:09 1997 -+++ src/dviprlib.c Sun Nov 10 23:26:06 2002 -@@ -39,8 +39,8 @@ - - - /*--- forward declarations ---*/ --private int dviprt_read_S_cfg(P2(dviprt_cfg_t *,dviprt_cfg_i *)); --private int dviprt_read_QR_cfg(P2(dviprt_cfg_t *,dviprt_cfg_i *)); -+private int dviprt_read_S_cfg(dviprt_cfg_t *,dviprt_cfg_i *); -+private int dviprt_read_QR_cfg(dviprt_cfg_t *,dviprt_cfg_i *); - - /*--- library functions ---*/ - int -@@ -429,21 +429,21 @@ - - /*--- forward declarations ---*/ - private int dviprt_set_select -- (P4(dviprt_cfg_item_t *,uchar **,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar **,dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_integer -- (P4(dviprt_cfg_item_t *, uchar *, dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *, uchar *, dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_strings -- (P4(dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_rpexpr -- (P6(dviprt_cfg_item_t *,uchar *,int , dviprt_cfg_t *,dviprt_cfg_i *,int)); -+ (dviprt_cfg_item_t *,uchar *,int , dviprt_cfg_t *,dviprt_cfg_i *,int); - private int dviprt_set_code -- (P4(dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *); - --private long dviprt_oct2long(P3(uchar *,uchar *,uchar **)); --private long dviprt_dec2long(P3(uchar *,uchar *,uchar **)); --private long dviprt_hex2long(P3(uchar *,uchar *,uchar **)); -+private long dviprt_oct2long(uchar *,uchar *,uchar **); -+private long dviprt_dec2long(uchar *,uchar *,uchar **); -+private long dviprt_hex2long(uchar *,uchar *,uchar **); - --private int dviprt_printtokenerror(P4(dviprt_cfg_i *,char *,int ,int)); -+private int dviprt_printtokenerror(dviprt_cfg_i *,char *,int ,int); - - /*--- macros ---*/ - #define strlcmp(tmplt,str,len) \ -@@ -1433,7 +1433,9 @@ - char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL }; - char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL }; - --private FILE *dviprt_messagestream = stderr; -+private FILE *dviprt_messagestream; -+private void dviprt_messagestream_construct (void) __attribute__((constructor)); -+private void dviprt_messagestream_construct (void) { dviprt_messagestream = stderr; } - - /*--- library functions ---*/ - int -@@ -1568,16 +1570,16 @@ - - - /*--- forward declarations ---*/ --private int dviprt_getmaximalwidth(P1(dviprt_print *)); --private int dviprt_flush_buffer(P2(dviprt_print *,uchar far *)); --private int dviprt_output_transpose(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_output_nontranspose(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_output_nontranspose_reverse(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_reverse_bits(P2(uchar far *,uint)); --private int dviprt_transpose8x8(P4(uchar far *,uint, uchar far *,uint)); --private int dviprt_output_expr(P4(dviprt_print *,int,uint,uint)); --private int dviprt_default_outputproc(P3(uchar far *,long ,void *)); --private long dviprt_getbuffersize(P1(dviprt_print *)); -+private int dviprt_getmaximalwidth(dviprt_print *); -+private int dviprt_flush_buffer(dviprt_print *,uchar far *); -+private int dviprt_output_transpose(dviprt_print *,uchar far *,uint ); -+private int dviprt_output_nontranspose(dviprt_print *,uchar far *,uint ); -+private int dviprt_output_nontranspose_reverse(dviprt_print *,uchar far *,uint ); -+private int dviprt_reverse_bits(uchar far *,uint); -+private int dviprt_transpose8x8(uchar far *,uint, uchar far *,uint); -+private int dviprt_output_expr(dviprt_print *,int,uint,uint); -+private int dviprt_default_outputproc(uchar far *,long ,void *); -+private long dviprt_getbuffersize(dviprt_print *); - - /*--- library functions ---*/ - long -@@ -1618,7 +1620,7 @@ - int - dviprt_setstream - #ifdef __PROTOTYPES__ -- (dviprt_print *pprint,int (*func)(P3(uchar far *,long ,void*)),void *pstream) -+ (dviprt_print *pprint,int (*func)(uchar far *,long ,void*),void *pstream) - #else - (pprint,func,pstream) - dviprt_print *pprint; -@@ -2264,19 +2266,19 @@ - #define DVIPRT_SUPPORT_PCL 1 - - /*--- forward declarations ---*/ --private long dviprt_null_getworksize(P2(dviprt_print *,long )); --private long dviprt_null_encode(P3(dviprt_print *,long ,int )); --private long dviprt_hex_getworksize(P2(dviprt_print *,long )); --private long dviprt_hex_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_null_getworksize(dviprt_print *,long ); -+private long dviprt_null_encode(dviprt_print *,long ,int ); -+private long dviprt_hex_getworksize(dviprt_print *,long ); -+private long dviprt_hex_encode(dviprt_print *,long ,int ); - #if DVIPRT_SUPPORT_FAX --private long dviprt_fax_getworksize(P2(dviprt_print *,long )); --private long dviprt_fax_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_fax_getworksize(dviprt_print *,long ); -+private long dviprt_fax_encode(dviprt_print *,long ,int ); - #endif - #if DVIPRT_SUPPORT_PCL --private long dviprt_pcl1_getworksize(P2(dviprt_print *,long )); --private long dviprt_pcl1_encode(P3(dviprt_print *,long ,int )); --private long dviprt_pcl2_getworksize(P2(dviprt_print *,long )); --private long dviprt_pcl2_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_pcl1_getworksize(dviprt_print *,long ); -+private long dviprt_pcl1_encode(dviprt_print *,long ,int ); -+private long dviprt_pcl2_getworksize(dviprt_print *,long ); -+private long dviprt_pcl2_encode(dviprt_print *,long ,int ); - #endif - - private dviprt_encoder dviprt_encoder_list[] = { -@@ -2468,9 +2470,9 @@ - int o_count; - int o_bufcount; - } FaxEncodeInfo; --private int dviprt_fax_set_white(P2(int,FaxEncodeInfo *)); --private int dviprt_fax_set_black(P2(int,FaxEncodeInfo *)); --private int dviprt_fax_set_bitcount(P2(FaxEncode_t *,FaxEncodeInfo *)); -+private int dviprt_fax_set_white(int,FaxEncodeInfo *); -+private int dviprt_fax_set_black(int,FaxEncodeInfo *); -+private int dviprt_fax_set_bitcount(FaxEncode_t *,FaxEncodeInfo *); - - private long - dviprt_fax_encode(dviprt_print *pprint,long s,int f) diff --git a/print/ghostscript-afpl/files/patch-src:dviprlib.h b/print/ghostscript-afpl/files/patch-src:dviprlib.h deleted file mode 100644 index 2a671205b46d..000000000000 --- a/print/ghostscript-afpl/files/patch-src:dviprlib.h +++ /dev/null @@ -1,38 +0,0 @@ ---- src/dviprlib.h.orig Tue May 13 16:10:34 1997 -+++ src/dviprlib.h Sun Nov 10 23:32:53 2002 -@@ -337,23 +337,23 @@ - #ifdef dviprlib_implementation - typedef struct { - int no; -- long (*getworksize)(P2(dviprt_print *,long )); -- long (*encode)(P3(dviprt_print *,long,int)); -+ long (*getworksize)(dviprt_print *,long ); -+ long (*encode)(dviprt_print *,long,int); - } dviprt_encoder; - - #define liblocal private - --liblocal dviprt_encoder *dviprt_getencoder_(P1(int )); --liblocal int dviprt_setcfgbuffer_(P3(dviprt_cfg_i *,int ,int )); --liblocal int dviprt_resetcfgbuffer_(P1(dviprt_cfg_i *)); --liblocal int dviprt_initcfg_(P2(dviprt_cfg_t *,dviprt_cfg_i *)); --liblocal int dviprt_printmessage(P2(char *,int )); --liblocal int dviprt_printerror(P2(char *,int )); --liblocal int dviprt_printwarning(P2(char *,int )); --liblocal int dviprt_printcfgerror(P3(dviprt_cfg_i *,char *,int )); --liblocal int dviprt_printcfgwarning(P3(dviprt_cfg_i *,char *,int )); -+liblocal dviprt_encoder *dviprt_getencoder_(int ); -+liblocal int dviprt_setcfgbuffer_(dviprt_cfg_i *,int ,int ); -+liblocal int dviprt_resetcfgbuffer_(dviprt_cfg_i *); -+liblocal int dviprt_initcfg_(dviprt_cfg_t *,dviprt_cfg_i *); -+liblocal int dviprt_printmessage(char *,int ); -+liblocal int dviprt_printerror(char *,int ); -+liblocal int dviprt_printwarning(char *,int ); -+liblocal int dviprt_printcfgerror(dviprt_cfg_i *,char *,int ); -+liblocal int dviprt_printcfgwarning(dviprt_cfg_i *,char *,int ); - --extern int dviprt_print_headercomment_(P4(char *,char *,char *,FILE *)); -+extern int dviprt_print_headercomment_(char *,char *,char *,FILE *); - extern char dviprt_message_buffer[]; - #endif dviprlib_implementation - diff --git a/print/ghostscript-afpl/files/patch-src:gdevdmpr.c b/print/ghostscript-afpl/files/patch-src:gdevdmpr.c deleted file mode 100644 index 47e980154ccd..000000000000 --- a/print/ghostscript-afpl/files/patch-src:gdevdmpr.c +++ /dev/null @@ -1,38 +0,0 @@ ---- src/gdevdmpr.c.orig Tue May 13 20:43:37 1997 -+++ src/gdevdmpr.c Sun Nov 10 21:19:41 2002 -@@ -41,7 +41,7 @@ - /* include library header. */ - #include "dviprlib.h" - --extern FILE *lib_fopen(P1(const char *)); -+extern FILE *lib_fopen(const char *); - - #define LOCAL_DEBUG 0 - -@@ -87,12 +87,12 @@ - private dev_proc_close_device(gdev_dmprt_close); - - /* declarations of sub functions to get printer properties. */ --private void gdev_dmprt_init_printer_props(P1(gx_device_dmprt *)); --private int gdev_dmprt_get_printer_props(P2(gx_device_dmprt *,char *)); --private int gdev_dmprt_check_code_props(P2(byte * ,int )); --private FILE *gdev_dmprt_dviprt_lib_fopen(P2(const char *,char *)); -+private void gdev_dmprt_init_printer_props(gx_device_dmprt *); -+private int gdev_dmprt_get_printer_props(gx_device_dmprt *,char *); -+private int gdev_dmprt_check_code_props(byte * ,int ); -+private FILE *gdev_dmprt_dviprt_lib_fopen(const char *,char *); - --private int gdev_dmprt_error_no_dviprt_to_gs(P1(int )); -+private int gdev_dmprt_error_no_dviprt_to_gs(int ); - - /* The device descriptor */ - gx_device_procs prn_dmprt_procs = { -@@ -846,7 +846,7 @@ - if (env) { - strcpy(fname,env); - strcat(fname, -- gp_file_name_concat_string(env,strlen(env),fname,strlen(fnamebase))); -+ gp_file_name_concat_string(env,strlen(env))); - strcat(fname,fnamebase); - fp = fopen(fname,gp_fmode_rb); - } diff --git a/print/ghostscript-afpl/files/patch-src:gdevdmpr.mak b/print/ghostscript-afpl/files/patch-src:gdevdmpr.mak deleted file mode 100644 index 9136172873fa..000000000000 --- a/print/ghostscript-afpl/files/patch-src:gdevdmpr.mak +++ /dev/null @@ -1,21 +0,0 @@ ---- src/gdevdmpr.mak.orig Mon May 1 20:24:43 2000 -+++ src/gdevdmpr.mak Mon May 1 20:26:23 2000 -@@ -1,8 +1,12 @@ - ### ---------------- Dot matrix printer device ---------------- ### --dmprt_=gdevdmpr.$(OBJ) dviprlib.$(OBJ) gdevprn.$(OBJ) -+dmprt_=$(GLOBJ)gdevdmpr.$(OBJ) $(GLOBJ)dviprlib.$(OBJ) $(GLOBJ)gdevprn.$(OBJ) - --dmprt.dev: $(dmprt_) -- $(SETDEV) dmprt $(dmprt_) -- $(ADDMOD) dmprt -ps dmp_init --gdevdmpr.$(OBJ): gdevdmpr.c dviprlib.h $(PDEVH) --dviprlib.$(OBJ): dviprlib.c dviprlib.h -+$(DD)dmprt.dev: $(dmprt_) -+ $(SETDEV) $(DD)dmprt $(dmprt_) -+ $(ADDMOD) $(DD)dmprt -ps dmp_init -+ -+$(GLOBJ)gdevdmpr.$(OBJ): $(GLSRC)gdevdmpr.c $(GLSRC)dviprlib.h $(PDEVH) -+ $(GLCC) $(GLO_)gdevdmpr.$(OBJ) $(C_) $(GLSRC)gdevdmpr.c -+ -+$(GLOBJ)dviprlib.$(OBJ): $(GLSRC)dviprlib.c $(GLSRC)dviprlib.h -+ $(GLCC) $(GLO_)dviprlib.$(OBJ) $(C_) $(GLSRC)dviprlib.c diff --git a/print/ghostscript-afpl/files/patch-src:gdevl256.c b/print/ghostscript-afpl/files/patch-src:gdevl256.c new file mode 100644 index 000000000000..3102abf74716 --- /dev/null +++ b/print/ghostscript-afpl/files/patch-src:gdevl256.c @@ -0,0 +1,17 @@ +--- src/gdevl256.c.orig Fri Feb 22 07:24:51 2002 ++++ src/gdevl256.c Tue May 20 03:08:15 2003 +@@ -147,10 +147,12 @@ + /* for compatibility with the older display modes: */ + /* these are indexed as 0.0.R0.G0.B0.R1.G1.B1. */ + gx_color_index +-lvga256_map_rgb_color(gx_device * dev, gx_color_value r, gx_color_value g, +- gx_color_value b) ++lvga256_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { + #define cv_bits(v,n) (v >> (gx_color_value_bits - n)) ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; + ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5); + static const byte cube_bits[32] = + {0, 128, 128, 128, 128, 128, 128, 128, 128, 128, diff --git a/print/ghostscript-afpl/files/patch-src:gdevlx50.c b/print/ghostscript-afpl/files/patch-src:gdevlx50.c new file mode 100644 index 000000000000..01ceae208cd3 --- /dev/null +++ b/print/ghostscript-afpl/files/patch-src:gdevlx50.c @@ -0,0 +1,17 @@ +--- src/gdevlx50.c.orig Thu May 15 07:38:07 2003 ++++ src/gdevlx50.c Thu May 15 08:02:58 2003 +@@ -2603,9 +2603,12 @@ + + /* Map CMYK to color. */ + private gx_color_index +-lx5000_map_cmyk_color(gx_device * dev, gx_color_value cyan, +- gx_color_value magenta, gx_color_value yellow, gx_color_value black) ++lx5000_map_cmyk_color(gx_device * dev, const gx_color_value cv[]) + { ++ gx_color_value cyan = cv[0]; ++ gx_color_value magenta = cv[1]; ++ gx_color_value yellow = cv[2]; ++ gx_color_value black = cv[3]; + int bpc = dev->color_info.depth / 4; + int drop = sizeof(gx_color_value) * 8 - bpc; + gx_color_index color = diff --git a/print/ghostscript-afpl/files/patch-src:gdevsgi.c b/print/ghostscript-afpl/files/patch-src:gdevsgi.c deleted file mode 100644 index 96d3891fc9e5..000000000000 --- a/print/ghostscript-afpl/files/patch-src:gdevsgi.c +++ /dev/null @@ -1,16 +0,0 @@ ---- src/gdevsgi.c.orig Fri Feb 22 07:24:52 2002 -+++ src/gdevsgi.c Sun Nov 10 22:55:30 2002 -@@ -32,8 +32,11 @@ - sgi_prn_device(sgi_procs, "sgirgb", 3, 24, 255, 255, sgi_print_page); - - private gx_color_index --sgi_map_rgb_color(gx_device *dev, ushort r, ushort g, ushort b) --{ ushort bitspercolor = dev->color_info.depth / 3; -+sgi_map_rgb_color(gx_device *dev, const ushort cv[]) -+{ ushort r = cv[0]; -+ ushort g = cv[1]; -+ ushort b = cv[2]; -+ ushort bitspercolor = dev->color_info.depth / 3; - ulong max_value = (1 << bitspercolor) - 1; - return ((r*max_value / gx_max_color_value) << (bitspercolor * 2)) + - ((g*max_value / gx_max_color_value) << bitspercolor) + diff --git a/print/ghostscript-afpl/files/patch-src:gdevvglb.c b/print/ghostscript-afpl/files/patch-src:gdevvglb.c new file mode 100644 index 000000000000..b21032ce8779 --- /dev/null +++ b/print/ghostscript-afpl/files/patch-src:gdevvglb.c @@ -0,0 +1,18 @@ +--- src/gdevvglb.c.orig Fri Feb 22 07:24:52 2002 ++++ src/gdevvglb.c Tue May 20 23:57:29 2003 +@@ -152,10 +152,12 @@ + } + + private gx_color_index +-vgalib_map_rgb_color(gx_device * dev, gx_color_value red, +- gx_color_value green, gx_color_value blue) ++vgalib_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { +- return pc_4bit_map_rgb_color(dev, red, green, blue); ++ gx_color_value red = cv[0]; ++ gx_color_value green = cv[1]; ++ gx_color_value blue = cv[2]; ++ return pc_4bit_map_rgb_color(dev, cv); + } + + private int diff --git a/print/ghostscript-afpl/pkg-descr b/print/ghostscript-afpl/pkg-descr index 122e09a3a7b7..60c6e9e1e2c5 100644 --- a/print/ghostscript-afpl/pkg-descr +++ b/print/ghostscript-afpl/pkg-descr @@ -11,8 +11,8 @@ This port includes add-on packages (not part of the official gs release) - http://hp.sourceforge.net/gs-hp2200.php o DJ970 driver for HP DeskJet 970CXi - http://www.harsch.net/Ghostscript/ghostscript.html - o Spacial drivers for verious printer models mainly sold in Japan - - Alps, Canon, Epson, NEC, Ricoh,... + o Special drivers for verious printer models + - Alps, Canon, Epson, NEC, Lexmark, Ricoh,... o Additional contributed uniprint driver profiles for - Epson Stylus Color 740 and Epson LQ-1170 diff --git a/print/ghostscript-afpl/pkg-plist b/print/ghostscript-afpl/pkg-plist index 21f9ead5ac23..f29333db37bf 100644 --- a/print/ghostscript-afpl/pkg-plist +++ b/print/ghostscript-afpl/pkg-plist @@ -38,7 +38,6 @@ bin/wftopfa %%SHLIB%%lib/libgs.so.%%SHLIB_VER%% %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/alps/README.gdevalps %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/bj10v/gdev10v.jis -%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/dmprt/gdevdmpr.sj %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/ChangeLog %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/ert.txt %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/gdevepag.txt @@ -48,6 +47,9 @@ bin/wftopfa %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/eplaser/readme-eplaser-652-jp.euc %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/gdi/README %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lips/Gdevlips.htm +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/README +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/RELEASE_NOTES +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/md2k/README.jis %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/MJ700V2C.FAQ %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/README.mjc @@ -55,6 +57,64 @@ bin/wftopfa %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/README.noz %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/cpem.doc %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/npdl/gdevnpdl.jis +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78ms-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78ms-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/83pv-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90ms-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90ms-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90pv-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90pv-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-0 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-1 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-2 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/ETen-B5-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/ETen-B5-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/GBK-EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/GBK-EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Hankaku +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Hiragana +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Identity-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Identity-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSC-Johab-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSC-Johab-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Katakana +share/ghostscript/%%GS_VERSION%%/Resource/CMap/NWP-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/NWP-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Roman +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniHojo-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/WP-Symbol +share/ghostscript/%%GS_VERSION%%/Resource/Decoding/StandardEncoding +share/ghostscript/%%GS_VERSION%%/Resource/Decoding/Unicode share/ghostscript/%%GS_VERSION%%/doc/API.htm share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm share/ghostscript/%%GS_VERSION%%/doc/Bug-info.htm @@ -151,15 +211,12 @@ share/ghostscript/%%GS_VERSION%%/lib/cbjc800.ppd share/ghostscript/%%GS_VERSION%%/lib/cdj550.upp share/ghostscript/%%GS_VERSION%%/lib/cdj690.upp share/ghostscript/%%GS_VERSION%%/lib/cdj690ec.upp -share/ghostscript/%%GS_VERSION%%/lib/cidfmap share/ghostscript/%%GS_VERSION%%/lib/cid2code.ps +share/ghostscript/%%GS_VERSION%%/lib/cidfmap share/ghostscript/%%GS_VERSION%%/lib/decrypt.ps -share/ghostscript/%%GS_VERSION%%/lib/dmp_init.ps -share/ghostscript/%%GS_VERSION%%/lib/dmp_site.ps share/ghostscript/%%GS_VERSION%%/lib/dnj750c.upp share/ghostscript/%%GS_VERSION%%/lib/dnj750m.upp share/ghostscript/%%GS_VERSION%%/lib/docie.ps -share/ghostscript/%%GS_VERSION%%/lib/escp_24.src share/ghostscript/%%GS_VERSION%%/lib/errpage.ps share/ghostscript/%%GS_VERSION%%/lib/font2c.ps share/ghostscript/%%GS_VERSION%%/lib/font2pcl.ps @@ -172,6 +229,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_cidcm.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciddc.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cidfm.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cidfn.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_cidtt.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciecs2.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciecs3.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cmap.ps @@ -192,6 +250,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_dscp.ps share/ghostscript/%%GS_VERSION%%/lib/gs_epsf.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fapi.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fform.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_fntem.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fonts.ps share/ghostscript/%%GS_VERSION%%/lib/gs_frsd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_icc.ps @@ -223,6 +282,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_pfile.ps share/ghostscript/%%GS_VERSION%%/lib/gs_rdlin.ps share/ghostscript/%%GS_VERSION%%/lib/gs_res.ps share/ghostscript/%%GS_VERSION%%/lib/gs_resmp.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_resst.ps share/ghostscript/%%GS_VERSION%%/lib/gs_s.xbm share/ghostscript/%%GS_VERSION%%/lib/gs_s.xpm share/ghostscript/%%GS_VERSION%%/lib/gs_s_m.xbm @@ -230,6 +290,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_sepr.ps share/ghostscript/%%GS_VERSION%%/lib/gs_setpd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_statd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_std_e.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_stres.ps share/ghostscript/%%GS_VERSION%%/lib/gs_sym_e.ps share/ghostscript/%%GS_VERSION%%/lib/gs_t.xbm share/ghostscript/%%GS_VERSION%%/lib/gs_t.xpm @@ -267,6 +328,7 @@ share/ghostscript/%%GS_VERSION%%/lib/pdf_draw.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_font.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_main.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_ops.ps +share/ghostscript/%%GS_VERSION%%/lib/pdf_rbld.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_sec.ps share/ghostscript/%%GS_VERSION%%/lib/pdfopt.ps share/ghostscript/%%GS_VERSION%%/lib/pdfwrite.ps @@ -512,16 +574,18 @@ share/ghostscript/fonts/z003034l.pfm @dirrm share/ghostscript/%%GS_VERSION%%/lib @dirrm share/ghostscript/%%GS_VERSION%%/examples @dirrm share/ghostscript/%%GS_VERSION%%/doc -@dirrm share/ghostscript/%%GS_VERSION%% +@dirrm share/ghostscript/%%GS_VERSION%%/Resource/Decoding +@dirrm share/ghostscript/%%GS_VERSION%%/Resource/CMap +@dirrm share/ghostscript/%%GS_VERSION%%/Resource @unexec rmdir %D/share/ghostscript 2>/dev/null || true %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/npdl %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/mjc %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/md2k +%%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/lxm3200 %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/lips %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/gdi %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/eplaser %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/epag -%%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/dmprt %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/bj10v %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/alps %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%% diff --git a/print/ghostscript-afpl/scripts/configure b/print/ghostscript-afpl/scripts/configure index d4a4cad25d3a..bd07968d029e 100644 --- a/print/ghostscript-afpl/scripts/configure +++ b/print/ghostscript-afpl/scripts/configure @@ -12,11 +12,16 @@ x11devs="x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 \ x11gray2 x11gray4 x11mono x11rg16x x11rg32x" fi -if [ ! -z "${GS_OPTIONS}" ]; then - set ${GS_OPTIONS} +if [ -n "${WITH_SVGALIB}" ]; then +svgalibdevs="lvga256 vgalib" +fi + +if [ ! -z "${GS_DRIVERS_LIST}" ]; then + set ${GS_DRIVERS_LIST} else set \ $x11devs \ + $svgalibdevs \ md2k md5k \ md50Mono md50Eco md1xMono \ appledmp iwhi iwlo iwlq hl7x0 bj10e \ @@ -26,7 +31,6 @@ else lbp1310 lbp1510 lbp1610 lbp1710 lbp1810 lbp1910 \ lips2p lips3 lips4 bjc880j lips4v \ m8510 coslw2p coslwxl uniprint \ - dmprt \ lj250 declj250 ap3250 epson eps9mid eps9high lp8000 \ epag \ escpage lp2000 \ @@ -45,7 +49,9 @@ else cljet5 cljet5c cljet5pr lj5mono lj5gray \ pj pjetxl pjxl paintjet \ pjxl300 pxlmono pxlcolor \ - ijs ibmpro jetp3852 imagen fs600 lxm5700m cp50 necp6 \ + ijs ibmpro jetp3852 imagen fs600 lxm5700m \ + lxm3200 lx5000 lex2050 lex3200 lex5700 lex7000 \ + cp50 necp6 \ npdl \ oce9050 oki182 okiibm atx23 atx24 atx38 r4081 \ rpdl \ @@ -64,12 +70,13 @@ else bit bitrgb bitcmyk plan9bm pam pbm pbmraw \ pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw \ pkm pkmraw pksm pksmraw \ - pngmono pnggray png16 png256 png16m pnga psmono psgray psrgb \ + pngmono pnggray png16 png256 png16m pnga \ + psmono psgray psrgb \ pswrite epswrite sgirgb sunhmono \ tiffcrle tiffg3 tiffg32d tiffg4 \ tiff12nc tiff24nc tifflzw tiffpack \ bbox \ - devicen perm spotrgb spotcmyk + devicen perm spotcmyk fi for i; do @@ -96,6 +103,8 @@ Have fun with this new configuration style ! -andreas \n\n\ "x11mono" "X Window System masquer. as black-and-white device" "$status_x11mono" \ "x11rg16x" "X Window System with G5/B5/R6 pixel layout for testing" "$status_x11rg16x" \ "x11rg32x" "X Window System with G11/B10/R11 pixel layout for testing" "$status_x11rg32x" \ + "lvga256" "SVGAlib, 256-color VGA modes" "$status_lvga256" \ + "vgalib" "SVGAlib, 16-color VGA modes" "$status_vgalib" \ "md2k" "ALPS MD-2000/2010/4000/1300/1500/5000 [MD2K]" "$status_md2k" \ "md5k" "ALPS MD-5000 Eco Mode [MD2K]" "$status_md5k" \ "md50Mono" "ALPS MD-5000 Monochrome [ALPS]" "$status_md50Mono" \ @@ -133,7 +142,6 @@ Have fun with this new configuration style ! -andreas \n\n\ "coslwxl" "CoStar LabelWriter XL" "$status_coslwxl" \ "stp" "Configurable Canon/Epson/Lexmark/HP driver [Gimp-Print]" "$status_stp" \ "uniprint" "Configurable ESC/P,ESC/P2,HP-RTL/PCL,P2X mono/color driver" "$status_uniprint" \ - "dmprt" "Configurable dot matrix printer driver [DMPRT]" "$status_dmprt" \ "lj250" "DEC LJ250 Companion color printer" "$status_lj250" \ "declj250" "DEC LJ250 driver (alternate)" "$status_declj250" \ "ap3250" "Epson ActionPrinter 3250" "$status_ap3250" \ @@ -233,6 +241,12 @@ Have fun with this new configuration style ! -andreas \n\n\ "imagen" "Imagen ImPress printers" "$status_imagen" \ "fs600" "Kyocera FS-600 (600 dpi)" "$status_fs600" \ "lxm5700m" "Lexmark 5700 monotone" "$status_lxm5700m" \ + "lxm3200" "Lexmark 3200/Z12/Z22/Z31/Z32 [LXM3200]" "$status_lxm3200" \ + "lx5000" "Lexmark 5000/Z51/Z82 [LX5000]" "$status_lx5000" \ + "lex2050" "Lexmark 2050 [LEX7000]" "$status_lex2050" \ + "lex3200" "Lexmark 3200 [LEX7000]" "$status_lex3200" \ + "lex5700" "Lexmark 5700 [LEX7000]" "$status_lex5700" \ + "lex7000" "Lexmark 7000 [LEX7000]" "$status_lex7000" \ "cp50" "Mitsubishi CP50 color" "$status_cp50" \ "necp6" "NEC PinWriter P6/P6+/P60, 360x360 DPI resol" "$status_necp6" \ "npdl" "NEC Printer Description Language [NPDL]" "$status_npdl" \ @@ -313,7 +327,7 @@ Have fun with this new configuration style ! -andreas \n\n\ "png16" "PNG 4-bit color Portable Network Graphics" "$status_png16" \ "png256" "PNG 8-bit color Portable Network Graphics" "$status_png256" \ "png16m" "PNG 24-bit color Portable Network Graphics" "$status_png16m" \ - "pnga" "PNG with transparency" "$status_pnga" \ + "pngalpha" "PNG 32-bit RGBA Portable Network Graphics" "$status_pngalpha" \ "psmono" "PostScript (Level 1) monochrome image" "$status_psmono" \ "psgray" "PostScript (Level 1) 8-bit gray image" "$status_psgray" \ "psrgb" "PostScript (Level 2) 24-bit color image" "$status_psrgb" \ @@ -332,7 +346,6 @@ Have fun with this new configuration style ! -andreas \n\n\ "bbox" "Bounding box output" "$status_bbox" \ "devicen" "DeviceN process color model device" "$status_devicen" \ "perm" "DeviceN which permutes color components" "$status_perm" \ - "spotrgb" "DeviceN with RGB and spot color support" "$status_spotrgb" \ "spotcmyk" "DeviceN with CMYK and spot color support" "$status_spotcmyk" \ 2> $tempfile diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile index fe25669f2a38..14d528db12cd 100644 --- a/print/ghostscript-gpl/Makefile +++ b/print/ghostscript-gpl/Makefile @@ -7,7 +7,7 @@ PORTNAME= ghostscript PORTVERSION= ${GS_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gs_fonts,bjc250/} \ http://hp.sourceforge.net/:hp2200 \ @@ -20,7 +20,9 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gs_fonts,bjc250/} \ http://www.epkowa.on.arena.ne.jp/pips/data/V306/:eplaser \ http://www.hi.is.uec.ac.jp/~osamuw/gdevnpdl/:npdl \ http://www.linuxprinting.org/download/printing/samsung-gdi/:gdi \ - ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts \ + http://www.linuxprinting.org/download/printing/:lxm3200 \ + http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \ + ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:gs_fonts \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs${GS_VERSION:S/.//}/:gs_srcs MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,gs_fonts,ports_jp_gs \ bjc250gs/:bjc250 \ @@ -37,17 +39,20 @@ DISTFILES= ${GS_SRCS}:gs_srcs \ ${BJC250_SRCS}:bjc250 \ ${CPCA_SRCS}:cpca \ ${LIPS_SRCS}:lips \ - ${DMPRT_SRCS}:ports_jp_gs \ ${EPAG_SRCS}:epag \ ${EPLASER_SRCS}:eplaser \ ${MJC_SRCS}:ports_jp \ ${NPDL_SRCS}:npdl \ - ${GDI_SRCS}:gdi + ${GDI_SRCS}:gdi \ + ${LXM3200_SRCS}:lxm3200 \ + ${LX5000_SRCS}:lx5000 \ + ${LEX7000_SRCS}:lx5000 + DIST_SUBDIR= ghostscript EXTRACT_ONLY= ${GS_SRCS} MAINTAINER= ports@FreeBSD.org -COMMENT= AFPL Postscript interpreter version 7 +COMMENT= AFPL Postscript interpreter LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png @@ -59,10 +64,11 @@ USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= yes MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \ - XCFLAGS="${XCFLAGS}" WITHOUT_X11="${WITHOUT_X11}" -PLIST_SUB= GS_VERSION=${GS_VERSION} + XCFLAGS="${XCFLAGS}" +PLIST_SUB= GS_VERSION="${GS_VERSION}" -SCRIPTS_ENV= GS_OPTIONS="${GS_OPTIONS}" WITHOUT_X11="${WITHOUT_X11}" +SCRIPTS_ENV= GS_OPTIONS="${GS_OPTIONS}" WITHOUT_X11="${WITHOUT_X11}" \ + WITH_SVGALIB="${WITH_SVGALIB}" MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 pdf2dsc.1 pdf2ps.1 \ pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 ps2ascii.1 \ @@ -87,6 +93,10 @@ PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11 USE_XLIB= yes .endif +.if defined(WITH_SVGALIB) +LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib +.endif + .if defined(WITH_SHLIB) .undef WITHOUT_X11 USE_GNOME= gtk12 @@ -159,12 +169,6 @@ LIPS_VERS= 2.4.0 LIPS_NAME= gdevlips-${LIPS_VERS} LIPS_SRCS= ${LIPS_NAME}.tar.gz -# DMPRT - additional driver for generic dot matrix printers -DMPRT= dmprt -DMPRT_VERS= 2.01 -DMPRT_NAME= ${DMPRT}-${DMPRT_VERS} -DMPRT_SRCS= ${DMPRT_NAME}.tar.gz - # EPAG - additional driver for Epson ESC/Page printers # http://www.humblesoft.com/gdevepag.html EPAG= epag @@ -196,10 +200,27 @@ GDI= gdi GDI_NAME= Samsung-SmartGDI-all-GS GDI_SRCS= ${GDI_NAME}.tar.gz +# LXM3200 - additional driver for Lexmark 3200/Z12/Z22/Z31/Z32 +LXM3200= lxm3200 +LXM3200_VERS= 20030501 +LXM3200_NAME= ${LXM3200}-tweaked-${LXM3200_VERS} +LXM3200_SRCS= ${LXM3200_NAME}.tar.gz + +# LX5000 - additional driver for Lexmark 5000/Z51/Z82 +# http://homepage.powerup.com.au/~pbwest/lexmark/lexmark.html +LX5000= lx5000 +LX5000_SRCS= gdevlx50.c + +# LEX7000 - additional driver for Lexmark 2050/3200/5700/7000 +# http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/ +LEX7000= lex7000 +LEX7000_SRCS= gs6.0.lexmark7000.patch + # contributed uniprint profiles CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp +.include <bsd.port.pre.mk> .SILENT: pre-everything:: @@ -249,9 +270,6 @@ post-extract: ${ECHO_MSG} ">>> extracting ${LIPS_SRCS} ..." ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LIPS_SRCS} ${LN} -sf ${LIPS_NAME} ${WRKSRC}/${LIPS} -# for DMPRT driver - ${ECHO_MSG} ">>> extracting ${DMPRT_SRCS} ..." - ${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${DMPRT_SRCS} # for EPAG driver ${ECHO_MSG} ">>> extracting ${EPAG_SRCS} ..." ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPAG_SRCS} @@ -269,18 +287,25 @@ post-extract: # for GDI driver ${ECHO_MSG} ">>> extracting ${GDI_SRCS} ..." ${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${GDI_SRCS} +# for LXM3200 driver + ${ECHO_MSG} ">>> extracting ${LXM3200_SRCS} ..." + ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LXM3200_SRCS} + ${LN} -sf ${LXM3200_NAME} ${WRKSRC}/${LXM3200} +# for LX5000 driver + ${ECHO_MSG} ">>> extracting ${LX5000_SRCS} ..." + ${CP} ${DISTDIR}/${DIST_SUBDIR}/${LX5000_SRCS} ${WRKSRC}/src +# for LEX7000 driver + ${ECHO_MSG} ">>> extracting ${LEX7000_SRCS} ..." + ${MKDIR} ${WRKSRC}/${LEX7000} + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${LEX7000_SRCS} | \ + ${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \ + 2>/dev/null || ${TRUE} post-patch: ${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \ ${WRKSRC}/src/unix-gcc.mak ${REINPLACE_CMD} -e 's|\. de|\.|g' \ ${WRKSRC}/src/unixinst.mak - ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \ - ${WRKSRC}/lib/gs_res.ps -# for DMPRT driver - ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \ - s|%%GS_VERSION%%|${GS_VERSION}|g' \ - ${WRKSRC}/src/dmp_site.ps # here we apply the modifications necessary to build the 3rd party drivers # advantage: you see unmodified makefiles after a pure make extract @@ -318,10 +343,6 @@ pre-configure: ${ECHO_MSG} ">>> adding ${LIPS} driver to contrib.mak ..." ${CAT} ${WRKSRC}/${LIPS_NAME}/gdevlips.mak \ >> ${WRKSRC}/src/contrib.mak -# for DMPRT driver - ${ECHO_MSG} ">>> adding ${DMPRT} driver to contrib.mak ..." - ${CAT} ${WRKSRC}/src/gdevdmpr.mak \ - >> ${WRKSRC}/src/contrib.mak # for EPAG driver ${ECHO_MSG} ">>> adding ${EPAG} driver to contrib.mak ..." ${SED} -e 's:npdl:epag:g' ${WRKSRC}/${NPDL_NAME}/gdevnpdl.mak \ @@ -344,6 +365,18 @@ pre-configure: ${ECHO_MSG} ">>> adding ${GDI} driver to contrib.mak ..." ${CAT} ${WRKSRC}/src/smartgdi-contrib.mak \ >> ${WRKSRC}/src/contrib.mak +# for LXM3200 driver + ${ECHO_MSG} ">>> adding ${LXM3200} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lxm3200.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak +# for LX5000 driver + ${ECHO_MSG} ">>> adding ${LX5000} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lx5000.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak +# for LEX7000 driver + ${ECHO_MSG} ">>> adding ${LEX7000} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lex7000.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak pre-build: ${ECHO_MSG} ">>> in pre-build ..." @@ -404,6 +437,16 @@ pre-build: .for i in gdevnpdl.c ${LN} -sf ${WRKSRC}/${NPDL_NAME}/${i} ${WRKSRC}/src .endfor +# for LXM3200 driver + ${ECHO_MSG} ">>> creating symlinks for ${LXM3200} ..." +.for i in gdevlx32.c + ${LN} -sf ${WRKSRC}/${LXM3200_NAME}/${i} ${WRKSRC}/src +.endfor +# for LEX7000 driver + ${ECHO_MSG} ">>> creating symlinks for ${LEX7000} ..." +.for i in gdevlx7.c + ${LN} -sf ${WRKSRC}/${LEX7000}/src/${i} ${WRKSRC}/src +.endfor pre-install: ${ECHO_MSG} ">>> in pre-install ..." @@ -423,12 +466,6 @@ post-install: .else ${STRIP_CMD} ${PREFIX}/bin/gs .endif -# for DMPRT driver - ${ECHO_MSG} ">>> installing ${DMPRT} resources ..." -.for i in dmp_init.ps dmp_site.ps escp_24.src - ${INSTALL_DATA} ${WRKSRC}/src/${i} \ - ${DATADIR}/${GS_VERSION}/lib -.endfor # for EPAG driver ${ECHO_MSG} ">>> installing ${EPAG} utility in bindir ..." ${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin @@ -472,13 +509,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/${LIPS_NAME}/${i} \ ${DOCSDIR}/${GS_VERSION}/${LIPS} .endfor -# for DMPRT driver - ${ECHO_MSG} ">>> installing ${DMPRT} docs ..." - ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${DMPRT} -.for i in gdevdmpr.sj - ${INSTALL_DATA} ${WRKSRC}/src/${i} \ - ${DOCSDIR}/${GS_VERSION}/${DMPRT} -.endfor # for EPAG driver ${ECHO_MSG} ">>> installing ${EPAG} docs ..." ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${EPAG} @@ -518,8 +548,15 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/src/${i} \ ${DOCSDIR}/${GS_VERSION}/${GDI} .endfor +# for LXM3200 driver + ${ECHO_MSG} ">>> installing ${LXM3200} docs ..." + ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${LXM3200} +.for i in README RELEASE_NOTES Z12-Z31-QuickSetup + ${INSTALL_DATA} ${WRKSRC}/${LXM3200_NAME}/${i} \ + ${DOCSDIR}/${GS_VERSION}/${LXM3200} +.endfor .endif ${ECHO_MSG} "> post-installation tasks completed." .include "Makefile.inc" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/print/ghostscript-gpl/Makefile.inc b/print/ghostscript-gpl/Makefile.inc index cf63422dcf01..d980e2905804 100644 --- a/print/ghostscript-gpl/Makefile.inc +++ b/print/ghostscript-gpl/Makefile.inc @@ -1,4 +1,4 @@ # $FreeBSD$ -GS_VERSION= 8.00 +GS_VERSION= 8.10 diff --git a/print/ghostscript-gpl/distinfo b/print/ghostscript-gpl/distinfo index 9cf385b82519..46973a1229d7 100644 --- a/print/ghostscript-gpl/distinfo +++ b/print/ghostscript-gpl/distinfo @@ -1,4 +1,4 @@ -MD5 (ghostscript/ghostscript-8.00.tar.bz2) = f87b74758f8e73f899f0b3654e5887b1 +MD5 (ghostscript/ghostscript-8.10.tar.bz2) = fe2817648951839741cbfa48f7bf76de MD5 (ghostscript/ghostscript-fonts-std-6.0.tar.gz) = 8250132d6fcc6eb1419f505f06c7690b MD5 (ghostscript/ghostscript-fonts-other-6.0.tar.gz) = 1a643ae62ef166562e4d422b1a601272 MD5 (ghostscript/gs-hp2200.tar.gz) = cafe60c0003abe370579f9bfb1d27caa @@ -15,3 +15,6 @@ MD5 (ghostscript/eplaser-3.0.6-652.tgz) = a575b9f3424d0a9ab6fbb5619429a8fd MD5 (ghostscript/gdevmjc-0.8.tar.gz) = 228f41c3cccce22c8f477c7a9407527c MD5 (ghostscript/gdevnpdl-1.6.3.tar.gz) = 6c8dad13d07bbaf6e951d6d2d6b8a9f2 MD5 (ghostscript/Samsung-SmartGDI-all-GS.tar.gz) = e6963f6c9460a964fe57d38479bbdd41 +MD5 (ghostscript/lxm3200-tweaked-20030501.tar.gz) = 0f88082030c6eb66a95804a6cc9b9e6b +MD5 (ghostscript/gdevlx50.c) = 081e355c866316a56fbbff5b59f2b7cf +MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de diff --git a/print/ghostscript-gpl/files/lex7000.contrib.mak b/print/ghostscript-gpl/files/lex7000.contrib.mak new file mode 100644 index 000000000000..a5f1a162b785 --- /dev/null +++ b/print/ghostscript-gpl/files/lex7000.contrib.mak @@ -0,0 +1,21 @@ +# ------ The Lexmark 5700 and 7000 devices ------ # + +lex7000_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex7000.dev: $(lex7000_) $(DD)page.dev + $(SETPDEV) $(DD)lex7000 $(lex7000_) + +lex5700_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex5700.dev: $(lex5700_) $(DD)page.dev + $(SETPDEV) $(DD)lex5700 $(lex5700_) + +lex3200_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex3200.dev: $(lex3200_) $(DD)page.dev + $(SETPDEV) $(DD)lex3200 $(lex3200_) + +lex2050_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex2050.dev: $(lex2050_) $(DD)page.dev + $(SETPDEV) $(DD)lex2050 $(lex2050_) + +$(GLOBJ)gdevlx7.$(OBJ): $(GLSRC)gdevlx7.c $(PDEVH) + $(GLCC) $(GLO_)gdevlx7.$(OBJ) $(C_) $(GLSRC)gdevlx7.c + diff --git a/print/ghostscript-gpl/files/lx5000.contrib.mak b/print/ghostscript-gpl/files/lx5000.contrib.mak new file mode 100644 index 000000000000..f22c1dbb904c --- /dev/null +++ b/print/ghostscript-gpl/files/lx5000.contrib.mak @@ -0,0 +1,11 @@ +### ----------------- LexMark 5000 printer ----------------------------- ### +### Note: this driver was contributed by users. Please contact: ### +### Peter B. West <p.west@uq.net.au> ### + +lx5000_=$(GLOBJ)gdevlx50.$(OBJ) +$(DD)lx5000.dev: $(lx5000_) + $(SETPDEV) $(DD)lx5000 $(lx5000_) + +$(GLOBJ)gdevlx50.$(OBJ): $(GLSRC)gdevlx50.c $(PDEVH) + $(GLCC) $(GLO_)gdevlx50.$(OBJ) $(C_) $(GLSRC)gdevlx50.c + diff --git a/print/ghostscript-gpl/files/lxm3200.contrib.mak b/print/ghostscript-gpl/files/lxm3200.contrib.mak new file mode 100644 index 000000000000..c670f6de111c --- /dev/null +++ b/print/ghostscript-gpl/files/lxm3200.contrib.mak @@ -0,0 +1,10 @@ +### ---------------- Lexmark 3200 device ----------------- ### + +lxm3200_=$(GLOBJ)gdevlx32.$(OBJ) + +$(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev + $(SETPDEV) $(DD)lxm3200 $(lxm3200_) + +$(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h) + $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c + diff --git a/print/ghostscript-gpl/files/patch-lib:gs_res.ps b/print/ghostscript-gpl/files/patch-lib:gs_res.ps deleted file mode 100644 index 2e5169720649..000000000000 --- a/print/ghostscript-gpl/files/patch-lib:gs_res.ps +++ /dev/null @@ -1,13 +0,0 @@ ---- lib/gs_res.ps.orig Mon Jul 16 01:09:41 2001 -+++ lib/gs_res.ps Fri Feb 8 07:12:09 2002 -@@ -248,8 +248,8 @@ - /pssystemparams 10 dict readonly def - } if - pssystemparams begin -- /FontResourceDir (/Resource/Font/) readonly .forcedef % pssys'params is r-o -- /GenericResourceDir (/Resource/) readonly .forcedef % pssys'params is r-o -+ /FontResourceDir (%%DATADIR%%/Resource/Font/) readonly .forcedef % pssys'params is r-o -+ /GenericResourceDir (%%DATADIR%%/Resource/) readonly .forcedef % pssys'params is r-o - /GenericResourcePathSep (/) readonly .forcedef % pssys'params is r-o - end - end diff --git a/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c b/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c new file mode 100644 index 000000000000..fef3a6452e40 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c @@ -0,0 +1,25 @@ +--- lxm3200/gdevlx32.c.orig Wed Apr 23 01:06:20 2003 ++++ lxm3200/gdevlx32.c Thu May 15 08:24:08 2003 +@@ -422,9 +422,11 @@ + * of the nearest color. + */ + private gx_color_index +-lxm3200_map_rgb_color(gx_device *dev, gx_color_value r, +- gx_color_value g, gx_color_value b) ++lxm3200_map_rgb_color(gx_device *dev, const gx_color_value cv[]) + { ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; + gx_color_index col; + int c, m, y; + +@@ -479,7 +481,7 @@ + break; + + default: +- col = gdev_prn_map_rgb_color(dev, r, g, b); ++ col = gdev_prn_map_rgb_color(dev, cv); + break; + } + diff --git a/print/ghostscript-gpl/files/patch-src:dmp_site.ps b/print/ghostscript-gpl/files/patch-src:dmp_site.ps deleted file mode 100644 index ee1a5717d641..000000000000 --- a/print/ghostscript-gpl/files/patch-src:dmp_site.ps +++ /dev/null @@ -1,10 +0,0 @@ ---- src/dmp_site.ps.orig Tue May 27 09:57:00 1997 -+++ src/dmp_site.ps Tue Apr 2 23:05:45 2002 -@@ -1,6 +1,6 @@ - BeginConfig - %%%%%%%%%%%%%%%%%%%%%% Standard user cusomizations %%%%%%%%%%%%%%%%%%%%% --/printer (epsimage.src) -+/printer (%%DATADIR%%/%%GS_VERSION%%/lib/escp_24.src) - % horizontal / vertical - % /resolution [ 160.0 180.0 ] - % horizontal / vertical diff --git a/print/ghostscript-gpl/files/patch-src:dviprlib.c b/print/ghostscript-gpl/files/patch-src:dviprlib.c deleted file mode 100644 index c61ca748cbc2..000000000000 --- a/print/ghostscript-gpl/files/patch-src:dviprlib.c +++ /dev/null @@ -1,134 +0,0 @@ ---- src/dviprlib.c.orig Tue May 13 16:14:09 1997 -+++ src/dviprlib.c Sun Nov 10 23:26:06 2002 -@@ -39,8 +39,8 @@ - - - /*--- forward declarations ---*/ --private int dviprt_read_S_cfg(P2(dviprt_cfg_t *,dviprt_cfg_i *)); --private int dviprt_read_QR_cfg(P2(dviprt_cfg_t *,dviprt_cfg_i *)); -+private int dviprt_read_S_cfg(dviprt_cfg_t *,dviprt_cfg_i *); -+private int dviprt_read_QR_cfg(dviprt_cfg_t *,dviprt_cfg_i *); - - /*--- library functions ---*/ - int -@@ -429,21 +429,21 @@ - - /*--- forward declarations ---*/ - private int dviprt_set_select -- (P4(dviprt_cfg_item_t *,uchar **,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar **,dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_integer -- (P4(dviprt_cfg_item_t *, uchar *, dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *, uchar *, dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_strings -- (P4(dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_rpexpr -- (P6(dviprt_cfg_item_t *,uchar *,int , dviprt_cfg_t *,dviprt_cfg_i *,int)); -+ (dviprt_cfg_item_t *,uchar *,int , dviprt_cfg_t *,dviprt_cfg_i *,int); - private int dviprt_set_code -- (P4(dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *); - --private long dviprt_oct2long(P3(uchar *,uchar *,uchar **)); --private long dviprt_dec2long(P3(uchar *,uchar *,uchar **)); --private long dviprt_hex2long(P3(uchar *,uchar *,uchar **)); -+private long dviprt_oct2long(uchar *,uchar *,uchar **); -+private long dviprt_dec2long(uchar *,uchar *,uchar **); -+private long dviprt_hex2long(uchar *,uchar *,uchar **); - --private int dviprt_printtokenerror(P4(dviprt_cfg_i *,char *,int ,int)); -+private int dviprt_printtokenerror(dviprt_cfg_i *,char *,int ,int); - - /*--- macros ---*/ - #define strlcmp(tmplt,str,len) \ -@@ -1433,7 +1433,9 @@ - char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL }; - char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL }; - --private FILE *dviprt_messagestream = stderr; -+private FILE *dviprt_messagestream; -+private void dviprt_messagestream_construct (void) __attribute__((constructor)); -+private void dviprt_messagestream_construct (void) { dviprt_messagestream = stderr; } - - /*--- library functions ---*/ - int -@@ -1568,16 +1570,16 @@ - - - /*--- forward declarations ---*/ --private int dviprt_getmaximalwidth(P1(dviprt_print *)); --private int dviprt_flush_buffer(P2(dviprt_print *,uchar far *)); --private int dviprt_output_transpose(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_output_nontranspose(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_output_nontranspose_reverse(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_reverse_bits(P2(uchar far *,uint)); --private int dviprt_transpose8x8(P4(uchar far *,uint, uchar far *,uint)); --private int dviprt_output_expr(P4(dviprt_print *,int,uint,uint)); --private int dviprt_default_outputproc(P3(uchar far *,long ,void *)); --private long dviprt_getbuffersize(P1(dviprt_print *)); -+private int dviprt_getmaximalwidth(dviprt_print *); -+private int dviprt_flush_buffer(dviprt_print *,uchar far *); -+private int dviprt_output_transpose(dviprt_print *,uchar far *,uint ); -+private int dviprt_output_nontranspose(dviprt_print *,uchar far *,uint ); -+private int dviprt_output_nontranspose_reverse(dviprt_print *,uchar far *,uint ); -+private int dviprt_reverse_bits(uchar far *,uint); -+private int dviprt_transpose8x8(uchar far *,uint, uchar far *,uint); -+private int dviprt_output_expr(dviprt_print *,int,uint,uint); -+private int dviprt_default_outputproc(uchar far *,long ,void *); -+private long dviprt_getbuffersize(dviprt_print *); - - /*--- library functions ---*/ - long -@@ -1618,7 +1620,7 @@ - int - dviprt_setstream - #ifdef __PROTOTYPES__ -- (dviprt_print *pprint,int (*func)(P3(uchar far *,long ,void*)),void *pstream) -+ (dviprt_print *pprint,int (*func)(uchar far *,long ,void*),void *pstream) - #else - (pprint,func,pstream) - dviprt_print *pprint; -@@ -2264,19 +2266,19 @@ - #define DVIPRT_SUPPORT_PCL 1 - - /*--- forward declarations ---*/ --private long dviprt_null_getworksize(P2(dviprt_print *,long )); --private long dviprt_null_encode(P3(dviprt_print *,long ,int )); --private long dviprt_hex_getworksize(P2(dviprt_print *,long )); --private long dviprt_hex_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_null_getworksize(dviprt_print *,long ); -+private long dviprt_null_encode(dviprt_print *,long ,int ); -+private long dviprt_hex_getworksize(dviprt_print *,long ); -+private long dviprt_hex_encode(dviprt_print *,long ,int ); - #if DVIPRT_SUPPORT_FAX --private long dviprt_fax_getworksize(P2(dviprt_print *,long )); --private long dviprt_fax_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_fax_getworksize(dviprt_print *,long ); -+private long dviprt_fax_encode(dviprt_print *,long ,int ); - #endif - #if DVIPRT_SUPPORT_PCL --private long dviprt_pcl1_getworksize(P2(dviprt_print *,long )); --private long dviprt_pcl1_encode(P3(dviprt_print *,long ,int )); --private long dviprt_pcl2_getworksize(P2(dviprt_print *,long )); --private long dviprt_pcl2_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_pcl1_getworksize(dviprt_print *,long ); -+private long dviprt_pcl1_encode(dviprt_print *,long ,int ); -+private long dviprt_pcl2_getworksize(dviprt_print *,long ); -+private long dviprt_pcl2_encode(dviprt_print *,long ,int ); - #endif - - private dviprt_encoder dviprt_encoder_list[] = { -@@ -2468,9 +2470,9 @@ - int o_count; - int o_bufcount; - } FaxEncodeInfo; --private int dviprt_fax_set_white(P2(int,FaxEncodeInfo *)); --private int dviprt_fax_set_black(P2(int,FaxEncodeInfo *)); --private int dviprt_fax_set_bitcount(P2(FaxEncode_t *,FaxEncodeInfo *)); -+private int dviprt_fax_set_white(int,FaxEncodeInfo *); -+private int dviprt_fax_set_black(int,FaxEncodeInfo *); -+private int dviprt_fax_set_bitcount(FaxEncode_t *,FaxEncodeInfo *); - - private long - dviprt_fax_encode(dviprt_print *pprint,long s,int f) diff --git a/print/ghostscript-gpl/files/patch-src:dviprlib.h b/print/ghostscript-gpl/files/patch-src:dviprlib.h deleted file mode 100644 index 2a671205b46d..000000000000 --- a/print/ghostscript-gpl/files/patch-src:dviprlib.h +++ /dev/null @@ -1,38 +0,0 @@ ---- src/dviprlib.h.orig Tue May 13 16:10:34 1997 -+++ src/dviprlib.h Sun Nov 10 23:32:53 2002 -@@ -337,23 +337,23 @@ - #ifdef dviprlib_implementation - typedef struct { - int no; -- long (*getworksize)(P2(dviprt_print *,long )); -- long (*encode)(P3(dviprt_print *,long,int)); -+ long (*getworksize)(dviprt_print *,long ); -+ long (*encode)(dviprt_print *,long,int); - } dviprt_encoder; - - #define liblocal private - --liblocal dviprt_encoder *dviprt_getencoder_(P1(int )); --liblocal int dviprt_setcfgbuffer_(P3(dviprt_cfg_i *,int ,int )); --liblocal int dviprt_resetcfgbuffer_(P1(dviprt_cfg_i *)); --liblocal int dviprt_initcfg_(P2(dviprt_cfg_t *,dviprt_cfg_i *)); --liblocal int dviprt_printmessage(P2(char *,int )); --liblocal int dviprt_printerror(P2(char *,int )); --liblocal int dviprt_printwarning(P2(char *,int )); --liblocal int dviprt_printcfgerror(P3(dviprt_cfg_i *,char *,int )); --liblocal int dviprt_printcfgwarning(P3(dviprt_cfg_i *,char *,int )); -+liblocal dviprt_encoder *dviprt_getencoder_(int ); -+liblocal int dviprt_setcfgbuffer_(dviprt_cfg_i *,int ,int ); -+liblocal int dviprt_resetcfgbuffer_(dviprt_cfg_i *); -+liblocal int dviprt_initcfg_(dviprt_cfg_t *,dviprt_cfg_i *); -+liblocal int dviprt_printmessage(char *,int ); -+liblocal int dviprt_printerror(char *,int ); -+liblocal int dviprt_printwarning(char *,int ); -+liblocal int dviprt_printcfgerror(dviprt_cfg_i *,char *,int ); -+liblocal int dviprt_printcfgwarning(dviprt_cfg_i *,char *,int ); - --extern int dviprt_print_headercomment_(P4(char *,char *,char *,FILE *)); -+extern int dviprt_print_headercomment_(char *,char *,char *,FILE *); - extern char dviprt_message_buffer[]; - #endif dviprlib_implementation - diff --git a/print/ghostscript-gpl/files/patch-src:gdevdmpr.c b/print/ghostscript-gpl/files/patch-src:gdevdmpr.c deleted file mode 100644 index 47e980154ccd..000000000000 --- a/print/ghostscript-gpl/files/patch-src:gdevdmpr.c +++ /dev/null @@ -1,38 +0,0 @@ ---- src/gdevdmpr.c.orig Tue May 13 20:43:37 1997 -+++ src/gdevdmpr.c Sun Nov 10 21:19:41 2002 -@@ -41,7 +41,7 @@ - /* include library header. */ - #include "dviprlib.h" - --extern FILE *lib_fopen(P1(const char *)); -+extern FILE *lib_fopen(const char *); - - #define LOCAL_DEBUG 0 - -@@ -87,12 +87,12 @@ - private dev_proc_close_device(gdev_dmprt_close); - - /* declarations of sub functions to get printer properties. */ --private void gdev_dmprt_init_printer_props(P1(gx_device_dmprt *)); --private int gdev_dmprt_get_printer_props(P2(gx_device_dmprt *,char *)); --private int gdev_dmprt_check_code_props(P2(byte * ,int )); --private FILE *gdev_dmprt_dviprt_lib_fopen(P2(const char *,char *)); -+private void gdev_dmprt_init_printer_props(gx_device_dmprt *); -+private int gdev_dmprt_get_printer_props(gx_device_dmprt *,char *); -+private int gdev_dmprt_check_code_props(byte * ,int ); -+private FILE *gdev_dmprt_dviprt_lib_fopen(const char *,char *); - --private int gdev_dmprt_error_no_dviprt_to_gs(P1(int )); -+private int gdev_dmprt_error_no_dviprt_to_gs(int ); - - /* The device descriptor */ - gx_device_procs prn_dmprt_procs = { -@@ -846,7 +846,7 @@ - if (env) { - strcpy(fname,env); - strcat(fname, -- gp_file_name_concat_string(env,strlen(env),fname,strlen(fnamebase))); -+ gp_file_name_concat_string(env,strlen(env))); - strcat(fname,fnamebase); - fp = fopen(fname,gp_fmode_rb); - } diff --git a/print/ghostscript-gpl/files/patch-src:gdevdmpr.mak b/print/ghostscript-gpl/files/patch-src:gdevdmpr.mak deleted file mode 100644 index 9136172873fa..000000000000 --- a/print/ghostscript-gpl/files/patch-src:gdevdmpr.mak +++ /dev/null @@ -1,21 +0,0 @@ ---- src/gdevdmpr.mak.orig Mon May 1 20:24:43 2000 -+++ src/gdevdmpr.mak Mon May 1 20:26:23 2000 -@@ -1,8 +1,12 @@ - ### ---------------- Dot matrix printer device ---------------- ### --dmprt_=gdevdmpr.$(OBJ) dviprlib.$(OBJ) gdevprn.$(OBJ) -+dmprt_=$(GLOBJ)gdevdmpr.$(OBJ) $(GLOBJ)dviprlib.$(OBJ) $(GLOBJ)gdevprn.$(OBJ) - --dmprt.dev: $(dmprt_) -- $(SETDEV) dmprt $(dmprt_) -- $(ADDMOD) dmprt -ps dmp_init --gdevdmpr.$(OBJ): gdevdmpr.c dviprlib.h $(PDEVH) --dviprlib.$(OBJ): dviprlib.c dviprlib.h -+$(DD)dmprt.dev: $(dmprt_) -+ $(SETDEV) $(DD)dmprt $(dmprt_) -+ $(ADDMOD) $(DD)dmprt -ps dmp_init -+ -+$(GLOBJ)gdevdmpr.$(OBJ): $(GLSRC)gdevdmpr.c $(GLSRC)dviprlib.h $(PDEVH) -+ $(GLCC) $(GLO_)gdevdmpr.$(OBJ) $(C_) $(GLSRC)gdevdmpr.c -+ -+$(GLOBJ)dviprlib.$(OBJ): $(GLSRC)dviprlib.c $(GLSRC)dviprlib.h -+ $(GLCC) $(GLO_)dviprlib.$(OBJ) $(C_) $(GLSRC)dviprlib.c diff --git a/print/ghostscript-gpl/files/patch-src:gdevl256.c b/print/ghostscript-gpl/files/patch-src:gdevl256.c new file mode 100644 index 000000000000..3102abf74716 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-src:gdevl256.c @@ -0,0 +1,17 @@ +--- src/gdevl256.c.orig Fri Feb 22 07:24:51 2002 ++++ src/gdevl256.c Tue May 20 03:08:15 2003 +@@ -147,10 +147,12 @@ + /* for compatibility with the older display modes: */ + /* these are indexed as 0.0.R0.G0.B0.R1.G1.B1. */ + gx_color_index +-lvga256_map_rgb_color(gx_device * dev, gx_color_value r, gx_color_value g, +- gx_color_value b) ++lvga256_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { + #define cv_bits(v,n) (v >> (gx_color_value_bits - n)) ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; + ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5); + static const byte cube_bits[32] = + {0, 128, 128, 128, 128, 128, 128, 128, 128, 128, diff --git a/print/ghostscript-gpl/files/patch-src:gdevlx50.c b/print/ghostscript-gpl/files/patch-src:gdevlx50.c new file mode 100644 index 000000000000..01ceae208cd3 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-src:gdevlx50.c @@ -0,0 +1,17 @@ +--- src/gdevlx50.c.orig Thu May 15 07:38:07 2003 ++++ src/gdevlx50.c Thu May 15 08:02:58 2003 +@@ -2603,9 +2603,12 @@ + + /* Map CMYK to color. */ + private gx_color_index +-lx5000_map_cmyk_color(gx_device * dev, gx_color_value cyan, +- gx_color_value magenta, gx_color_value yellow, gx_color_value black) ++lx5000_map_cmyk_color(gx_device * dev, const gx_color_value cv[]) + { ++ gx_color_value cyan = cv[0]; ++ gx_color_value magenta = cv[1]; ++ gx_color_value yellow = cv[2]; ++ gx_color_value black = cv[3]; + int bpc = dev->color_info.depth / 4; + int drop = sizeof(gx_color_value) * 8 - bpc; + gx_color_index color = diff --git a/print/ghostscript-gpl/files/patch-src:gdevsgi.c b/print/ghostscript-gpl/files/patch-src:gdevsgi.c deleted file mode 100644 index 96d3891fc9e5..000000000000 --- a/print/ghostscript-gpl/files/patch-src:gdevsgi.c +++ /dev/null @@ -1,16 +0,0 @@ ---- src/gdevsgi.c.orig Fri Feb 22 07:24:52 2002 -+++ src/gdevsgi.c Sun Nov 10 22:55:30 2002 -@@ -32,8 +32,11 @@ - sgi_prn_device(sgi_procs, "sgirgb", 3, 24, 255, 255, sgi_print_page); - - private gx_color_index --sgi_map_rgb_color(gx_device *dev, ushort r, ushort g, ushort b) --{ ushort bitspercolor = dev->color_info.depth / 3; -+sgi_map_rgb_color(gx_device *dev, const ushort cv[]) -+{ ushort r = cv[0]; -+ ushort g = cv[1]; -+ ushort b = cv[2]; -+ ushort bitspercolor = dev->color_info.depth / 3; - ulong max_value = (1 << bitspercolor) - 1; - return ((r*max_value / gx_max_color_value) << (bitspercolor * 2)) + - ((g*max_value / gx_max_color_value) << bitspercolor) + diff --git a/print/ghostscript-gpl/files/patch-src:gdevvglb.c b/print/ghostscript-gpl/files/patch-src:gdevvglb.c new file mode 100644 index 000000000000..b21032ce8779 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-src:gdevvglb.c @@ -0,0 +1,18 @@ +--- src/gdevvglb.c.orig Fri Feb 22 07:24:52 2002 ++++ src/gdevvglb.c Tue May 20 23:57:29 2003 +@@ -152,10 +152,12 @@ + } + + private gx_color_index +-vgalib_map_rgb_color(gx_device * dev, gx_color_value red, +- gx_color_value green, gx_color_value blue) ++vgalib_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { +- return pc_4bit_map_rgb_color(dev, red, green, blue); ++ gx_color_value red = cv[0]; ++ gx_color_value green = cv[1]; ++ gx_color_value blue = cv[2]; ++ return pc_4bit_map_rgb_color(dev, cv); + } + + private int diff --git a/print/ghostscript-gpl/pkg-descr b/print/ghostscript-gpl/pkg-descr index 122e09a3a7b7..60c6e9e1e2c5 100644 --- a/print/ghostscript-gpl/pkg-descr +++ b/print/ghostscript-gpl/pkg-descr @@ -11,8 +11,8 @@ This port includes add-on packages (not part of the official gs release) - http://hp.sourceforge.net/gs-hp2200.php o DJ970 driver for HP DeskJet 970CXi - http://www.harsch.net/Ghostscript/ghostscript.html - o Spacial drivers for verious printer models mainly sold in Japan - - Alps, Canon, Epson, NEC, Ricoh,... + o Special drivers for verious printer models + - Alps, Canon, Epson, NEC, Lexmark, Ricoh,... o Additional contributed uniprint driver profiles for - Epson Stylus Color 740 and Epson LQ-1170 diff --git a/print/ghostscript-gpl/pkg-plist b/print/ghostscript-gpl/pkg-plist index 21f9ead5ac23..f29333db37bf 100644 --- a/print/ghostscript-gpl/pkg-plist +++ b/print/ghostscript-gpl/pkg-plist @@ -38,7 +38,6 @@ bin/wftopfa %%SHLIB%%lib/libgs.so.%%SHLIB_VER%% %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/alps/README.gdevalps %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/bj10v/gdev10v.jis -%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/dmprt/gdevdmpr.sj %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/ChangeLog %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/ert.txt %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/gdevepag.txt @@ -48,6 +47,9 @@ bin/wftopfa %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/eplaser/readme-eplaser-652-jp.euc %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/gdi/README %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lips/Gdevlips.htm +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/README +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/RELEASE_NOTES +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/md2k/README.jis %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/MJ700V2C.FAQ %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/README.mjc @@ -55,6 +57,64 @@ bin/wftopfa %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/README.noz %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/cpem.doc %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/npdl/gdevnpdl.jis +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78ms-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78ms-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/83pv-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90ms-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90ms-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90pv-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90pv-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-0 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-1 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-2 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/ETen-B5-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/ETen-B5-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/GBK-EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/GBK-EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Hankaku +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Hiragana +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Identity-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Identity-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSC-Johab-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSC-Johab-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Katakana +share/ghostscript/%%GS_VERSION%%/Resource/CMap/NWP-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/NWP-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Roman +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniHojo-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/WP-Symbol +share/ghostscript/%%GS_VERSION%%/Resource/Decoding/StandardEncoding +share/ghostscript/%%GS_VERSION%%/Resource/Decoding/Unicode share/ghostscript/%%GS_VERSION%%/doc/API.htm share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm share/ghostscript/%%GS_VERSION%%/doc/Bug-info.htm @@ -151,15 +211,12 @@ share/ghostscript/%%GS_VERSION%%/lib/cbjc800.ppd share/ghostscript/%%GS_VERSION%%/lib/cdj550.upp share/ghostscript/%%GS_VERSION%%/lib/cdj690.upp share/ghostscript/%%GS_VERSION%%/lib/cdj690ec.upp -share/ghostscript/%%GS_VERSION%%/lib/cidfmap share/ghostscript/%%GS_VERSION%%/lib/cid2code.ps +share/ghostscript/%%GS_VERSION%%/lib/cidfmap share/ghostscript/%%GS_VERSION%%/lib/decrypt.ps -share/ghostscript/%%GS_VERSION%%/lib/dmp_init.ps -share/ghostscript/%%GS_VERSION%%/lib/dmp_site.ps share/ghostscript/%%GS_VERSION%%/lib/dnj750c.upp share/ghostscript/%%GS_VERSION%%/lib/dnj750m.upp share/ghostscript/%%GS_VERSION%%/lib/docie.ps -share/ghostscript/%%GS_VERSION%%/lib/escp_24.src share/ghostscript/%%GS_VERSION%%/lib/errpage.ps share/ghostscript/%%GS_VERSION%%/lib/font2c.ps share/ghostscript/%%GS_VERSION%%/lib/font2pcl.ps @@ -172,6 +229,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_cidcm.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciddc.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cidfm.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cidfn.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_cidtt.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciecs2.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciecs3.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cmap.ps @@ -192,6 +250,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_dscp.ps share/ghostscript/%%GS_VERSION%%/lib/gs_epsf.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fapi.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fform.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_fntem.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fonts.ps share/ghostscript/%%GS_VERSION%%/lib/gs_frsd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_icc.ps @@ -223,6 +282,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_pfile.ps share/ghostscript/%%GS_VERSION%%/lib/gs_rdlin.ps share/ghostscript/%%GS_VERSION%%/lib/gs_res.ps share/ghostscript/%%GS_VERSION%%/lib/gs_resmp.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_resst.ps share/ghostscript/%%GS_VERSION%%/lib/gs_s.xbm share/ghostscript/%%GS_VERSION%%/lib/gs_s.xpm share/ghostscript/%%GS_VERSION%%/lib/gs_s_m.xbm @@ -230,6 +290,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_sepr.ps share/ghostscript/%%GS_VERSION%%/lib/gs_setpd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_statd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_std_e.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_stres.ps share/ghostscript/%%GS_VERSION%%/lib/gs_sym_e.ps share/ghostscript/%%GS_VERSION%%/lib/gs_t.xbm share/ghostscript/%%GS_VERSION%%/lib/gs_t.xpm @@ -267,6 +328,7 @@ share/ghostscript/%%GS_VERSION%%/lib/pdf_draw.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_font.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_main.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_ops.ps +share/ghostscript/%%GS_VERSION%%/lib/pdf_rbld.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_sec.ps share/ghostscript/%%GS_VERSION%%/lib/pdfopt.ps share/ghostscript/%%GS_VERSION%%/lib/pdfwrite.ps @@ -512,16 +574,18 @@ share/ghostscript/fonts/z003034l.pfm @dirrm share/ghostscript/%%GS_VERSION%%/lib @dirrm share/ghostscript/%%GS_VERSION%%/examples @dirrm share/ghostscript/%%GS_VERSION%%/doc -@dirrm share/ghostscript/%%GS_VERSION%% +@dirrm share/ghostscript/%%GS_VERSION%%/Resource/Decoding +@dirrm share/ghostscript/%%GS_VERSION%%/Resource/CMap +@dirrm share/ghostscript/%%GS_VERSION%%/Resource @unexec rmdir %D/share/ghostscript 2>/dev/null || true %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/npdl %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/mjc %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/md2k +%%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/lxm3200 %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/lips %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/gdi %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/eplaser %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/epag -%%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/dmprt %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/bj10v %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/alps %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%% diff --git a/print/ghostscript-gpl/scripts/configure b/print/ghostscript-gpl/scripts/configure index d4a4cad25d3a..bd07968d029e 100644 --- a/print/ghostscript-gpl/scripts/configure +++ b/print/ghostscript-gpl/scripts/configure @@ -12,11 +12,16 @@ x11devs="x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 \ x11gray2 x11gray4 x11mono x11rg16x x11rg32x" fi -if [ ! -z "${GS_OPTIONS}" ]; then - set ${GS_OPTIONS} +if [ -n "${WITH_SVGALIB}" ]; then +svgalibdevs="lvga256 vgalib" +fi + +if [ ! -z "${GS_DRIVERS_LIST}" ]; then + set ${GS_DRIVERS_LIST} else set \ $x11devs \ + $svgalibdevs \ md2k md5k \ md50Mono md50Eco md1xMono \ appledmp iwhi iwlo iwlq hl7x0 bj10e \ @@ -26,7 +31,6 @@ else lbp1310 lbp1510 lbp1610 lbp1710 lbp1810 lbp1910 \ lips2p lips3 lips4 bjc880j lips4v \ m8510 coslw2p coslwxl uniprint \ - dmprt \ lj250 declj250 ap3250 epson eps9mid eps9high lp8000 \ epag \ escpage lp2000 \ @@ -45,7 +49,9 @@ else cljet5 cljet5c cljet5pr lj5mono lj5gray \ pj pjetxl pjxl paintjet \ pjxl300 pxlmono pxlcolor \ - ijs ibmpro jetp3852 imagen fs600 lxm5700m cp50 necp6 \ + ijs ibmpro jetp3852 imagen fs600 lxm5700m \ + lxm3200 lx5000 lex2050 lex3200 lex5700 lex7000 \ + cp50 necp6 \ npdl \ oce9050 oki182 okiibm atx23 atx24 atx38 r4081 \ rpdl \ @@ -64,12 +70,13 @@ else bit bitrgb bitcmyk plan9bm pam pbm pbmraw \ pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw \ pkm pkmraw pksm pksmraw \ - pngmono pnggray png16 png256 png16m pnga psmono psgray psrgb \ + pngmono pnggray png16 png256 png16m pnga \ + psmono psgray psrgb \ pswrite epswrite sgirgb sunhmono \ tiffcrle tiffg3 tiffg32d tiffg4 \ tiff12nc tiff24nc tifflzw tiffpack \ bbox \ - devicen perm spotrgb spotcmyk + devicen perm spotcmyk fi for i; do @@ -96,6 +103,8 @@ Have fun with this new configuration style ! -andreas \n\n\ "x11mono" "X Window System masquer. as black-and-white device" "$status_x11mono" \ "x11rg16x" "X Window System with G5/B5/R6 pixel layout for testing" "$status_x11rg16x" \ "x11rg32x" "X Window System with G11/B10/R11 pixel layout for testing" "$status_x11rg32x" \ + "lvga256" "SVGAlib, 256-color VGA modes" "$status_lvga256" \ + "vgalib" "SVGAlib, 16-color VGA modes" "$status_vgalib" \ "md2k" "ALPS MD-2000/2010/4000/1300/1500/5000 [MD2K]" "$status_md2k" \ "md5k" "ALPS MD-5000 Eco Mode [MD2K]" "$status_md5k" \ "md50Mono" "ALPS MD-5000 Monochrome [ALPS]" "$status_md50Mono" \ @@ -133,7 +142,6 @@ Have fun with this new configuration style ! -andreas \n\n\ "coslwxl" "CoStar LabelWriter XL" "$status_coslwxl" \ "stp" "Configurable Canon/Epson/Lexmark/HP driver [Gimp-Print]" "$status_stp" \ "uniprint" "Configurable ESC/P,ESC/P2,HP-RTL/PCL,P2X mono/color driver" "$status_uniprint" \ - "dmprt" "Configurable dot matrix printer driver [DMPRT]" "$status_dmprt" \ "lj250" "DEC LJ250 Companion color printer" "$status_lj250" \ "declj250" "DEC LJ250 driver (alternate)" "$status_declj250" \ "ap3250" "Epson ActionPrinter 3250" "$status_ap3250" \ @@ -233,6 +241,12 @@ Have fun with this new configuration style ! -andreas \n\n\ "imagen" "Imagen ImPress printers" "$status_imagen" \ "fs600" "Kyocera FS-600 (600 dpi)" "$status_fs600" \ "lxm5700m" "Lexmark 5700 monotone" "$status_lxm5700m" \ + "lxm3200" "Lexmark 3200/Z12/Z22/Z31/Z32 [LXM3200]" "$status_lxm3200" \ + "lx5000" "Lexmark 5000/Z51/Z82 [LX5000]" "$status_lx5000" \ + "lex2050" "Lexmark 2050 [LEX7000]" "$status_lex2050" \ + "lex3200" "Lexmark 3200 [LEX7000]" "$status_lex3200" \ + "lex5700" "Lexmark 5700 [LEX7000]" "$status_lex5700" \ + "lex7000" "Lexmark 7000 [LEX7000]" "$status_lex7000" \ "cp50" "Mitsubishi CP50 color" "$status_cp50" \ "necp6" "NEC PinWriter P6/P6+/P60, 360x360 DPI resol" "$status_necp6" \ "npdl" "NEC Printer Description Language [NPDL]" "$status_npdl" \ @@ -313,7 +327,7 @@ Have fun with this new configuration style ! -andreas \n\n\ "png16" "PNG 4-bit color Portable Network Graphics" "$status_png16" \ "png256" "PNG 8-bit color Portable Network Graphics" "$status_png256" \ "png16m" "PNG 24-bit color Portable Network Graphics" "$status_png16m" \ - "pnga" "PNG with transparency" "$status_pnga" \ + "pngalpha" "PNG 32-bit RGBA Portable Network Graphics" "$status_pngalpha" \ "psmono" "PostScript (Level 1) monochrome image" "$status_psmono" \ "psgray" "PostScript (Level 1) 8-bit gray image" "$status_psgray" \ "psrgb" "PostScript (Level 2) 24-bit color image" "$status_psrgb" \ @@ -332,7 +346,6 @@ Have fun with this new configuration style ! -andreas \n\n\ "bbox" "Bounding box output" "$status_bbox" \ "devicen" "DeviceN process color model device" "$status_devicen" \ "perm" "DeviceN which permutes color components" "$status_perm" \ - "spotrgb" "DeviceN with RGB and spot color support" "$status_spotrgb" \ "spotcmyk" "DeviceN with CMYK and spot color support" "$status_spotcmyk" \ 2> $tempfile diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile index fe25669f2a38..14d528db12cd 100644 --- a/print/ghostscript8/Makefile +++ b/print/ghostscript8/Makefile @@ -7,7 +7,7 @@ PORTNAME= ghostscript PORTVERSION= ${GS_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gs_fonts,bjc250/} \ http://hp.sourceforge.net/:hp2200 \ @@ -20,7 +20,9 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:gs_srcs,gs_fonts,bjc250/} \ http://www.epkowa.on.arena.ne.jp/pips/data/V306/:eplaser \ http://www.hi.is.uec.ac.jp/~osamuw/gdevnpdl/:npdl \ http://www.linuxprinting.org/download/printing/samsung-gdi/:gdi \ - ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts \ + http://www.linuxprinting.org/download/printing/:lxm3200 \ + http://homepage.powerup.com.au/~pbwest/lexmark/:lx5000 \ + ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:gs_fonts \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs${GS_VERSION:S/.//}/:gs_srcs MASTER_SITE_SUBDIR= ghostscript/:gs_srcs,gs_fonts,ports_jp_gs \ bjc250gs/:bjc250 \ @@ -37,17 +39,20 @@ DISTFILES= ${GS_SRCS}:gs_srcs \ ${BJC250_SRCS}:bjc250 \ ${CPCA_SRCS}:cpca \ ${LIPS_SRCS}:lips \ - ${DMPRT_SRCS}:ports_jp_gs \ ${EPAG_SRCS}:epag \ ${EPLASER_SRCS}:eplaser \ ${MJC_SRCS}:ports_jp \ ${NPDL_SRCS}:npdl \ - ${GDI_SRCS}:gdi + ${GDI_SRCS}:gdi \ + ${LXM3200_SRCS}:lxm3200 \ + ${LX5000_SRCS}:lx5000 \ + ${LEX7000_SRCS}:lx5000 + DIST_SUBDIR= ghostscript EXTRACT_ONLY= ${GS_SRCS} MAINTAINER= ports@FreeBSD.org -COMMENT= AFPL Postscript interpreter version 7 +COMMENT= AFPL Postscript interpreter LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png @@ -59,10 +64,11 @@ USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= yes MAKE_ENV= CC="${CC}" CXX="${CXX}" CFLAGS_STANDARD="${CFLAGS}" \ - XCFLAGS="${XCFLAGS}" WITHOUT_X11="${WITHOUT_X11}" -PLIST_SUB= GS_VERSION=${GS_VERSION} + XCFLAGS="${XCFLAGS}" +PLIST_SUB= GS_VERSION="${GS_VERSION}" -SCRIPTS_ENV= GS_OPTIONS="${GS_OPTIONS}" WITHOUT_X11="${WITHOUT_X11}" +SCRIPTS_ENV= GS_OPTIONS="${GS_OPTIONS}" WITHOUT_X11="${WITHOUT_X11}" \ + WITH_SVGALIB="${WITH_SVGALIB}" MAN1= dvipdf.1 font2c.1 gs.1 gslp.1 gsnd.1 pdf2dsc.1 pdf2ps.1 \ pdfopt.1 pf2afm.1 pfbtopfa.1 printafm.1 ps2ascii.1 \ @@ -87,6 +93,10 @@ PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nox11 USE_XLIB= yes .endif +.if defined(WITH_SVGALIB) +LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib +.endif + .if defined(WITH_SHLIB) .undef WITHOUT_X11 USE_GNOME= gtk12 @@ -159,12 +169,6 @@ LIPS_VERS= 2.4.0 LIPS_NAME= gdevlips-${LIPS_VERS} LIPS_SRCS= ${LIPS_NAME}.tar.gz -# DMPRT - additional driver for generic dot matrix printers -DMPRT= dmprt -DMPRT_VERS= 2.01 -DMPRT_NAME= ${DMPRT}-${DMPRT_VERS} -DMPRT_SRCS= ${DMPRT_NAME}.tar.gz - # EPAG - additional driver for Epson ESC/Page printers # http://www.humblesoft.com/gdevepag.html EPAG= epag @@ -196,10 +200,27 @@ GDI= gdi GDI_NAME= Samsung-SmartGDI-all-GS GDI_SRCS= ${GDI_NAME}.tar.gz +# LXM3200 - additional driver for Lexmark 3200/Z12/Z22/Z31/Z32 +LXM3200= lxm3200 +LXM3200_VERS= 20030501 +LXM3200_NAME= ${LXM3200}-tweaked-${LXM3200_VERS} +LXM3200_SRCS= ${LXM3200_NAME}.tar.gz + +# LX5000 - additional driver for Lexmark 5000/Z51/Z82 +# http://homepage.powerup.com.au/~pbwest/lexmark/lexmark.html +LX5000= lx5000 +LX5000_SRCS= gdevlx50.c + +# LEX7000 - additional driver for Lexmark 2050/3200/5700/7000 +# http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/ +LEX7000= lex7000 +LEX7000_SRCS= gs6.0.lexmark7000.patch + # contributed uniprint profiles CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp +.include <bsd.port.pre.mk> .SILENT: pre-everything:: @@ -249,9 +270,6 @@ post-extract: ${ECHO_MSG} ">>> extracting ${LIPS_SRCS} ..." ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LIPS_SRCS} ${LN} -sf ${LIPS_NAME} ${WRKSRC}/${LIPS} -# for DMPRT driver - ${ECHO_MSG} ">>> extracting ${DMPRT_SRCS} ..." - ${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${DMPRT_SRCS} # for EPAG driver ${ECHO_MSG} ">>> extracting ${EPAG_SRCS} ..." ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EPAG_SRCS} @@ -269,18 +287,25 @@ post-extract: # for GDI driver ${ECHO_MSG} ">>> extracting ${GDI_SRCS} ..." ${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${DIST_SUBDIR}/${GDI_SRCS} +# for LXM3200 driver + ${ECHO_MSG} ">>> extracting ${LXM3200_SRCS} ..." + ${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/${LXM3200_SRCS} + ${LN} -sf ${LXM3200_NAME} ${WRKSRC}/${LXM3200} +# for LX5000 driver + ${ECHO_MSG} ">>> extracting ${LX5000_SRCS} ..." + ${CP} ${DISTDIR}/${DIST_SUBDIR}/${LX5000_SRCS} ${WRKSRC}/src +# for LEX7000 driver + ${ECHO_MSG} ">>> extracting ${LEX7000_SRCS} ..." + ${MKDIR} ${WRKSRC}/${LEX7000} + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${LEX7000_SRCS} | \ + ${PATCH} -d ${WRKSRC}/${LEX7000} -f -s -N -E -p1 \ + 2>/dev/null || ${TRUE} post-patch: ${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \ ${WRKSRC}/src/unix-gcc.mak ${REINPLACE_CMD} -e 's|\. de|\.|g' \ ${WRKSRC}/src/unixinst.mak - ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \ - ${WRKSRC}/lib/gs_res.ps -# for DMPRT driver - ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \ - s|%%GS_VERSION%%|${GS_VERSION}|g' \ - ${WRKSRC}/src/dmp_site.ps # here we apply the modifications necessary to build the 3rd party drivers # advantage: you see unmodified makefiles after a pure make extract @@ -318,10 +343,6 @@ pre-configure: ${ECHO_MSG} ">>> adding ${LIPS} driver to contrib.mak ..." ${CAT} ${WRKSRC}/${LIPS_NAME}/gdevlips.mak \ >> ${WRKSRC}/src/contrib.mak -# for DMPRT driver - ${ECHO_MSG} ">>> adding ${DMPRT} driver to contrib.mak ..." - ${CAT} ${WRKSRC}/src/gdevdmpr.mak \ - >> ${WRKSRC}/src/contrib.mak # for EPAG driver ${ECHO_MSG} ">>> adding ${EPAG} driver to contrib.mak ..." ${SED} -e 's:npdl:epag:g' ${WRKSRC}/${NPDL_NAME}/gdevnpdl.mak \ @@ -344,6 +365,18 @@ pre-configure: ${ECHO_MSG} ">>> adding ${GDI} driver to contrib.mak ..." ${CAT} ${WRKSRC}/src/smartgdi-contrib.mak \ >> ${WRKSRC}/src/contrib.mak +# for LXM3200 driver + ${ECHO_MSG} ">>> adding ${LXM3200} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lxm3200.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak +# for LX5000 driver + ${ECHO_MSG} ">>> adding ${LX5000} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lx5000.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak +# for LEX7000 driver + ${ECHO_MSG} ">>> adding ${LEX7000} driver to contrib.mak ..." + ${CAT} ${FILESDIR}/lex7000.contrib.mak \ + >> ${WRKSRC}/src/contrib.mak pre-build: ${ECHO_MSG} ">>> in pre-build ..." @@ -404,6 +437,16 @@ pre-build: .for i in gdevnpdl.c ${LN} -sf ${WRKSRC}/${NPDL_NAME}/${i} ${WRKSRC}/src .endfor +# for LXM3200 driver + ${ECHO_MSG} ">>> creating symlinks for ${LXM3200} ..." +.for i in gdevlx32.c + ${LN} -sf ${WRKSRC}/${LXM3200_NAME}/${i} ${WRKSRC}/src +.endfor +# for LEX7000 driver + ${ECHO_MSG} ">>> creating symlinks for ${LEX7000} ..." +.for i in gdevlx7.c + ${LN} -sf ${WRKSRC}/${LEX7000}/src/${i} ${WRKSRC}/src +.endfor pre-install: ${ECHO_MSG} ">>> in pre-install ..." @@ -423,12 +466,6 @@ post-install: .else ${STRIP_CMD} ${PREFIX}/bin/gs .endif -# for DMPRT driver - ${ECHO_MSG} ">>> installing ${DMPRT} resources ..." -.for i in dmp_init.ps dmp_site.ps escp_24.src - ${INSTALL_DATA} ${WRKSRC}/src/${i} \ - ${DATADIR}/${GS_VERSION}/lib -.endfor # for EPAG driver ${ECHO_MSG} ">>> installing ${EPAG} utility in bindir ..." ${INSTALL_PROGRAM} ${WRKSRC}/${EPAG_NAME}/ert ${PREFIX}/bin @@ -472,13 +509,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/${LIPS_NAME}/${i} \ ${DOCSDIR}/${GS_VERSION}/${LIPS} .endfor -# for DMPRT driver - ${ECHO_MSG} ">>> installing ${DMPRT} docs ..." - ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${DMPRT} -.for i in gdevdmpr.sj - ${INSTALL_DATA} ${WRKSRC}/src/${i} \ - ${DOCSDIR}/${GS_VERSION}/${DMPRT} -.endfor # for EPAG driver ${ECHO_MSG} ">>> installing ${EPAG} docs ..." ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${EPAG} @@ -518,8 +548,15 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/src/${i} \ ${DOCSDIR}/${GS_VERSION}/${GDI} .endfor +# for LXM3200 driver + ${ECHO_MSG} ">>> installing ${LXM3200} docs ..." + ${MKDIR} ${DOCSDIR}/${GS_VERSION}/${LXM3200} +.for i in README RELEASE_NOTES Z12-Z31-QuickSetup + ${INSTALL_DATA} ${WRKSRC}/${LXM3200_NAME}/${i} \ + ${DOCSDIR}/${GS_VERSION}/${LXM3200} +.endfor .endif ${ECHO_MSG} "> post-installation tasks completed." .include "Makefile.inc" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/print/ghostscript8/Makefile.inc b/print/ghostscript8/Makefile.inc index cf63422dcf01..d980e2905804 100644 --- a/print/ghostscript8/Makefile.inc +++ b/print/ghostscript8/Makefile.inc @@ -1,4 +1,4 @@ # $FreeBSD$ -GS_VERSION= 8.00 +GS_VERSION= 8.10 diff --git a/print/ghostscript8/distinfo b/print/ghostscript8/distinfo index 9cf385b82519..46973a1229d7 100644 --- a/print/ghostscript8/distinfo +++ b/print/ghostscript8/distinfo @@ -1,4 +1,4 @@ -MD5 (ghostscript/ghostscript-8.00.tar.bz2) = f87b74758f8e73f899f0b3654e5887b1 +MD5 (ghostscript/ghostscript-8.10.tar.bz2) = fe2817648951839741cbfa48f7bf76de MD5 (ghostscript/ghostscript-fonts-std-6.0.tar.gz) = 8250132d6fcc6eb1419f505f06c7690b MD5 (ghostscript/ghostscript-fonts-other-6.0.tar.gz) = 1a643ae62ef166562e4d422b1a601272 MD5 (ghostscript/gs-hp2200.tar.gz) = cafe60c0003abe370579f9bfb1d27caa @@ -15,3 +15,6 @@ MD5 (ghostscript/eplaser-3.0.6-652.tgz) = a575b9f3424d0a9ab6fbb5619429a8fd MD5 (ghostscript/gdevmjc-0.8.tar.gz) = 228f41c3cccce22c8f477c7a9407527c MD5 (ghostscript/gdevnpdl-1.6.3.tar.gz) = 6c8dad13d07bbaf6e951d6d2d6b8a9f2 MD5 (ghostscript/Samsung-SmartGDI-all-GS.tar.gz) = e6963f6c9460a964fe57d38479bbdd41 +MD5 (ghostscript/lxm3200-tweaked-20030501.tar.gz) = 0f88082030c6eb66a95804a6cc9b9e6b +MD5 (ghostscript/gdevlx50.c) = 081e355c866316a56fbbff5b59f2b7cf +MD5 (ghostscript/gs6.0.lexmark7000.patch) = fd5018c18351bf64805fe5727be196de diff --git a/print/ghostscript8/files/lex7000.contrib.mak b/print/ghostscript8/files/lex7000.contrib.mak new file mode 100644 index 000000000000..a5f1a162b785 --- /dev/null +++ b/print/ghostscript8/files/lex7000.contrib.mak @@ -0,0 +1,21 @@ +# ------ The Lexmark 5700 and 7000 devices ------ # + +lex7000_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex7000.dev: $(lex7000_) $(DD)page.dev + $(SETPDEV) $(DD)lex7000 $(lex7000_) + +lex5700_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex5700.dev: $(lex5700_) $(DD)page.dev + $(SETPDEV) $(DD)lex5700 $(lex5700_) + +lex3200_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex3200.dev: $(lex3200_) $(DD)page.dev + $(SETPDEV) $(DD)lex3200 $(lex3200_) + +lex2050_=$(GLOBJ)gdevlx7.$(OBJ) +$(DD)lex2050.dev: $(lex2050_) $(DD)page.dev + $(SETPDEV) $(DD)lex2050 $(lex2050_) + +$(GLOBJ)gdevlx7.$(OBJ): $(GLSRC)gdevlx7.c $(PDEVH) + $(GLCC) $(GLO_)gdevlx7.$(OBJ) $(C_) $(GLSRC)gdevlx7.c + diff --git a/print/ghostscript8/files/lx5000.contrib.mak b/print/ghostscript8/files/lx5000.contrib.mak new file mode 100644 index 000000000000..f22c1dbb904c --- /dev/null +++ b/print/ghostscript8/files/lx5000.contrib.mak @@ -0,0 +1,11 @@ +### ----------------- LexMark 5000 printer ----------------------------- ### +### Note: this driver was contributed by users. Please contact: ### +### Peter B. West <p.west@uq.net.au> ### + +lx5000_=$(GLOBJ)gdevlx50.$(OBJ) +$(DD)lx5000.dev: $(lx5000_) + $(SETPDEV) $(DD)lx5000 $(lx5000_) + +$(GLOBJ)gdevlx50.$(OBJ): $(GLSRC)gdevlx50.c $(PDEVH) + $(GLCC) $(GLO_)gdevlx50.$(OBJ) $(C_) $(GLSRC)gdevlx50.c + diff --git a/print/ghostscript8/files/lxm3200.contrib.mak b/print/ghostscript8/files/lxm3200.contrib.mak new file mode 100644 index 000000000000..c670f6de111c --- /dev/null +++ b/print/ghostscript8/files/lxm3200.contrib.mak @@ -0,0 +1,10 @@ +### ---------------- Lexmark 3200 device ----------------- ### + +lxm3200_=$(GLOBJ)gdevlx32.$(OBJ) + +$(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev + $(SETPDEV) $(DD)lxm3200 $(lxm3200_) + +$(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h) + $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c + diff --git a/print/ghostscript8/files/patch-lib:gs_res.ps b/print/ghostscript8/files/patch-lib:gs_res.ps deleted file mode 100644 index 2e5169720649..000000000000 --- a/print/ghostscript8/files/patch-lib:gs_res.ps +++ /dev/null @@ -1,13 +0,0 @@ ---- lib/gs_res.ps.orig Mon Jul 16 01:09:41 2001 -+++ lib/gs_res.ps Fri Feb 8 07:12:09 2002 -@@ -248,8 +248,8 @@ - /pssystemparams 10 dict readonly def - } if - pssystemparams begin -- /FontResourceDir (/Resource/Font/) readonly .forcedef % pssys'params is r-o -- /GenericResourceDir (/Resource/) readonly .forcedef % pssys'params is r-o -+ /FontResourceDir (%%DATADIR%%/Resource/Font/) readonly .forcedef % pssys'params is r-o -+ /GenericResourceDir (%%DATADIR%%/Resource/) readonly .forcedef % pssys'params is r-o - /GenericResourcePathSep (/) readonly .forcedef % pssys'params is r-o - end - end diff --git a/print/ghostscript8/files/patch-lxm3200:gdevlx32.c b/print/ghostscript8/files/patch-lxm3200:gdevlx32.c new file mode 100644 index 000000000000..fef3a6452e40 --- /dev/null +++ b/print/ghostscript8/files/patch-lxm3200:gdevlx32.c @@ -0,0 +1,25 @@ +--- lxm3200/gdevlx32.c.orig Wed Apr 23 01:06:20 2003 ++++ lxm3200/gdevlx32.c Thu May 15 08:24:08 2003 +@@ -422,9 +422,11 @@ + * of the nearest color. + */ + private gx_color_index +-lxm3200_map_rgb_color(gx_device *dev, gx_color_value r, +- gx_color_value g, gx_color_value b) ++lxm3200_map_rgb_color(gx_device *dev, const gx_color_value cv[]) + { ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; + gx_color_index col; + int c, m, y; + +@@ -479,7 +481,7 @@ + break; + + default: +- col = gdev_prn_map_rgb_color(dev, r, g, b); ++ col = gdev_prn_map_rgb_color(dev, cv); + break; + } + diff --git a/print/ghostscript8/files/patch-src:dmp_site.ps b/print/ghostscript8/files/patch-src:dmp_site.ps deleted file mode 100644 index ee1a5717d641..000000000000 --- a/print/ghostscript8/files/patch-src:dmp_site.ps +++ /dev/null @@ -1,10 +0,0 @@ ---- src/dmp_site.ps.orig Tue May 27 09:57:00 1997 -+++ src/dmp_site.ps Tue Apr 2 23:05:45 2002 -@@ -1,6 +1,6 @@ - BeginConfig - %%%%%%%%%%%%%%%%%%%%%% Standard user cusomizations %%%%%%%%%%%%%%%%%%%%% --/printer (epsimage.src) -+/printer (%%DATADIR%%/%%GS_VERSION%%/lib/escp_24.src) - % horizontal / vertical - % /resolution [ 160.0 180.0 ] - % horizontal / vertical diff --git a/print/ghostscript8/files/patch-src:dviprlib.c b/print/ghostscript8/files/patch-src:dviprlib.c deleted file mode 100644 index c61ca748cbc2..000000000000 --- a/print/ghostscript8/files/patch-src:dviprlib.c +++ /dev/null @@ -1,134 +0,0 @@ ---- src/dviprlib.c.orig Tue May 13 16:14:09 1997 -+++ src/dviprlib.c Sun Nov 10 23:26:06 2002 -@@ -39,8 +39,8 @@ - - - /*--- forward declarations ---*/ --private int dviprt_read_S_cfg(P2(dviprt_cfg_t *,dviprt_cfg_i *)); --private int dviprt_read_QR_cfg(P2(dviprt_cfg_t *,dviprt_cfg_i *)); -+private int dviprt_read_S_cfg(dviprt_cfg_t *,dviprt_cfg_i *); -+private int dviprt_read_QR_cfg(dviprt_cfg_t *,dviprt_cfg_i *); - - /*--- library functions ---*/ - int -@@ -429,21 +429,21 @@ - - /*--- forward declarations ---*/ - private int dviprt_set_select -- (P4(dviprt_cfg_item_t *,uchar **,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar **,dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_integer -- (P4(dviprt_cfg_item_t *, uchar *, dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *, uchar *, dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_strings -- (P4(dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *); - private int dviprt_set_rpexpr -- (P6(dviprt_cfg_item_t *,uchar *,int , dviprt_cfg_t *,dviprt_cfg_i *,int)); -+ (dviprt_cfg_item_t *,uchar *,int , dviprt_cfg_t *,dviprt_cfg_i *,int); - private int dviprt_set_code -- (P4(dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *)); -+ (dviprt_cfg_item_t *,uchar *,dviprt_cfg_t *,dviprt_cfg_i *); - --private long dviprt_oct2long(P3(uchar *,uchar *,uchar **)); --private long dviprt_dec2long(P3(uchar *,uchar *,uchar **)); --private long dviprt_hex2long(P3(uchar *,uchar *,uchar **)); -+private long dviprt_oct2long(uchar *,uchar *,uchar **); -+private long dviprt_dec2long(uchar *,uchar *,uchar **); -+private long dviprt_hex2long(uchar *,uchar *,uchar **); - --private int dviprt_printtokenerror(P4(dviprt_cfg_i *,char *,int ,int)); -+private int dviprt_printtokenerror(dviprt_cfg_i *,char *,int ,int); - - /*--- macros ---*/ - #define strlcmp(tmplt,str,len) \ -@@ -1433,7 +1433,9 @@ - char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL }; - char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL }; - --private FILE *dviprt_messagestream = stderr; -+private FILE *dviprt_messagestream; -+private void dviprt_messagestream_construct (void) __attribute__((constructor)); -+private void dviprt_messagestream_construct (void) { dviprt_messagestream = stderr; } - - /*--- library functions ---*/ - int -@@ -1568,16 +1570,16 @@ - - - /*--- forward declarations ---*/ --private int dviprt_getmaximalwidth(P1(dviprt_print *)); --private int dviprt_flush_buffer(P2(dviprt_print *,uchar far *)); --private int dviprt_output_transpose(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_output_nontranspose(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_output_nontranspose_reverse(P3(dviprt_print *,uchar far *,uint )); --private int dviprt_reverse_bits(P2(uchar far *,uint)); --private int dviprt_transpose8x8(P4(uchar far *,uint, uchar far *,uint)); --private int dviprt_output_expr(P4(dviprt_print *,int,uint,uint)); --private int dviprt_default_outputproc(P3(uchar far *,long ,void *)); --private long dviprt_getbuffersize(P1(dviprt_print *)); -+private int dviprt_getmaximalwidth(dviprt_print *); -+private int dviprt_flush_buffer(dviprt_print *,uchar far *); -+private int dviprt_output_transpose(dviprt_print *,uchar far *,uint ); -+private int dviprt_output_nontranspose(dviprt_print *,uchar far *,uint ); -+private int dviprt_output_nontranspose_reverse(dviprt_print *,uchar far *,uint ); -+private int dviprt_reverse_bits(uchar far *,uint); -+private int dviprt_transpose8x8(uchar far *,uint, uchar far *,uint); -+private int dviprt_output_expr(dviprt_print *,int,uint,uint); -+private int dviprt_default_outputproc(uchar far *,long ,void *); -+private long dviprt_getbuffersize(dviprt_print *); - - /*--- library functions ---*/ - long -@@ -1618,7 +1620,7 @@ - int - dviprt_setstream - #ifdef __PROTOTYPES__ -- (dviprt_print *pprint,int (*func)(P3(uchar far *,long ,void*)),void *pstream) -+ (dviprt_print *pprint,int (*func)(uchar far *,long ,void*),void *pstream) - #else - (pprint,func,pstream) - dviprt_print *pprint; -@@ -2264,19 +2266,19 @@ - #define DVIPRT_SUPPORT_PCL 1 - - /*--- forward declarations ---*/ --private long dviprt_null_getworksize(P2(dviprt_print *,long )); --private long dviprt_null_encode(P3(dviprt_print *,long ,int )); --private long dviprt_hex_getworksize(P2(dviprt_print *,long )); --private long dviprt_hex_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_null_getworksize(dviprt_print *,long ); -+private long dviprt_null_encode(dviprt_print *,long ,int ); -+private long dviprt_hex_getworksize(dviprt_print *,long ); -+private long dviprt_hex_encode(dviprt_print *,long ,int ); - #if DVIPRT_SUPPORT_FAX --private long dviprt_fax_getworksize(P2(dviprt_print *,long )); --private long dviprt_fax_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_fax_getworksize(dviprt_print *,long ); -+private long dviprt_fax_encode(dviprt_print *,long ,int ); - #endif - #if DVIPRT_SUPPORT_PCL --private long dviprt_pcl1_getworksize(P2(dviprt_print *,long )); --private long dviprt_pcl1_encode(P3(dviprt_print *,long ,int )); --private long dviprt_pcl2_getworksize(P2(dviprt_print *,long )); --private long dviprt_pcl2_encode(P3(dviprt_print *,long ,int )); -+private long dviprt_pcl1_getworksize(dviprt_print *,long ); -+private long dviprt_pcl1_encode(dviprt_print *,long ,int ); -+private long dviprt_pcl2_getworksize(dviprt_print *,long ); -+private long dviprt_pcl2_encode(dviprt_print *,long ,int ); - #endif - - private dviprt_encoder dviprt_encoder_list[] = { -@@ -2468,9 +2470,9 @@ - int o_count; - int o_bufcount; - } FaxEncodeInfo; --private int dviprt_fax_set_white(P2(int,FaxEncodeInfo *)); --private int dviprt_fax_set_black(P2(int,FaxEncodeInfo *)); --private int dviprt_fax_set_bitcount(P2(FaxEncode_t *,FaxEncodeInfo *)); -+private int dviprt_fax_set_white(int,FaxEncodeInfo *); -+private int dviprt_fax_set_black(int,FaxEncodeInfo *); -+private int dviprt_fax_set_bitcount(FaxEncode_t *,FaxEncodeInfo *); - - private long - dviprt_fax_encode(dviprt_print *pprint,long s,int f) diff --git a/print/ghostscript8/files/patch-src:dviprlib.h b/print/ghostscript8/files/patch-src:dviprlib.h deleted file mode 100644 index 2a671205b46d..000000000000 --- a/print/ghostscript8/files/patch-src:dviprlib.h +++ /dev/null @@ -1,38 +0,0 @@ ---- src/dviprlib.h.orig Tue May 13 16:10:34 1997 -+++ src/dviprlib.h Sun Nov 10 23:32:53 2002 -@@ -337,23 +337,23 @@ - #ifdef dviprlib_implementation - typedef struct { - int no; -- long (*getworksize)(P2(dviprt_print *,long )); -- long (*encode)(P3(dviprt_print *,long,int)); -+ long (*getworksize)(dviprt_print *,long ); -+ long (*encode)(dviprt_print *,long,int); - } dviprt_encoder; - - #define liblocal private - --liblocal dviprt_encoder *dviprt_getencoder_(P1(int )); --liblocal int dviprt_setcfgbuffer_(P3(dviprt_cfg_i *,int ,int )); --liblocal int dviprt_resetcfgbuffer_(P1(dviprt_cfg_i *)); --liblocal int dviprt_initcfg_(P2(dviprt_cfg_t *,dviprt_cfg_i *)); --liblocal int dviprt_printmessage(P2(char *,int )); --liblocal int dviprt_printerror(P2(char *,int )); --liblocal int dviprt_printwarning(P2(char *,int )); --liblocal int dviprt_printcfgerror(P3(dviprt_cfg_i *,char *,int )); --liblocal int dviprt_printcfgwarning(P3(dviprt_cfg_i *,char *,int )); -+liblocal dviprt_encoder *dviprt_getencoder_(int ); -+liblocal int dviprt_setcfgbuffer_(dviprt_cfg_i *,int ,int ); -+liblocal int dviprt_resetcfgbuffer_(dviprt_cfg_i *); -+liblocal int dviprt_initcfg_(dviprt_cfg_t *,dviprt_cfg_i *); -+liblocal int dviprt_printmessage(char *,int ); -+liblocal int dviprt_printerror(char *,int ); -+liblocal int dviprt_printwarning(char *,int ); -+liblocal int dviprt_printcfgerror(dviprt_cfg_i *,char *,int ); -+liblocal int dviprt_printcfgwarning(dviprt_cfg_i *,char *,int ); - --extern int dviprt_print_headercomment_(P4(char *,char *,char *,FILE *)); -+extern int dviprt_print_headercomment_(char *,char *,char *,FILE *); - extern char dviprt_message_buffer[]; - #endif dviprlib_implementation - diff --git a/print/ghostscript8/files/patch-src:gdevdmpr.c b/print/ghostscript8/files/patch-src:gdevdmpr.c deleted file mode 100644 index 47e980154ccd..000000000000 --- a/print/ghostscript8/files/patch-src:gdevdmpr.c +++ /dev/null @@ -1,38 +0,0 @@ ---- src/gdevdmpr.c.orig Tue May 13 20:43:37 1997 -+++ src/gdevdmpr.c Sun Nov 10 21:19:41 2002 -@@ -41,7 +41,7 @@ - /* include library header. */ - #include "dviprlib.h" - --extern FILE *lib_fopen(P1(const char *)); -+extern FILE *lib_fopen(const char *); - - #define LOCAL_DEBUG 0 - -@@ -87,12 +87,12 @@ - private dev_proc_close_device(gdev_dmprt_close); - - /* declarations of sub functions to get printer properties. */ --private void gdev_dmprt_init_printer_props(P1(gx_device_dmprt *)); --private int gdev_dmprt_get_printer_props(P2(gx_device_dmprt *,char *)); --private int gdev_dmprt_check_code_props(P2(byte * ,int )); --private FILE *gdev_dmprt_dviprt_lib_fopen(P2(const char *,char *)); -+private void gdev_dmprt_init_printer_props(gx_device_dmprt *); -+private int gdev_dmprt_get_printer_props(gx_device_dmprt *,char *); -+private int gdev_dmprt_check_code_props(byte * ,int ); -+private FILE *gdev_dmprt_dviprt_lib_fopen(const char *,char *); - --private int gdev_dmprt_error_no_dviprt_to_gs(P1(int )); -+private int gdev_dmprt_error_no_dviprt_to_gs(int ); - - /* The device descriptor */ - gx_device_procs prn_dmprt_procs = { -@@ -846,7 +846,7 @@ - if (env) { - strcpy(fname,env); - strcat(fname, -- gp_file_name_concat_string(env,strlen(env),fname,strlen(fnamebase))); -+ gp_file_name_concat_string(env,strlen(env))); - strcat(fname,fnamebase); - fp = fopen(fname,gp_fmode_rb); - } diff --git a/print/ghostscript8/files/patch-src:gdevdmpr.mak b/print/ghostscript8/files/patch-src:gdevdmpr.mak deleted file mode 100644 index 9136172873fa..000000000000 --- a/print/ghostscript8/files/patch-src:gdevdmpr.mak +++ /dev/null @@ -1,21 +0,0 @@ ---- src/gdevdmpr.mak.orig Mon May 1 20:24:43 2000 -+++ src/gdevdmpr.mak Mon May 1 20:26:23 2000 -@@ -1,8 +1,12 @@ - ### ---------------- Dot matrix printer device ---------------- ### --dmprt_=gdevdmpr.$(OBJ) dviprlib.$(OBJ) gdevprn.$(OBJ) -+dmprt_=$(GLOBJ)gdevdmpr.$(OBJ) $(GLOBJ)dviprlib.$(OBJ) $(GLOBJ)gdevprn.$(OBJ) - --dmprt.dev: $(dmprt_) -- $(SETDEV) dmprt $(dmprt_) -- $(ADDMOD) dmprt -ps dmp_init --gdevdmpr.$(OBJ): gdevdmpr.c dviprlib.h $(PDEVH) --dviprlib.$(OBJ): dviprlib.c dviprlib.h -+$(DD)dmprt.dev: $(dmprt_) -+ $(SETDEV) $(DD)dmprt $(dmprt_) -+ $(ADDMOD) $(DD)dmprt -ps dmp_init -+ -+$(GLOBJ)gdevdmpr.$(OBJ): $(GLSRC)gdevdmpr.c $(GLSRC)dviprlib.h $(PDEVH) -+ $(GLCC) $(GLO_)gdevdmpr.$(OBJ) $(C_) $(GLSRC)gdevdmpr.c -+ -+$(GLOBJ)dviprlib.$(OBJ): $(GLSRC)dviprlib.c $(GLSRC)dviprlib.h -+ $(GLCC) $(GLO_)dviprlib.$(OBJ) $(C_) $(GLSRC)dviprlib.c diff --git a/print/ghostscript8/files/patch-src:gdevl256.c b/print/ghostscript8/files/patch-src:gdevl256.c new file mode 100644 index 000000000000..3102abf74716 --- /dev/null +++ b/print/ghostscript8/files/patch-src:gdevl256.c @@ -0,0 +1,17 @@ +--- src/gdevl256.c.orig Fri Feb 22 07:24:51 2002 ++++ src/gdevl256.c Tue May 20 03:08:15 2003 +@@ -147,10 +147,12 @@ + /* for compatibility with the older display modes: */ + /* these are indexed as 0.0.R0.G0.B0.R1.G1.B1. */ + gx_color_index +-lvga256_map_rgb_color(gx_device * dev, gx_color_value r, gx_color_value g, +- gx_color_value b) ++lvga256_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { + #define cv_bits(v,n) (v >> (gx_color_value_bits - n)) ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; + ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5); + static const byte cube_bits[32] = + {0, 128, 128, 128, 128, 128, 128, 128, 128, 128, diff --git a/print/ghostscript8/files/patch-src:gdevlx50.c b/print/ghostscript8/files/patch-src:gdevlx50.c new file mode 100644 index 000000000000..01ceae208cd3 --- /dev/null +++ b/print/ghostscript8/files/patch-src:gdevlx50.c @@ -0,0 +1,17 @@ +--- src/gdevlx50.c.orig Thu May 15 07:38:07 2003 ++++ src/gdevlx50.c Thu May 15 08:02:58 2003 +@@ -2603,9 +2603,12 @@ + + /* Map CMYK to color. */ + private gx_color_index +-lx5000_map_cmyk_color(gx_device * dev, gx_color_value cyan, +- gx_color_value magenta, gx_color_value yellow, gx_color_value black) ++lx5000_map_cmyk_color(gx_device * dev, const gx_color_value cv[]) + { ++ gx_color_value cyan = cv[0]; ++ gx_color_value magenta = cv[1]; ++ gx_color_value yellow = cv[2]; ++ gx_color_value black = cv[3]; + int bpc = dev->color_info.depth / 4; + int drop = sizeof(gx_color_value) * 8 - bpc; + gx_color_index color = diff --git a/print/ghostscript8/files/patch-src:gdevsgi.c b/print/ghostscript8/files/patch-src:gdevsgi.c deleted file mode 100644 index 96d3891fc9e5..000000000000 --- a/print/ghostscript8/files/patch-src:gdevsgi.c +++ /dev/null @@ -1,16 +0,0 @@ ---- src/gdevsgi.c.orig Fri Feb 22 07:24:52 2002 -+++ src/gdevsgi.c Sun Nov 10 22:55:30 2002 -@@ -32,8 +32,11 @@ - sgi_prn_device(sgi_procs, "sgirgb", 3, 24, 255, 255, sgi_print_page); - - private gx_color_index --sgi_map_rgb_color(gx_device *dev, ushort r, ushort g, ushort b) --{ ushort bitspercolor = dev->color_info.depth / 3; -+sgi_map_rgb_color(gx_device *dev, const ushort cv[]) -+{ ushort r = cv[0]; -+ ushort g = cv[1]; -+ ushort b = cv[2]; -+ ushort bitspercolor = dev->color_info.depth / 3; - ulong max_value = (1 << bitspercolor) - 1; - return ((r*max_value / gx_max_color_value) << (bitspercolor * 2)) + - ((g*max_value / gx_max_color_value) << bitspercolor) + diff --git a/print/ghostscript8/files/patch-src:gdevvglb.c b/print/ghostscript8/files/patch-src:gdevvglb.c new file mode 100644 index 000000000000..b21032ce8779 --- /dev/null +++ b/print/ghostscript8/files/patch-src:gdevvglb.c @@ -0,0 +1,18 @@ +--- src/gdevvglb.c.orig Fri Feb 22 07:24:52 2002 ++++ src/gdevvglb.c Tue May 20 23:57:29 2003 +@@ -152,10 +152,12 @@ + } + + private gx_color_index +-vgalib_map_rgb_color(gx_device * dev, gx_color_value red, +- gx_color_value green, gx_color_value blue) ++vgalib_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { +- return pc_4bit_map_rgb_color(dev, red, green, blue); ++ gx_color_value red = cv[0]; ++ gx_color_value green = cv[1]; ++ gx_color_value blue = cv[2]; ++ return pc_4bit_map_rgb_color(dev, cv); + } + + private int diff --git a/print/ghostscript8/pkg-descr b/print/ghostscript8/pkg-descr index 122e09a3a7b7..60c6e9e1e2c5 100644 --- a/print/ghostscript8/pkg-descr +++ b/print/ghostscript8/pkg-descr @@ -11,8 +11,8 @@ This port includes add-on packages (not part of the official gs release) - http://hp.sourceforge.net/gs-hp2200.php o DJ970 driver for HP DeskJet 970CXi - http://www.harsch.net/Ghostscript/ghostscript.html - o Spacial drivers for verious printer models mainly sold in Japan - - Alps, Canon, Epson, NEC, Ricoh,... + o Special drivers for verious printer models + - Alps, Canon, Epson, NEC, Lexmark, Ricoh,... o Additional contributed uniprint driver profiles for - Epson Stylus Color 740 and Epson LQ-1170 diff --git a/print/ghostscript8/pkg-plist b/print/ghostscript8/pkg-plist index 21f9ead5ac23..f29333db37bf 100644 --- a/print/ghostscript8/pkg-plist +++ b/print/ghostscript8/pkg-plist @@ -38,7 +38,6 @@ bin/wftopfa %%SHLIB%%lib/libgs.so.%%SHLIB_VER%% %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/alps/README.gdevalps %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/bj10v/gdev10v.jis -%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/dmprt/gdevdmpr.sj %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/ChangeLog %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/ert.txt %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/epag/gdevepag.txt @@ -48,6 +47,9 @@ bin/wftopfa %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/eplaser/readme-eplaser-652-jp.euc %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/gdi/README %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lips/Gdevlips.htm +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/README +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/RELEASE_NOTES +%%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/lxm3200/Z12-Z31-QuickSetup %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/md2k/README.jis %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/MJ700V2C.FAQ %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/README.mjc @@ -55,6 +57,64 @@ bin/wftopfa %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/README.noz %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/mjc/cpem.doc %%PORTDOCS%%share/doc/ghostscript/%%GS_VERSION%%/npdl/gdevnpdl.jis +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78ms-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/78ms-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/83pv-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90ms-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90ms-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90pv-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/90pv-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Add-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-0 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-1 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Adobe-Japan1-2 +share/ghostscript/%%GS_VERSION%%/Resource/CMap/ETen-B5-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/ETen-B5-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Ext-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/GBK-EUC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/GBK-EUC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Hankaku +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Hiragana +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Identity-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Identity-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSC-Johab-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSC-Johab-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/KSCms-UHC-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Katakana +share/ghostscript/%%GS_VERSION%%/Resource/CMap/NWP-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/NWP-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/RKSJ-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/RKSJ-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/Roman +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniCNS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniGB-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniHojo-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniJIS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-H +share/ghostscript/%%GS_VERSION%%/Resource/CMap/UniKS-UCS2-V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/V +share/ghostscript/%%GS_VERSION%%/Resource/CMap/WP-Symbol +share/ghostscript/%%GS_VERSION%%/Resource/Decoding/StandardEncoding +share/ghostscript/%%GS_VERSION%%/Resource/Decoding/Unicode share/ghostscript/%%GS_VERSION%%/doc/API.htm share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm share/ghostscript/%%GS_VERSION%%/doc/Bug-info.htm @@ -151,15 +211,12 @@ share/ghostscript/%%GS_VERSION%%/lib/cbjc800.ppd share/ghostscript/%%GS_VERSION%%/lib/cdj550.upp share/ghostscript/%%GS_VERSION%%/lib/cdj690.upp share/ghostscript/%%GS_VERSION%%/lib/cdj690ec.upp -share/ghostscript/%%GS_VERSION%%/lib/cidfmap share/ghostscript/%%GS_VERSION%%/lib/cid2code.ps +share/ghostscript/%%GS_VERSION%%/lib/cidfmap share/ghostscript/%%GS_VERSION%%/lib/decrypt.ps -share/ghostscript/%%GS_VERSION%%/lib/dmp_init.ps -share/ghostscript/%%GS_VERSION%%/lib/dmp_site.ps share/ghostscript/%%GS_VERSION%%/lib/dnj750c.upp share/ghostscript/%%GS_VERSION%%/lib/dnj750m.upp share/ghostscript/%%GS_VERSION%%/lib/docie.ps -share/ghostscript/%%GS_VERSION%%/lib/escp_24.src share/ghostscript/%%GS_VERSION%%/lib/errpage.ps share/ghostscript/%%GS_VERSION%%/lib/font2c.ps share/ghostscript/%%GS_VERSION%%/lib/font2pcl.ps @@ -172,6 +229,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_cidcm.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciddc.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cidfm.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cidfn.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_cidtt.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciecs2.ps share/ghostscript/%%GS_VERSION%%/lib/gs_ciecs3.ps share/ghostscript/%%GS_VERSION%%/lib/gs_cmap.ps @@ -192,6 +250,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_dscp.ps share/ghostscript/%%GS_VERSION%%/lib/gs_epsf.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fapi.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fform.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_fntem.ps share/ghostscript/%%GS_VERSION%%/lib/gs_fonts.ps share/ghostscript/%%GS_VERSION%%/lib/gs_frsd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_icc.ps @@ -223,6 +282,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_pfile.ps share/ghostscript/%%GS_VERSION%%/lib/gs_rdlin.ps share/ghostscript/%%GS_VERSION%%/lib/gs_res.ps share/ghostscript/%%GS_VERSION%%/lib/gs_resmp.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_resst.ps share/ghostscript/%%GS_VERSION%%/lib/gs_s.xbm share/ghostscript/%%GS_VERSION%%/lib/gs_s.xpm share/ghostscript/%%GS_VERSION%%/lib/gs_s_m.xbm @@ -230,6 +290,7 @@ share/ghostscript/%%GS_VERSION%%/lib/gs_sepr.ps share/ghostscript/%%GS_VERSION%%/lib/gs_setpd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_statd.ps share/ghostscript/%%GS_VERSION%%/lib/gs_std_e.ps +share/ghostscript/%%GS_VERSION%%/lib/gs_stres.ps share/ghostscript/%%GS_VERSION%%/lib/gs_sym_e.ps share/ghostscript/%%GS_VERSION%%/lib/gs_t.xbm share/ghostscript/%%GS_VERSION%%/lib/gs_t.xpm @@ -267,6 +328,7 @@ share/ghostscript/%%GS_VERSION%%/lib/pdf_draw.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_font.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_main.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_ops.ps +share/ghostscript/%%GS_VERSION%%/lib/pdf_rbld.ps share/ghostscript/%%GS_VERSION%%/lib/pdf_sec.ps share/ghostscript/%%GS_VERSION%%/lib/pdfopt.ps share/ghostscript/%%GS_VERSION%%/lib/pdfwrite.ps @@ -512,16 +574,18 @@ share/ghostscript/fonts/z003034l.pfm @dirrm share/ghostscript/%%GS_VERSION%%/lib @dirrm share/ghostscript/%%GS_VERSION%%/examples @dirrm share/ghostscript/%%GS_VERSION%%/doc -@dirrm share/ghostscript/%%GS_VERSION%% +@dirrm share/ghostscript/%%GS_VERSION%%/Resource/Decoding +@dirrm share/ghostscript/%%GS_VERSION%%/Resource/CMap +@dirrm share/ghostscript/%%GS_VERSION%%/Resource @unexec rmdir %D/share/ghostscript 2>/dev/null || true %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/npdl %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/mjc %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/md2k +%%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/lxm3200 %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/lips %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/gdi %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/eplaser %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/epag -%%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/dmprt %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/bj10v %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%%/alps %%PORTDOCS%%@dirrm share/doc/ghostscript/%%GS_VERSION%% diff --git a/print/ghostscript8/scripts/configure b/print/ghostscript8/scripts/configure index d4a4cad25d3a..bd07968d029e 100644 --- a/print/ghostscript8/scripts/configure +++ b/print/ghostscript8/scripts/configure @@ -12,11 +12,16 @@ x11devs="x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8 \ x11gray2 x11gray4 x11mono x11rg16x x11rg32x" fi -if [ ! -z "${GS_OPTIONS}" ]; then - set ${GS_OPTIONS} +if [ -n "${WITH_SVGALIB}" ]; then +svgalibdevs="lvga256 vgalib" +fi + +if [ ! -z "${GS_DRIVERS_LIST}" ]; then + set ${GS_DRIVERS_LIST} else set \ $x11devs \ + $svgalibdevs \ md2k md5k \ md50Mono md50Eco md1xMono \ appledmp iwhi iwlo iwlq hl7x0 bj10e \ @@ -26,7 +31,6 @@ else lbp1310 lbp1510 lbp1610 lbp1710 lbp1810 lbp1910 \ lips2p lips3 lips4 bjc880j lips4v \ m8510 coslw2p coslwxl uniprint \ - dmprt \ lj250 declj250 ap3250 epson eps9mid eps9high lp8000 \ epag \ escpage lp2000 \ @@ -45,7 +49,9 @@ else cljet5 cljet5c cljet5pr lj5mono lj5gray \ pj pjetxl pjxl paintjet \ pjxl300 pxlmono pxlcolor \ - ijs ibmpro jetp3852 imagen fs600 lxm5700m cp50 necp6 \ + ijs ibmpro jetp3852 imagen fs600 lxm5700m \ + lxm3200 lx5000 lex2050 lex3200 lex5700 lex7000 \ + cp50 necp6 \ npdl \ oce9050 oki182 okiibm atx23 atx24 atx38 r4081 \ rpdl \ @@ -64,12 +70,13 @@ else bit bitrgb bitcmyk plan9bm pam pbm pbmraw \ pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw \ pkm pkmraw pksm pksmraw \ - pngmono pnggray png16 png256 png16m pnga psmono psgray psrgb \ + pngmono pnggray png16 png256 png16m pnga \ + psmono psgray psrgb \ pswrite epswrite sgirgb sunhmono \ tiffcrle tiffg3 tiffg32d tiffg4 \ tiff12nc tiff24nc tifflzw tiffpack \ bbox \ - devicen perm spotrgb spotcmyk + devicen perm spotcmyk fi for i; do @@ -96,6 +103,8 @@ Have fun with this new configuration style ! -andreas \n\n\ "x11mono" "X Window System masquer. as black-and-white device" "$status_x11mono" \ "x11rg16x" "X Window System with G5/B5/R6 pixel layout for testing" "$status_x11rg16x" \ "x11rg32x" "X Window System with G11/B10/R11 pixel layout for testing" "$status_x11rg32x" \ + "lvga256" "SVGAlib, 256-color VGA modes" "$status_lvga256" \ + "vgalib" "SVGAlib, 16-color VGA modes" "$status_vgalib" \ "md2k" "ALPS MD-2000/2010/4000/1300/1500/5000 [MD2K]" "$status_md2k" \ "md5k" "ALPS MD-5000 Eco Mode [MD2K]" "$status_md5k" \ "md50Mono" "ALPS MD-5000 Monochrome [ALPS]" "$status_md50Mono" \ @@ -133,7 +142,6 @@ Have fun with this new configuration style ! -andreas \n\n\ "coslwxl" "CoStar LabelWriter XL" "$status_coslwxl" \ "stp" "Configurable Canon/Epson/Lexmark/HP driver [Gimp-Print]" "$status_stp" \ "uniprint" "Configurable ESC/P,ESC/P2,HP-RTL/PCL,P2X mono/color driver" "$status_uniprint" \ - "dmprt" "Configurable dot matrix printer driver [DMPRT]" "$status_dmprt" \ "lj250" "DEC LJ250 Companion color printer" "$status_lj250" \ "declj250" "DEC LJ250 driver (alternate)" "$status_declj250" \ "ap3250" "Epson ActionPrinter 3250" "$status_ap3250" \ @@ -233,6 +241,12 @@ Have fun with this new configuration style ! -andreas \n\n\ "imagen" "Imagen ImPress printers" "$status_imagen" \ "fs600" "Kyocera FS-600 (600 dpi)" "$status_fs600" \ "lxm5700m" "Lexmark 5700 monotone" "$status_lxm5700m" \ + "lxm3200" "Lexmark 3200/Z12/Z22/Z31/Z32 [LXM3200]" "$status_lxm3200" \ + "lx5000" "Lexmark 5000/Z51/Z82 [LX5000]" "$status_lx5000" \ + "lex2050" "Lexmark 2050 [LEX7000]" "$status_lex2050" \ + "lex3200" "Lexmark 3200 [LEX7000]" "$status_lex3200" \ + "lex5700" "Lexmark 5700 [LEX7000]" "$status_lex5700" \ + "lex7000" "Lexmark 7000 [LEX7000]" "$status_lex7000" \ "cp50" "Mitsubishi CP50 color" "$status_cp50" \ "necp6" "NEC PinWriter P6/P6+/P60, 360x360 DPI resol" "$status_necp6" \ "npdl" "NEC Printer Description Language [NPDL]" "$status_npdl" \ @@ -313,7 +327,7 @@ Have fun with this new configuration style ! -andreas \n\n\ "png16" "PNG 4-bit color Portable Network Graphics" "$status_png16" \ "png256" "PNG 8-bit color Portable Network Graphics" "$status_png256" \ "png16m" "PNG 24-bit color Portable Network Graphics" "$status_png16m" \ - "pnga" "PNG with transparency" "$status_pnga" \ + "pngalpha" "PNG 32-bit RGBA Portable Network Graphics" "$status_pngalpha" \ "psmono" "PostScript (Level 1) monochrome image" "$status_psmono" \ "psgray" "PostScript (Level 1) 8-bit gray image" "$status_psgray" \ "psrgb" "PostScript (Level 2) 24-bit color image" "$status_psrgb" \ @@ -332,7 +346,6 @@ Have fun with this new configuration style ! -andreas \n\n\ "bbox" "Bounding box output" "$status_bbox" \ "devicen" "DeviceN process color model device" "$status_devicen" \ "perm" "DeviceN which permutes color components" "$status_perm" \ - "spotrgb" "DeviceN with RGB and spot color support" "$status_spotrgb" \ "spotcmyk" "DeviceN with CMYK and spot color support" "$status_spotcmyk" \ 2> $tempfile |