1995-11-15 10:27:39 +00:00
|
|
|
# New ports collection makefile for: pLaTeX
|
|
|
|
# Version required: ?
|
|
|
|
# Date created: 5 Nov 1995
|
|
|
|
# Whom: Hideaki Ohmon <ohmon@sfc.keio.ac.jp>
|
|
|
|
#
|
1996-10-27 00:20:27 +00:00
|
|
|
# $Id: Makefile,v 1.8 1996/09/26 04:46:07 max Exp $
|
1995-11-15 10:27:39 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= platex2e
|
1996-07-07 09:49:23 +00:00
|
|
|
PKGNAME= jp-platex2e-96.03
|
1995-11-22 13:06:38 +00:00
|
|
|
CATEGORIES+= japanese print
|
1996-07-07 09:49:23 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/platex2e/1996-03-05/ \
|
1996-04-26 08:18:24 +00:00
|
|
|
ftp://ftp.iij.ad.jp/pub/TeX/CTAN/systems/knuth/lib/ \
|
|
|
|
ftp://ftp.riken.go.jp/pub/tex-archive/systems/knuth/lib/
|
1996-07-07 09:49:23 +00:00
|
|
|
DISTFILES= base-9512.tar.gz hyphen.tex.gz
|
|
|
|
EXTRACT_ONLY= base-9512.tar.gz
|
1995-11-15 10:27:39 +00:00
|
|
|
|
1996-09-17 15:07:58 +00:00
|
|
|
MAINTAINER= max@FreeBSD.ORG
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ptex:${PORTSDIR}/japanese/ptex2
|
|
|
|
RUN_DEPENDS= ptex:${PORTSDIR}/japanese/ptex2
|
|
|
|
|
1996-07-07 09:49:23 +00:00
|
|
|
WRKSRC= ${WRKDIR}/9603
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(KANJI-CODE)
|
|
|
|
@echo "You can set KANJI-CODE value to JIS, SJIS or EUC."
|
1996-04-26 08:18:24 +00:00
|
|
|
@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:27:39 +00:00
|
|
|
KANJI-CODE= JIS
|
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == JIS
|
1996-07-07 09:49:23 +00:00
|
|
|
DISTFILES+= pl9603j.tar.gz
|
|
|
|
EXTRACT_ONLY+= pl9603j.tar.gz
|
1995-11-15 10:27:39 +00:00
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == SJIS
|
1996-07-07 09:49:23 +00:00
|
|
|
DISTFILES+= pl9603s.tar.gz
|
|
|
|
EXTRACT_ONLY+= pl9603s.tar.gz
|
1995-11-15 10:27:39 +00:00
|
|
|
.endif
|
|
|
|
.if ${KANJI-CODE} == EUC
|
1996-07-07 09:49:23 +00:00
|
|
|
DISTFILES+= pl9603e.tar.gz
|
|
|
|
EXTRACT_ONLY+= pl9603e.tar.gz
|
1995-11-15 10:27:39 +00:00
|
|
|
.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:
|
|
|
|
@rm ${WRKDIR}/base/hyphen.tex
|
1996-07-07 09:49:23 +00:00
|
|
|
@gzip -cd ${DISTDIR}/hyphen.tex.gz > ${WRKDIR}/base/hyphen.tex
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${WRKDIR}/base ; yes | initex unpack.ins ; initex latex.ltx)
|
|
|
|
@(cd ${WRKSRC} ; TEXINPUTS=".:${WRKDIR}/base" ; export TEXINPUTS ; \
|
1996-09-26 04:46:07 +00:00
|
|
|
yes | iniptex plcore.ins ; iniptex platex.ltx)
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
do-install:
|
1996-07-07 09:49:23 +00:00
|
|
|
@rm -rf ${PREFIX}/lib/texmf/tex/latex2e/base/*
|
1996-10-27 00:20:27 +00:00
|
|
|
@${MKDIR} -p ${PREFIX}/lib/texmf/tex/latex2e/base
|
1996-09-26 04:46:07 +00:00
|
|
|
(cd ${WRKDIR}/base ; \
|
|
|
|
for f in *.cls *.clo *.sty *.fd *.def *.ltx ; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/lib/texmf/tex/latex2e/base ; \
|
|
|
|
done ; \
|
|
|
|
${INSTALL_DATA} latex.fmt ${PREFIX}/lib/texmf/ini)
|
|
|
|
@rm -f ${PREFIX}/bin/latex
|
1996-07-07 09:49:23 +00:00
|
|
|
@ln -s ${PREFIX}/bin/virtex ${PREFIX}/bin/latex
|
1996-10-27 00:20:27 +00:00
|
|
|
@${MKDIR} -p ${PREFIX}/lib/texmf/tex/platex2e/base
|
1996-09-26 04:46:07 +00:00
|
|
|
(cd ${WRKSRC} ; \
|
|
|
|
for f in *.cls *.clo *.sty *.fd *.def *.ltx *.cfg ; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/lib/texmf/tex/platex2e/base ; \
|
|
|
|
done ; \
|
|
|
|
${INSTALL_DATA} platex.fmt ${PREFIX}/lib/texmf/ini)
|
1996-07-07 09:49:23 +00:00
|
|
|
@rm -f ${PREFIX}/bin/platex
|
|
|
|
@ln -s ${PREFIX}/bin/virptex ${PREFIX}/bin/platex
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|