summaryrefslogtreecommitdiff
path: root/japanese/platex-common/Makefile
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-11-15 10:27:39 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-11-15 10:27:39 +0000
commit3c52816f1d6f13b34dfe553b33ed0e8dbc9a2a5c (patch)
tree1ad98301d7cdbeb34378dd2034dea0c8c9831fe1 /japanese/platex-common/Makefile
parentNew version of ptex. Since it's somewhat incompatible with the previous (diff)
platex, a Japanese latex that runs under ptex2.
Submitted by: ohmon@sfc.keio.ac.jp
Notes
Notes: svn path=/head/; revision=2421
Diffstat (limited to 'japanese/platex-common/Makefile')
-rw-r--r--japanese/platex-common/Makefile113
1 files changed, 113 insertions, 0 deletions
diff --git a/japanese/platex-common/Makefile b/japanese/platex-common/Makefile
new file mode 100644
index 000000000000..73adfcbf6427
--- /dev/null
+++ b/japanese/platex-common/Makefile
@@ -0,0 +1,113 @@
+# New ports collection makefile for: pLaTeX
+# Version required: ?
+# Date created: 5 Nov 1995
+# Whom: Hideaki Ohmon <ohmon@sfc.keio.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= platex2e
+PKGNAME= jp-platex2e-95.09
+CATEGORIES+= japanese printing
+MASTER_SITES= ftp://ftp.iij.ad.jp/pub/TeX/ASCII-pTeX/2.1.1/ \
+ ftp://ftp.iij.ad.jp/pub/TeX/CTAN/systems/knuth/lib/ \
+ ftp://ftp.iij.ad.jp/pub/TeX/ASCII-pTeX/2.1.1/corresponding-sources/ \
+ ftp://bash.cc.keio.ac.jp/pub/TeX/ASCII-pTeX-2.1.1/ \
+ ftp://bash.cc.keio.ac.jp/pub/TeX/ASCII-pTeX-2.1.1/corresponding-sources/ \
+ ftp://ftp.riken.go.jp/pub/tex-archive/systems/knuth/lib/ \
+ ftp://ftp.ascii.co.jp/pub/TeX/ASCII-pTeX-2.1.1/ \
+ ftp://ftp.ascii.co.jp/pub/TeX/ASCII-pTeX-2.1.1/corresponding-sources/
+DISTFILES= base-9506.tar.gz hyphen.tex
+EXTRACT_ONLY= base-9506.tar.gz
+
+# base-9506.tar.gz is on */*2.1.1/coresponding-sources/
+# hyphen.tex is on */systems/knuth/lib/
+# pl2e-jis.tar.gz, pl2e-sj.tar.gz and pl2e-euc.tar.gz are on
+# */*2.1.1/coresponding-sources/
+
+MAINTAINER= ohmon@sfc.keio.ac.jp
+
+BUILD_DEPENDS= ptex:${PORTSDIR}/japanese/ptex2
+RUN_DEPENDS= ptex:${PORTSDIR}/japanese/ptex2
+
+IS_INTERACTIVE= yes
+WRKSRC= ${WRKDIR}/9509b
+
+pre-fetch:
+.if !defined(KANJI-CODE)
+ @echo "You can set KANJI-CODE value to JIS, SJIS or EUC."
+ @echo "Now default value JIS is set."
+KANJI-CODE= JIS
+.endif
+.if ${KANJI-CODE} == JIS
+DISTFILES+= pl2e-jis.tar.gz
+EXTRACT_ONLY+= pl2e-jis.tar.gz
+.endif
+.if ${KANJI-CODE} == SJIS
+DISTFILES+= pl2e-sj.tar.gz
+EXTRACT_ONLY+= pl2e-sj.tar.gz
+.endif
+.if ${KANJI-CODE} == EUC
+DISTFILES+= pl2e-euc.tar.gz
+EXTRACT_ONLY+= pl2e-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:
+ @rm ${WRKDIR}/base/hyphen.tex
+ @cp ${DISTDIR}/hyphen.tex ${WRKDIR}/base/hyphen.tex
+
+do-build:
+ @(cd ${WRKDIR}/base ; yes | initex unpack.ins ; initex latex.ltx)
+ @(cd ${WRKSRC} ; TEXINPUTS=".:${WRKDIR}/base" ; export TEXINPUTS ; \
+ yes | iniptex plcore.ins ; iniptex platex.ltx)
+
+pre-install:
+ @echo "*************************************************************"
+ @echo "* W a r n i n g *"
+ @echo "* This port will overwrite the existing latex 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)
+
+do-install:
+ @rm -rf /usr/local/lib/texmf/tex/latex2e/base/*
+.if !exists(/usr/local/lib/texmf/tex/latex2e)
+ @mkdir /usr/local/lib/texmf/tex/latex2e
+.endif
+.if !exists(/usr/local/lib/texmf/tex/latex2e/base)
+ @mkdir /usr/local/lib/texmf/tex/latex2e/base
+.endif
+ @(cd ${WRKDIR}/base ; cp -f *.cls *.clo *.sty *.fd *.def *.ltx \
+ /usr/local/lib/texmf/tex/latex2e/base ; \
+ mv latex.fmt /usr/local/lib/texmf/ini)
+ @rm -f /usr/local/bin/latex
+ @ln -s /usr/local/bin/virtex /usr/local/bin/latex
+.if !exists(/usr/local/lib/texmf/tex/platex2e)
+ @mkdir /usr/local/lib/texmf/tex/platex2e
+.endif
+.if !exists(/usr/local/lib/texmf/tex/platex2e/base)
+ @mkdir /usr/local/lib/texmf/tex/platex2e/base
+.endif
+ @(cd ${WRKSRC} ; cp -f *.cls *.clo *.sty *.fd *.def *.ltx *.cfg \
+ /usr/local/lib/texmf/tex/platex2e/base ; \
+ cp -f platex.fmt /usr/local/lib/texmf/ini)
+ @rm -f /usr/local/bin/platex
+ @ln -s /usr/local/bin/virptex /usr/local/bin/platex
+
+.include <bsd.port.mk>
+