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>
|
|
|
|
#
|
1997-02-11 18:06:02 +00:00
|
|
|
# $Id: Makefile,v 1.13 1997/02/09 00:40:35 max Exp $
|
1995-11-15 10:27:39 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= platex2e
|
1997-02-09 00:40:55 +00:00
|
|
|
PKGNAME= jp-platex2e-97.02.01
|
1996-11-11 08:11:50 +00:00
|
|
|
CATEGORIES= japanese print
|
1997-02-09 00:40:55 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/platex2e/1997-02-01/ \
|
|
|
|
ftp://freefall.freebsd.org/pub/FreeBSD/LOCAL_PORTS/
|
|
|
|
DISTFILES= base-9612.tar.gz ecfonts-1.0.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
|
|
|
|
|
1997-02-09 00:40:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/9702
|
|
|
|
DIST_SUBDIR= platex2e
|
|
|
|
NO_BUILD= yes
|
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."
|
1997-02-09 00:40:55 +00:00
|
|
|
.if !defined(BATCH) && !defined(FOR_CDROM)
|
1996-04-26 08:18:24 +00:00
|
|
|
@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
|
1997-02-09 00:40:55 +00:00
|
|
|
PLIB_FILE= pl9702j.tar.gz
|
1996-11-07 14:52:26 +00:00
|
|
|
.elif ${KANJI-CODE} == SJIS
|
1997-02-09 00:40:55 +00:00
|
|
|
PLIB_FILE= pl9702s.tar.gz
|
1996-11-07 14:52:26 +00:00
|
|
|
.elif ${KANJI-CODE} == EUC
|
1997-02-09 00:40:55 +00:00
|
|
|
PLIB_FILE= pl9702e.tar.gz
|
1996-11-07 14:52:26 +00:00
|
|
|
.elifdef KANJI-CODE
|
1995-11-15 10:27:39 +00:00
|
|
|
@echo "Error: invalid value for KANJI-CODE: \"${KANJI-CODE}\""
|
|
|
|
@echo "Possible values are: JIS (default), SJIS, EUC."
|
1996-11-07 14:52:26 +00:00
|
|
|
@false
|
1995-11-15 10:27:39 +00:00
|
|
|
.endif
|
1997-02-09 00:40:55 +00:00
|
|
|
.if !defined(FOR_CDROM)
|
1996-11-07 14:52:26 +00:00
|
|
|
DISTFILES+= ${PLIB_FILE}
|
1997-02-09 00:40:55 +00:00
|
|
|
.else
|
|
|
|
DISTFILES+= pl9702j.tar.gz pl9702s.tar.gz pl9702e.tar.gz
|
|
|
|
.endif
|
|
|
|
EXTRACT_ONLY= ${PLIB_FILE}
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
do-install:
|
1997-02-11 18:06:02 +00:00
|
|
|
@${RM} -f ${PREFIX}/lib/texmf/tex/latex2e/base/*
|
|
|
|
@${RM} -f ${PREFIX}/lib/texmf/tex/platex2e/base/*
|
1997-02-09 00:40:55 +00:00
|
|
|
@tar -C ${PREFIX}/lib/texmf/fonts/public -zx \
|
|
|
|
-f ${DISTDIR}/${DIST_SUBDIR}/ecfonts-1.0.tar.gz
|
|
|
|
@tar -C ${PREFIX}/lib/texmf/tex/latex2e -zx \
|
|
|
|
-f ${DISTDIR}/${DIST_SUBDIR}/base-9612.tar.gz
|
|
|
|
(cd ${PREFIX}/lib/texmf/tex/latex2e/base; \
|
|
|
|
initex unpack.ins; \
|
|
|
|
yes | initex ec.ins; \
|
|
|
|
initex latex.ltx; \
|
|
|
|
mv -f latex.fmt ${PREFIX}/lib/texmf/ini)
|
|
|
|
ln -fs ${PREFIX}/bin/virtex ${PREFIX}/bin/latex
|
1996-11-02 05:28:19 +00:00
|
|
|
@${MKDIR} ${PREFIX}/lib/texmf/tex/platex2e/base
|
1997-02-09 00:40:55 +00:00
|
|
|
@${CP} -R ${WRKSRC}/* ${PREFIX}/lib/texmf/tex/platex2e/base
|
|
|
|
(cd ${PREFIX}/lib/texmf/tex/platex2e/base; \
|
|
|
|
iniptex plcore.ins; \
|
|
|
|
iniptex platex.ltx; \
|
|
|
|
mv -f platex.fmt ${PREFIX}/lib/texmf/ini)
|
|
|
|
ln -fs ${PREFIX}/bin/virptex ${PREFIX}/bin/platex
|
1995-11-15 10:27:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|