1995-11-15 10:16:10 +00:00
|
|
|
# New ports collection makefile for: pTeX
|
1996-03-25 04:31:45 +00:00
|
|
|
# Version required: 2.1.4
|
1995-11-15 10:16:10 +00:00
|
|
|
# Date created: 5 Nov 1995
|
|
|
|
# Whom: Hideaki Ohmon <ohmon@sfc.keio.ac.jp>
|
|
|
|
#
|
1996-08-24 23:55:42 +00:00
|
|
|
# $Id: Makefile,v 1.7 1996/08/22 00:57:24 asami Exp $
|
1995-11-15 10:16:10 +00:00
|
|
|
#
|
|
|
|
|
1996-03-25 04:31:45 +00:00
|
|
|
DISTNAME= ptex3.1415.p2.1.4
|
|
|
|
PKGNAME= jp-ptex-2.1.4
|
1995-11-22 13:06:38 +00:00
|
|
|
CATEGORIES+= japanese print
|
1996-03-25 04:31:45 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/ \
|
|
|
|
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/corresponding-sources/ \
|
1996-03-29 02:33:27 +00:00
|
|
|
ftp://bash.cc.keio.ac.jp/pub/TeX/ascii-ptex/ \
|
|
|
|
ftp://bash.cc.keio.ac.jp/pub/TeX/ascii-ptex/corresponding-sources/
|
|
|
|
|
1996-03-25 04:31:45 +00:00
|
|
|
# ptex-2.1.4.tar.gz, plib-jis.tar.gz, plib-sj.tar.gz and plib-euc.tar.gz
|
1996-03-29 02:33:27 +00:00
|
|
|
# are in */ascii-ptex/ and
|
1995-11-15 10:16:10 +00:00
|
|
|
# web-6.1.tar.gz, web2c-6.1.tar.gz, web2c.kpathsea-2.6.help,
|
1996-03-29 02:33:27 +00:00
|
|
|
# xdvik-18f.tar.gz and lib-6.9.tar.gz are in
|
|
|
|
# */ascii-ptex/corresponding-sources/
|
|
|
|
|
1996-03-25 04:31:45 +00:00
|
|
|
DISTFILES= ptex-2.1.4.tar.gz web-6.1.tar.gz web2c-6.1.tar.gz \
|
1995-11-15 10:16:10 +00:00
|
|
|
web2c.kpathsea-2.6.help xdvik-18f.tar.gz lib-6.9.tar.gz
|
1996-03-25 04:31:45 +00:00
|
|
|
EXTRACT_ONLY= ptex-2.1.4.tar.gz web-6.1.tar.gz web2c-6.1.tar.gz \
|
1995-11-15 10:16:10 +00:00
|
|
|
xdvik-18f.tar.gz
|
|
|
|
|
1996-04-26 08:47:37 +00:00
|
|
|
MAINTAINER= max@sfc.wide.ad.jp
|
1995-11-15 10:16:10 +00:00
|
|
|
|
1996-08-24 23:55:42 +00:00
|
|
|
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
|
|
|
|
|
1996-08-22 00:57:24 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1995-11-15 10:16:10 +00:00
|
|
|
WRKSRC= ${WRKDIR}/kpathsea-2.6
|
1996-08-22 00:57:24 +00:00
|
|
|
STRIP= # some shell scripts
|
1995-11-15 10:16:10 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(KANJI-CODE)
|
1996-03-25 04:31:45 +00:00
|
|
|
@echo "You can set KANJI-CODE value to JIS, SJIS or EUC."
|
|
|
|
@echo "Now JIS is used as default."
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@echo -n "Is JIS OK? (y/n) ==> "
|
|
|
|
@(read ans; \
|
|
|
|
case x"$$ans" in \
|
|
|
|
xy*|xY*) \
|
|
|
|
return 0; \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
echo "Ok, please rerun make with preferred KANJI-CODE specification"; \
|
|
|
|
echo " like following example."; \
|
|
|
|
echo " make KANJI-CODE=EUC"; \
|
|
|
|
return 1; \
|
|
|
|
;; \
|
|
|
|
esac)
|
|
|
|
.endif
|
|
|
|
|
1995-11-15 10:16:10 +00:00
|
|
|
KANJI-CODE= JIS
|
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == JIS
|
|
|
|
DISTFILES+= plib-jis.tar.gz
|
|
|
|
EXTRACT_ONLY+= plib-jis.tar.gz
|
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == SJIS
|
|
|
|
DISTFILES+= plib-sj.tar.gz
|
|
|
|
EXTRACT_ONLY+= plib-sj.tar.gz
|
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == EUC
|
|
|
|
DISTFILES+= plib-euc.tar.gz
|
|
|
|
EXTRACT_ONLY+= plib-euc.tar.gz
|
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} != JIS && ${KANJI-CODE} != SJIS && ${KANJI-CODE} != EUC
|
|
|
|
@echo "Error: invalid value for KANJI-CODE: \"${KANJI-CODE}\""
|
|
|
|
@echo "Possible values are: JIS (default), SJIS, EUC."
|
|
|
|
exit 1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@mv ${WRKDIR}/web2c-6.1/web2c ${WRKDIR}/xdvik-18f
|
|
|
|
@mv ${WRKDIR}/xdvik-18f ${WRKDIR}/kpathsea-2.6
|
1996-03-25 04:31:45 +00:00
|
|
|
@rm -fr ${WRKDIR}/web2c-6.1 ${WRKDIR}/kpathsea-2.6/xdvik
|
1995-11-15 10:16:10 +00:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
patch -p -s < ${DISTDIR}/web2c.kpathsea-2.6.help)
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if ${KANJI-CODE} == JIS
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${WRKDIR}/ptex-2.1.4 ; ./pTeXsetup -jis)
|
1995-11-15 10:16:10 +00:00
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == SJIS
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${WRKDIR}/ptex-2.1.4 ; ./pTeXsetup -sjis)
|
1995-11-15 10:16:10 +00:00
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == EUC
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${WRKDIR}/ptex-2.1.4 ; ./pTeXsetup -euc)
|
1995-11-15 10:16:10 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@touch ${WRKSRC}/web2c/web/tangleboot.p
|
|
|
|
@touch ${WRKSRC}/web2c/web/tangleboot.[ch]
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} ; make)
|
|
|
|
|
|
|
|
pre-install:
|
1996-03-25 04:31:45 +00:00
|
|
|
.if !defined(BATCH)
|
1995-11-15 10:16:10 +00:00
|
|
|
@echo "***********************************************************"
|
|
|
|
@echo "* W a r n i n g *"
|
|
|
|
@echo "* This port will overwrite the existing tex installation. *"
|
|
|
|
@echo "***********************************************************"
|
|
|
|
@echo -n "Is this ok? (y/n) ==> "
|
|
|
|
@(read ans; \
|
|
|
|
case x"$$ans" in \
|
|
|
|
xy*|xY*) \
|
|
|
|
return 0; \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
echo "Okay, I won't install it then...."; \
|
|
|
|
echo "(Don't worry about the following \"*** Error code 1\"s)"; \
|
|
|
|
return 1; \
|
|
|
|
;; \
|
|
|
|
esac)
|
1996-08-22 00:57:24 +00:00
|
|
|
.endif
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/lib-6.9.tar.gz | tar xf -)
|
1995-11-15 10:16:10 +00:00
|
|
|
.if ${KANJI-CODE} == JIS
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/plib-jis.tar.gz | tar xf -)
|
1995-11-15 10:16:10 +00:00
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == SJIS
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/plib-sj.tar.gz | tar xf -)
|
1995-11-15 10:16:10 +00:00
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == EUC
|
1996-03-25 04:31:45 +00:00
|
|
|
@(cd ${PREFIX}/lib ; gzip -dc ${DISTDIR}/plib-euc.tar.gz | tar xf -)
|
|
|
|
.endif
|
1995-11-15 10:16:10 +00:00
|
|
|
|
1996-08-22 00:57:24 +00:00
|
|
|
BINARIES=kpsewhich dvicopy dvitype pdvitype gftodvi gftopk \
|
|
|
|
mft pktogf pktype vftovp vptovf gftype pltotf tftopl initex \
|
|
|
|
virtex patgen iniptex virptex inimf virmf bibtex jbibtex \
|
|
|
|
tangle weave pooltype
|
|
|
|
|
|
|
|
MANPAGES=amslatex.1 amstex.1 bibtex.1 dvitype.1 etex.1 gftodvi.1 \
|
1995-11-15 10:16:10 +00:00
|
|
|
gftopk.1 gftype.1 initex.1 lamstex.1 latex.1 mf.1 mft.1 \
|
|
|
|
patgen.1 pktogf.1 pktype.1 pltotf.1 pooltype.1 slitex.1 \
|
|
|
|
tangle.1 tex.1 tftopl.1 vftovp.1 virtex.1 vptovf.1 weave.1
|
|
|
|
|
|
|
|
post-install:
|
1996-08-22 00:57:24 +00:00
|
|
|
.for bin in ${BINARIES}
|
|
|
|
strip ${PREFIX}/bin/${bin}
|
|
|
|
.endfor
|
1995-11-15 10:16:10 +00:00
|
|
|
.if !defined(NOMANCOMPRESS)
|
1996-08-22 00:57:24 +00:00
|
|
|
.for man in ${MANPAGES}
|
|
|
|
gzip -9nf ${PREFIX}/man/man1/${man}
|
|
|
|
.endfor
|
1995-11-15 10:16:10 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|