diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 1996-11-02 16:34:43 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 1996-11-02 16:34:43 +0000 |
commit | cfa12f4195085f7e022a37644ee59abe11865a07 (patch) | |
tree | 9a7be5fab06e40fcaceafb52744b63a5aa56f46c /japanese/vfghostscript | |
parent | Ooops, had to move rplay from RUN_DEPEND to BUILD_DEPEND (diff) |
Use ${PREFIX} instead of /usr/local.
Use macros for cp, mkdir, rm, cat and gzip for compressing man page.
Notes
Notes:
svn path=/head/; revision=4259
Diffstat (limited to 'japanese/vfghostscript')
-rw-r--r-- | japanese/vfghostscript/Makefile | 103 |
1 files changed, 51 insertions, 52 deletions
diff --git a/japanese/vfghostscript/Makefile b/japanese/vfghostscript/Makefile index f261aad920ef..019437ef1146 100644 --- a/japanese/vfghostscript/Makefile +++ b/japanese/vfghostscript/Makefile @@ -3,7 +3,7 @@ # Date created: 14 May 1996 # Whom: Mita Yoshio <mita@jp.FreeBSD.org> # -# $Id$ +# $Id: Makefile,v 1.1.1.1 1996/11/02 12:12:43 asami Exp $ # DISTNAME= ghostscript2.6.2 @@ -26,7 +26,7 @@ BUILD_DEPENDS= ${PREFIX}/lib/libVFlib.a:${PORTSDIR}/japanese/vflib WRKSRC= ${WRKDIR}/gs262 EXTRACT_ONLY= ghostscript-2.6.2.tar.gz -DOC_DIR=/usr/local/lib/ghostscript/doc +DOC_DIR=${PREFIX}/lib/ghostscript/doc # Note: unix-gcc.mak.patch can't be put in patches/ because it should # be applied after gs261j.diff, which should, in turn, be applied @@ -42,23 +42,23 @@ pre-patch: ${PATCH} ${PATCH_ARGS} <${FILESDIR}/gdevep82.patch ; \ ${PATCH} ${PATCH_ARGS} <${FILESDIR}/bjc600j.dif.patch >/dev/null 2>&1; \ ${PATCH} ${PATCH_ARGS} <${FILESDIR}/bjc600j.mak.patch >/dev/null 2>&1; \ - cp gdevmjc-0.7/gdevmjc.c gdevmjc-0.7/mjc.dev .; \ - cp bjc600j/paramod.c . ; \ - cp gdevlips4-1.0.1/gdevlips4.c gdevlips4-1.0.1/gdevlips4.mak .; \ + ${CP} gdevmjc-0.7/gdevmjc.c gdevmjc-0.7/mjc.dev .; \ + ${CP} bjc600j/paramod.c . ; \ + ${CP} gdevlips4-1.0.1/gdevlips4.c gdevlips4-1.0.1/gdevlips4.mak .; \ cd drivers ; \ - cp gdev10v/gdev10v.c gdev10v/gdev10v.mak .. ; \ - cp gdevdmpr/gdevdmpr.c gdevdmpr/gdevdmpr.mak .. ; \ - cp gdevdmpr/dviprlib.c gdevdmpr/dviprlib.h .. ; \ - cp gdevep82/gdevep82.c gdevep82/gdevep82.mak ..; \ - cp gdevepag/gdevepag.c gdevepag/gdevepag.mak .. ; \ - cp gdevj100/gdevj100.c gdevj100/gdevj100.mak .. ; \ - cp gdevmag/gdevmag.c gdevmag/gdevmag.mak .. ; \ - cp gdevp201/gdevp201.c gdevp201/gdevp201.mak ..; ) + ${CP} gdev10v/gdev10v.c gdev10v/gdev10v.mak .. ; \ + ${CP} gdevdmpr/gdevdmpr.c gdevdmpr/gdevdmpr.mak .. ; \ + ${CP} gdevdmpr/dviprlib.c gdevdmpr/dviprlib.h .. ; \ + ${CP} gdevep82/gdevep82.c gdevep82/gdevep82.mak ..; \ + ${CP} gdevepag/gdevepag.c gdevepag/gdevepag.mak .. ; \ + ${CP} gdevj100/gdevj100.c gdevj100/gdevj100.mak .. ; \ + ${CP} gdevmag/gdevmag.c gdevmag/gdevmag.mak .. ; \ + ${CP} gdevp201/gdevp201.c gdevp201/gdevp201.mak ..; ) @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/drivers/gdevp201/gdevp201.dif @${PATCH} ${PATCH_ARGS} <${FILESDIR}/unix-gcc.mak.patch >/dev/null 2>&1 @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/bjc600j/gdevcdj.dif >/dev/null 2>&1 @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/bjc600j/devsmak.dif >/dev/null 2>&1 - @cp ${WRKSRC}/unix-gcc.mak ${WRKSRC}/Makefile + @${CP} ${WRKSRC}/unix-gcc.mak ${WRKSRC}/Makefile .if defined(BATCH) @(cd ${WRKSRC} ; \ /bin/sh ${FILESDIR}/printer.sh BATCH; \ @@ -68,17 +68,17 @@ pre-patch: /bin/sh ${FILESDIR}/printer.sh; \ ) .endif - @cat ${WRKSRC}/kfvflib.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdev10v.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/bjc600j.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevdmpr.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevep82.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevepag.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevj100.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevlips4.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevmag.mak >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/mjc.dev >> ${WRKSRC}/Makefile - @cat ${WRKSRC}/gdevp201.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/kfvflib.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdev10v.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/bjc600j.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevdmpr.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevep82.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevepag.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevj100.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevlips4.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevmag.mak >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/mjc.dev >> ${WRKSRC}/Makefile + @${CAT} ${WRKSRC}/gdevp201.mak >> ${WRKSRC}/Makefile post-build: @(cd ${WRKSRC}; \ @@ -89,41 +89,40 @@ post-install: @strip ${PREFIX}/bin/gs ; @${INSTALL_PROGRAM} ${WRKSRC}/paramod ${PREFIX}/bin ; @(cd ${PREFIX}/lib/ghostscript ; \ - cp ${WRKSRC}/bjc600j/*.ps . ; \ + ${CP} ${WRKSRC}/bjc600j/*.ps . ; \ tar xzf ${DISTDIR}/ghostscript-fonts-2.6.2.tar.gz ; \ - cp ${PREFIX}/lib/ghostscript/kanji/vflib.ps ${PREFIX}/lib/ghostscript/kanji/kconfig.ps ; \ + ${CP} ${PREFIX}/lib/ghostscript/kanji/vflib.ps ${PREFIX}/lib/ghostscript/kanji/kconfig.ps ; \ cd fonts ;\ tar xzf ${DISTDIR}/ghostscript-fonts-4.0.tar.gz ; \ ${PATCH} < ${FILESDIR}/Fontmap.diff ; \ - cat Fontmap >> ../Fontmap ; \ - rm Fontmap* ; \ - rm pag* pbk* phv* pnc* ppl* ptm* ; \ + ${CAT} Fontmap >> ../Fontmap ; \ + ${RM} Fontmap* ; \ + ${RM} pag* pbk* phv* pnc* ppl* ptm* ; \ ) @(cd ${WRKSRC}/drivers/gdevdmpr ; \ - cp dmp_init.ps dmp_site.ps testpage.ps ${PREFIX}/lib/ghostscript ; \ - cp escp_24.src ${PREFIX}/lib/ghostscript/doc ; \ + ${CP} dmp_init.ps dmp_site.ps testpage.ps ${PREFIX}/lib/ghostscript ; \ + ${CP} escp_24.src ${PREFIX}/lib/ghostscript/doc ; \ ) - @(if [ ! -d ${PREFIX}/man/man1 ] ; \ - then mkdir -p ${PREFIX}/man/man1 ; fi ; \ - cp ${WRKSRC}/gs.1 ${PREFIX}/man/man1/ ; \ - gzip -9f ${PREFIX}/man/man1/gs.1 ; \ - cp ${WRKSRC}/gs261j.jis ${DOC_DIR} ; \ - cp ${WRKSRC}/printers.jis ${DOC_DIR} ; \ - cp ${WRKSRC}/gdevmjc-0.7/README.jis ${DOC_DIR}/gdevmjc.jis ; \ - cp ${WRKSRC}/gdevmjc-0.7/MJ700V2C.FAQ ${DOC_DIR} ; \ - cp ${WRKSRC}/bjc600j/bjc600j.jis ${DOC_DIR} ; \ - cp ${WRKSRC}/bjc600j/cmds.doc ${DOC_DIR} ; \ - cp ${WRKSRC}/gdevlips4-1.0.1/Readme ${DOC_DIR}/gdevlips4.euc ; \ + @(${MKDIR} ${PREFIX}/man/man1 ; \ + ${CP} ${WRKSRC}/gs.1 ${PREFIX}/man/man1/ ; \ + ${COMPRESS_MAN} ${PREFIX}/man/man1/gs.1 ; \ + ${CP} ${WRKSRC}/gs261j.jis ${DOC_DIR} ; \ + ${CP} ${WRKSRC}/printers.jis ${DOC_DIR} ; \ + ${CP} ${WRKSRC}/gdevmjc-0.7/README.jis ${DOC_DIR}/gdevmjc.jis ; \ + ${CP} ${WRKSRC}/gdevmjc-0.7/MJ700V2C.FAQ ${DOC_DIR} ; \ + ${CP} ${WRKSRC}/bjc600j/bjc600j.jis ${DOC_DIR} ; \ + ${CP} ${WRKSRC}/bjc600j/cmds.doc ${DOC_DIR} ; \ + ${CP} ${WRKSRC}/gdevlips4-1.0.1/Readme ${DOC_DIR}/gdevlips4.euc ; \ cd ${WRKSRC}/drivers ; \ - cp gdev10v/gdev10v.jis ${DOC_DIR} ; \ - cp gdevcdj/gdev505j.sj ${DOC_DIR} ; \ - cp gdevdmpr/gdevdmpr.sj ${DOC_DIR} ; \ - cp gdevep82/gdevep82.jis ${DOC_DIR} ; \ - cp gdevepag/gdevepag.jis ${DOC_DIR} ; \ - cp gdevj100/gdevj100.jis ${DOC_DIR} ; \ - cp gdevmag/gdevmag.sj ${DOC_DIR} ; \ - cp gdevp201/gdevp201.jis ${DOC_DIR} ; \ - cat gdevp201/gdevp201.add >> ${DOC_DIR}/gdevp201.jis ; \ + ${CP} gdev10v/gdev10v.jis ${DOC_DIR} ; \ + ${CP} gdevcdj/gdev505j.sj ${DOC_DIR} ; \ + ${CP} gdevdmpr/gdevdmpr.sj ${DOC_DIR} ; \ + ${CP} gdevep82/gdevep82.jis ${DOC_DIR} ; \ + ${CP} gdevepag/gdevepag.jis ${DOC_DIR} ; \ + ${CP} gdevj100/gdevj100.jis ${DOC_DIR} ; \ + ${CP} gdevmag/gdevmag.sj ${DOC_DIR} ; \ + ${CP} gdevp201/gdevp201.jis ${DOC_DIR} ; \ + ${CAT} gdevp201/gdevp201.add >> ${DOC_DIR}/gdevp201.jis ; \ ) .include <bsd.port.mk> |