diff options
author | SADA Kenji <sada@FreeBSD.org> | 1999-09-03 17:52:40 +0000 |
---|---|---|
committer | SADA Kenji <sada@FreeBSD.org> | 1999-09-03 17:52:40 +0000 |
commit | a6c7eb2f44fafd3872249d5905796cf6f78bf268 (patch) | |
tree | f901de667623e478fd45a582859fa8bebb44eba8 /korean/ftghostscript5/Makefile | |
parent | ccf1743f2e19f84e95eac9cf80a3ebc5023c9474 (diff) | |
download | ports-a6c7eb2f44fafd3872249d5905796cf6f78bf268.tar.gz ports-a6c7eb2f44fafd3872249d5905796cf6f78bf268.zip |
Notes
Diffstat (limited to 'korean/ftghostscript5/Makefile')
-rw-r--r-- | korean/ftghostscript5/Makefile | 163 |
1 files changed, 49 insertions, 114 deletions
diff --git a/korean/ftghostscript5/Makefile b/korean/ftghostscript5/Makefile index eb9c33bfa9ca..36d8c06f7465 100644 --- a/korean/ftghostscript5/Makefile +++ b/korean/ftghostscript5/Makefile @@ -1,112 +1,75 @@ # New ports collection makefile for: freetype-ghostscript # Version required: 5.10ft -# Date created: Fri Mar 27 10:32:46 KST 1998 +# Date created: 27 Mar 1998 # Whom: CHOI Junho <cjh@kr.freebsd.org> # # $FreeBSD$ # -# based on print/ghostscript5 and japanese/vfghostscript5 -# use Adobe's CID-keyed font sameple(korean) because there are no -# default korean font +# Based on print/ghostscript5 and japanese/vfghostscript5 +# use Adobe's CID-keyed Korean font because there are no wide accepted +# default korean font yet # -DISTNAME= ko-ftghostscript-5.10 +DISTNAME= ko-ghostscript-ft-5.10 CATEGORIES= korean print -MASTER_SITES= ftp://ftp.cs.wisc.edu/ghost/aladdin/gs510/ \ - ftp://bonk.ethz.ch/gs-driver-distrib/ \ - http://www.ozemail.com.au/~geoffk/pdfencrypt/ \ - http://freefall.freebsd.org/~andreas/download/ \ +MASTER_SITES= ftp://ftp.pdb.sni.de/pub/utilities/misc/ \ + http://www.ozemail.com.au/~geoffk/pdfencrypt/ \ + ftp://ftp.cs.wisc.edu/ghost/gnu/gs510/ \ + $(MASTER_SITE_GNU) \ http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/ \ http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/ \ - ftp://jazz.snu.ac.kr/pub/unix/gs-ko/ \ - ftp://ftp.ora.com/pub/examples/nutshell/ujip/adobe/samples/ \ - ftp://ftp.ora.com/pub/examples/nutshell/ujip/adobe/ -DISTFILES= ${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \ - ${HP850_DRV} ${DECRYPT_PDF} ${VFLIB_GS} ${KFFTYPE} \ - ${KFFTYPE_PATCH} ${HFFTYPE} ${GS_CID_PATCH} \ - ${CID_FONTS_KO} ${CID_CMAP_KO} + ftp://ftp.kr.freebsd.org/pub/users/cjh/gs-ko/ \ + ftp://ftp.kr.freebsd.org/pub/users/cjh/gs-ko/misc/ +MASTER_SITE_SUBDIR= ghostscript +DISTFILES= ${PCL3_DRV} ${DECRYPT_PDF} ${GS_SOURCES} \ + ${VFLIB_GS} ${KFFTYPE} ${KFFTYPE_PATCH} \ + ${HFFTYPE} ${GS_CID_PATCH} -MAINTAINER= cjh@kr.freebsd.org - -BROKEN= fetch +MAINTAINER= cjh@kr.FreeBSD.org +RUN_DEPENDS= $(LOCALBASE)/share/ghostscript/fonts/CMap:${PORTSDIR}/korean/munhwafonts-cid \ + $(LOCALBASE)/share/ghostscript/fonts:${PORTSDIR}/print/gsfonts BUILD_DEPENDS= /nonexistent:${PORTSDIR}/graphics/jpeg:extract \ - /nonexistent:${PORTSDIR}/graphics/png:extract \ - unzip:${PORTSDIR}/archivers/unzip -LIB_DEPENDS= ttf.3:${PORTSDIR}/print/freetype + /nonexistent:${PORTSDIR}/graphics/png:extract +LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \ + ttf.3:${PORTSDIR}/print/freetype -MAKE_ENV= PORTSDIR=${PORTSDIR} -EXTRACT_ONLY= ${GS_SOURCES} +USE_XLIB= yes +EXTRACT_ONLY= ${GS_SOURCES} ${PCL3_DRV} WRKSRC= ${WRKDIR}/gs5.10 + MAKEFILE= unix-gcc.mak -MAKE_FLAGS= prefix=${PREFIX} zlibc_=-lz CFLAGS="${CFLAGS} -I${PREFIX}/include" -f -MAN1= gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 +#MAKE_FLAGS= prefix=${PREFIX} CFLAGS="${CFLAGS}" -f +MAKE_FLAGS= prefix=${PREFIX} -f +MAN1= gs.1 pdf2dsc.1 pdf2ps.1 ps2ascii.1 ps2epsi.1 ps2pdf.1 gs-hpdj.1 GS_SOURCES= ghostscript-5.10.tar.gz -GS_SOURCES+= ghostscript-5.10gnu.tar.gz -# Note: the following two are real files that have symlinks with -# later version numbers pointing to them. To avoid unnecessarily -# downloading distfiles, do not change these when upgrading the port -# unless the files really change. -GS_FONTS_STD= ghostscript-fonts-std-5.50.tar.gz -GS_FONTS_OTHER= ghostscript-fonts-other-5.10.tar.gz -# Additional driver HP 850, see http://bonk.ethz.ch/hp850/hp850.html -HP850_DRV= hp8xxs13.zip +# Additional driver for HP PCL3 Printers +PCL3_DRV= hpdj-2.5.tar.gz # replacement for pdf_sec.ps, that allows you to read encrypted PDF files DECRYPT_PDF= pdf_sec.ps +# Korean patch files # vflib patch -VFLIB_GS= gs5.10-vflib-1.1.tar.gz - +VFLIB_GS= gs5.10-vflib-1.1.tar.gz # kfftype -KFFTYPE= gs5-kfftype.tar.gz - +KFFTYPE= gs5-kfftype.tar.gz # kfftype patches -KFFTYPE_PATCH= gs5-kfftype-patch1.diff gs5-kfftype-patch2.diff - +KFFTYPE_PATCH= gs5-kfftype-patch1.diff gs5-kfftype-patch2.diff # hfftype patch -HFFTYPE= gs5-hfftype-0.2.tar.gz - +HFFTYPE= gs5-hfftype-0.2.tar.gz # cid-keyed font bug patch for 5.10 -GS_CID_PATCH= gs5.10-cid-bugfix.diff - -# sample fonts(cid, free Korean fonts is just only one.. :< ) -CID_FONTS_KO= Munhwa-Regular MunhwaGothic-Regular - -# CID CMAP -CID_CMAP_KO= ak11.tar.Z - -# in Korea, A4 paper is default -.if defined(NOA4) -CFLAGS+= -.else -CFLAGS+= -DA4 -.endif - -pre-fetch: -.if !defined(NOA4) - @${ECHO_MSG} "Type \"make NOA4=yes\" if you don't want -DA4 for compilation." -.else - @${ECHO_MSG} "Using -DA4 for compilation." -.endif -.if !defined(PDFENCRYPT) - @${ECHO_MSG} "NOTE: You can have encrypted PDF support by adding " - @${ECHO_MSG} "\"PDFENCRYPT=yes\" to argument of make." -.endif +GS_CID_PATCH= gs5.10-cid-bugfix.diff post-extract: - ${TOUCH} ${WRKSRC}/adler32.c - ${TOUCH} ${WRKSRC}/deflate.c - ${TOUCH} ${WRKSRC}/trees.c - ${TOUCH} ${WRKSRC}/adler32.o - ${TOUCH} ${WRKSRC}/deflate.o - ${TOUCH} ${WRKSRC}/trees.o - ${LN} -s ${WRKDIRPREFIX}${PORTSDIR}/graphics/jpeg/work/jpeg-6* ${WRKSRC}/jpeg-6b - ${LN} -s ${WRKDIRPREFIX}${PORTSDIR}/graphics/png/work/libpng-1.* ${WRKSRC}/libpng - cd ${WRKSRC} && unzip -Loa ${DISTDIR}/${HP850_DRV} - cd ${WRKSRC} && tar -xzf ${DISTDIR}/${CID_CMAP_KO} + ${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg + ${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../../graphics/png/work/libpng-1.0.3 ${WRKSRC}/libpng + # additional PCL3 driver + $(TAR) -xvf ${WRKDIR}/hpdj-2.5/hpdj.tar -C $(WRKSRC) + ${PATCH} --directory=${WRKSRC} <${WRKSRC}/devs.mak-5.10.diff + ${PATCH} --directory=${WRKSRC} <${WRKSRC}/zmedia2.c-5.10.diff pre-patch: cd ${WRKSRC} && tar -xzf ${DISTDIR}/${VFLIB_GS} && \ @@ -118,55 +81,27 @@ pre-patch: done && \ ${CP} -r ${WRKSRC}/kfftype/* ${WRKSRC}/ cd ${WRKSRC} && tar -xzf ${DISTDIR}/${HFFTYPE} && \ - ${CP} -r ${WRKSRC}/gs5-hfftype-0.2/* ${WRKSRC}/ + ${CP} -r ${WRKSRC}/gs5-hfftype-0.2/* ${WRKSRC}/ cd ${WRKSRC} && ${PATCH} -s -p1 < \ - ${WRKSRC}/gs5-hfftype-0.2/gs5.10-hfftype.diff + ${WRKSRC}/gs5-hfftype-0.2/gs5.10-hfftype.diff cd ${WRKSRC} && ${PATCH} ${PATCH_DIST_ARGS} < \ - ${DISTDIR}/${GS_CID_PATCH} + ${DISTDIR}/${GS_CID_PATCH} do-configure: -.if defined(BATCH) - @${SETENV} PORTSDIR=${PORTSDIR} WRKSRC=${WRKSRC} \ - ${SH} ${SCRIPTDIR}/configure.batch -.else - @${SETENV} PORTSDIR=${PORTSDIR} WRKSRC=${WRKSRC} \ - ${SH} ${SCRIPTDIR}/configure -.endif + @(cd ${WRKSRC}; ${SH} tar_cat ) pre-install: @${MKDIR} ${PREFIX}/share/ghostscript ${PREFIX}/bin ${PREFIX}/man/man1 - (cd ${PREFIX}/share/ghostscript ; \ - tar -xzf ${DISTDIR}/${GS_FONTS_STD}) - (cd ${PREFIX}/share/ghostscript/fonts ; \ - tar -xzf ${DISTDIR}/${GS_FONTS_OTHER}) - ${CAT} ${FILESDIR}/Fontmap.addition >> ${WRKSRC}/Fontmap - ${INSTALL_DATA} ${FILESDIR}/Munhwa-Regular-KSC-EUC-H.gsf \ - ${FILESDIR}/MunhwaGothic-Regular-KSC-EUC-H.gsf \ - ${PREFIX}/share/ghostscript/fonts - for file in ${CID_FONTS_KO}; do \ - ${INSTALL_DATA} ${DISTDIR}/$$file \ - ${PREFIX}/share/ghostscript/fonts; \ - done - ${MKDIR} ${PREFIX}/share/ghostscript/fonts/CMap; &&\ - ${INSTALL_DATA} ${WRKSRC}/ak11/CMap/* \ - ${PREFIX}/share/ghostscript/fonts/CMap post-install: strip ${PREFIX}/bin/gs ${INSTALL_DATA} ${DISTDIR}/${DECRYPT_PDF} \ ${PREFIX}/share/ghostscript/5.10ft + $(MKDIR) ${PREFIX}/libexec/lpr + ${INSTALL_SCRIPT} $(WRKSRC)/pj-gs.sh ${PREFIX}/libexec/lpr + ${INSTALL_SCRIPT} $(WRKSRC)/sysvlp.sh ${PREFIX}/libexec/lpr + ${INSTALL_SCRIPT} $(WRKSRC)/if-hpdj ${PREFIX}/libexec/lpr ${INSTALL_DATA} ${WRKSRC}/gs5-hfftype-0.2/README \ ${PREFIX}/share/ghostscript/5.10ft/doc/README.ko -.if defined(PDFENCRYPT) - ${CP} -f ${DISTDIR}/pdf_sec.ps ${PREFIX}/share/ghostscript/5.10ft -.endif - -# encrypted PDF support. can't be packaged due to export control issues. -# if you are outside in US, you can use this. -.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 .include <bsd.port.mk> |