diff options
author | naddy <naddy@FreeBSD.org> | 2003-06-08 02:38:06 +0000 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2003-06-08 02:38:06 +0000 |
commit | 40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5 (patch) | |
tree | f054cbeda3f9b6410c423ef678202a288636588c /print/ghostscript8/Makefile | |
parent | f419319cd646bfd901db16e4bd346f7281b5e35d (diff) | |
download | FreeBSD-ports-40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5.zip FreeBSD-ports-40f45d73ab8c2c6397d95a5e3d29bce39cc6ebe5.tar.gz |
- Add drivers for Lexmark printers.
- Add option to use SVGAlib console driver.
PR: 52479
Submitted by: Ports Fury
Diffstat (limited to 'print/ghostscript8/Makefile')
-rw-r--r-- | print/ghostscript8/Makefile | 119 |
1 files changed, 78 insertions, 41 deletions
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile index fe25669..14d528d 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> |