Date: Wed, 6 Sep 2000 12:14:38 -0700 (PDT) From: tkato@prontomail.ne.jp To: freebsd-gnats-submit@FreeBSD.org Subject: ports/21083: Update port: print/ghostscript6 Message-ID: <20000906191438.8AD1E37B423@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 21083 >Category: ports >Synopsis: Update port: print/ghostscript6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 06 12:20:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: 4.1-RELEASE i386 >Organization: >Environment: >Description: - Remove restriction of encrypted PDF support - nonexistent -> NONEXISTENT - Add USE_GMAKE - portlint - Fix usage of PREFIX/LOCALBASE - Fix pkg/PLIST >How-To-Repeat: >Fix: diff -urN /usr/ports/print/ghostscript6/Makefile print/ghostscript6/Makefile --- /usr/ports/print/ghostscript6/Makefile Fri Aug 25 19:24:22 2000 +++ print/ghostscript6/Makefile Thu Sep 7 03:45:36 2000 @@ -15,20 +15,20 @@ ftp://ftp.sbs.de/pub/graphics/ghostscript/pcl3/ DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ ${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_DRV} +EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} MAINTAINER= andreas@FreeBSD.org -Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html - -BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract +BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/jpeg:extract LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png -PLIST_SUB= GS_VERSION=${PORTVERSION} -USE_XLIB= yes -EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV} +Y2K= http://www.cs.wisc.edu/~ghost/aladdin/y2k.html + WRKSRC= ${WRKDIR}/gs${PORTVERSION} +USE_XLIB= yes +USE_GMAKE= yes MAKEFILE= src/unix-gcc.mak -CFLAGS+= -I${PREFIX}/include +PLIST_SUB= GS_VERSION=${PORTVERSION} # Note: the order that the manpages are listed here matters because # some of them are symbolic links MAN1= gs.1 dvipdf.1 font2c.1 eps2eps.1 gsbj.1 gsdj.1 gsdj500.1 \ @@ -58,12 +58,8 @@ CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp -# encrypted PDF support. can't be packaged due to export control issues. -.if defined(PDFENCRYPT) -MASTER_SITES+= http://www.ozemail.com.au/~geoffk/pdfencrypt/ -DISTFILES+= pdf_sec.ps -RESTRICTED= "Crypto; export controlled, RC4 in PostScript code included" -.endif +# replacement for pdf_sec.ps, that allows you to read encrypted PDF files +DECRYPT_PDF= pdf_sec.ps .if defined(A4) CFLAGS+= -DA4 @@ -79,10 +75,10 @@ post-extract: @${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b \ ${WRKSRC}/jpeg - @cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HP8XX_DRV} - @cd ${WRKSRC}/src; ${TAR} -xzf ${DISTDIR}/${HPDJ_DRV} - # additional HPDJ driver - @${TAR} -xf ${WRKDIR}/hpdj-2.6/hpdj.tar -C ${WRKSRC}/src + @${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HP8XX_DRV} + @${TAR} -C ${WRKSRC}/src -xzf ${DISTDIR}/${HPDJ_DRV} +# additional HPDJ driver + @${TAR} -C ${WRKSRC}/src -xf ${WRKDIR}/hpdj-2.6/hpdj.tar @${CAT} ${WRKSRC}/src/contrib.mak-5.94.add >> ${WRKSRC}/src/contrib.mak @${PATCH} -d ${WRKSRC}/src --forward --quiet -E \ < ${WRKSRC}/src/zmedia2.c-5.50.diff @@ -100,31 +96,27 @@ pre-install: @${MKDIR} ${PREFIX}/share/ghostscript - @(cd ${PREFIX}/share/ghostscript ; \ - ${TAR} -xzf ${DISTDIR}/${GS_FONTS_STD}) - @(cd ${PREFIX}/share/ghostscript ; \ - ${TAR} -xzf ${DISTDIR}/${GS_FONTS_OTHER}) + ${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD} + ${TAR} -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER} post-install: @strip ${PREFIX}/bin/gs - @${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin - @${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/lib/unix-lpr.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/lib/lprsetup.sh ${PREFIX}/bin @${MKDIR} ${PREFIX}/libexec/lpr - @${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr - @${INSTALL_DATA} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/src/if-hpdj ${PREFIX}/libexec/lpr + ${INSTALL_MAN} ${WRKSRC}/src/gs-hpdj.1 ${PREFIX}/man/man1 .for i in ${CONTRIB_UPP} - @${INSTALL_DATA} ${FILESDIR}/$i \ + ${INSTALL_DATA} ${FILESDIR}/${i} \ ${PREFIX}/share/ghostscript/${PORTVERSION}/lib .endfor -.if defined(PDFENCRYPT) - @${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ + ${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps \ ${PREFIX}/share/ghostscript/${PORTVERSION}/lib -.endif -.if !defined(NOPORTDOC) +.if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/ghostscript/hpdj .for i in LGPL.txt NEWS README.hpdj example.mdf hpdj.html margins-A4.ps \ margins-A4Rotated.ps margins-Letter.ps margins-LetterRotated.ps - @ cd ${WRKSRC}/src; ${INSTALL_DATA} $i ${PREFIX}/share/ghostscript/hpdj + ${INSTALL_DATA} ${WRKSRC}/src/${i} ${PREFIX}/share/ghostscript/hpdj .endfor .endif diff -urN /usr/ports/print/ghostscript6/patches/patch-aa print/ghostscript6/patches/patch-aa --- /usr/ports/print/ghostscript6/patches/patch-aa Fri Aug 25 19:24:22 2000 +++ print/ghostscript6/patches/patch-aa Thu Sep 7 01:44:20 2000 @@ -53,7 +53,7 @@ # See libpng.mak for more information. -PSRCDIR=libpng -+PSRCDIR=${PREFIX}/include ++PSRCDIR=${LOCALBASE}/include PVERSION=10005 # Choose whether to use a shared version of the PNG library, and if so, @@ -97,7 +97,7 @@ # giving the full path names of the shared library directories. # XLDFLAGS can be set from the command line. -XLDFLAGS= -+XLDFLAGS=-L$(prefix)/lib ++XLDFLAGS=-L${LOCALBASE}/lib LDFLAGS=$(XLDFLAGS) -fno-common @@ -115,7 +115,7 @@ # not in $(XINCLUDE). -XINCLUDE=-I/usr/local/X/include -+XINCLUDE=-I$(X11BASE)/include -I$(PREFIX)/include ++XINCLUDE=-I${X11BASE}/include # Define the directory/ies and library names for the X11 library files. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH @@ -128,7 +128,7 @@ #XLIBDIRS=-L/usr/local/X/lib -XLIBDIRS=-L/usr/X11/lib -+XLIBDIRS=-L$(X11BASE)/lib ++XLIBDIRS=-L${X11BASE}/lib XLIBDIR= -XLIBS=Xt Xext X11 +#XLIBS=Xt Xext X11 diff -urN /usr/ports/print/ghostscript6/pkg/PLIST print/ghostscript6/pkg/PLIST --- /usr/ports/print/ghostscript6/pkg/PLIST Fri Apr 21 19:11:55 2000 +++ print/ghostscript6/pkg/PLIST Thu Sep 7 03:21:06 2000 @@ -28,6 +28,7 @@ bin/sysvlp.sh bin/unix-lpr.sh bin/wftopfa +libexec/lpr/if-hpdj share/ghostscript/%%GS_VERSION%%/doc/Bug-form.htm share/ghostscript/%%GS_VERSION%%/doc/C-style.htm share/ghostscript/%%GS_VERSION%%/doc/Commprod.htm @@ -444,3 +445,4 @@ @dirrm share/ghostscript/fonts @dirrm share/ghostscript/hpdj @dirrm share/ghostscript +@unexec rmdir %D/libexec/lpr 2>/dev/null || true >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000906191438.8AD1E37B423>