1997-09-24 08:43:50 +02:00
|
|
|
# New ports collection makefile for: ja-jlatex209
|
1996-11-11 09:42:48 +01:00
|
|
|
# Date created: 4 Nov 1996
|
|
|
|
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1996-11-11 09:42:48 +01:00
|
|
|
#
|
|
|
|
|
2000-04-11 16:15:53 +02:00
|
|
|
PORTNAME= jlatex209
|
|
|
|
PORTVERSION= ${_PORTVERSION}
|
|
|
|
PKGNAMESUFFIX= ${_PKGNAMESUFFIX}
|
1996-11-11 09:42:48 +01:00
|
|
|
CATEGORIES= japanese print
|
1999-05-04 12:29:05 +02:00
|
|
|
MASTER_SITES= ftp://ftp.iis.u-tokyo.ac.jp/TeX/NTT-JTeX/:old/ \
|
1996-11-11 09:42:48 +01:00
|
|
|
ftp://ftp.iis.u-tokyo.ac.jp/TeX/fonts/pk/ \
|
1997-08-22 13:36:26 +02:00
|
|
|
ftp://ftp.waseda.ac.jp/pub/tex/ascii-OLD/
|
2000-04-11 16:15:53 +02:00
|
|
|
DISTFILES= jtex-${NTT_VERSION}.tar.gz \
|
|
|
|
tfm-files.tar.Z \
|
|
|
|
jtex${ASCII_VERSION}.tar.gz \
|
|
|
|
pTeX-JIS-patch
|
1996-11-11 09:42:48 +01:00
|
|
|
|
|
|
|
MAINTAINER= mita@jp.FreeBSD.org
|
|
|
|
|
2000-04-11 16:15:53 +02:00
|
|
|
ASCII_VERSION= 1.7
|
|
|
|
NTT_VERSION= 1.52
|
|
|
|
|
1997-11-22 02:38:55 +01:00
|
|
|
MANUAL_PACKAGE_BUILD= incompatible with other versions of jtex-*
|
1996-11-11 09:42:48 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2000-04-11 16:15:53 +02:00
|
|
|
EXTRACT_ONLY= jtex-${NTT_VERSION}.tar.gz
|
2000-01-27 02:05:08 +01:00
|
|
|
USE_BISON= yes
|
1996-11-11 09:42:48 +01:00
|
|
|
|
|
|
|
# Which latex to be made at BATCH mode. BOTH, ASCII, NTT are available.
|
|
|
|
BATCH_TEX?= BOTH
|
|
|
|
|
2000-04-11 16:15:53 +02:00
|
|
|
.if ${BATCH_TEX} == BOTH
|
|
|
|
_PORTVERSION= ${ASCII_VERSION}+${NTT_VERSION}
|
|
|
|
_PKGNAMESUFFIX= -ascii+ntt
|
|
|
|
.elseif ${BATCH_TEX} == ASCII
|
|
|
|
_PORTVERSION= ${ASCII_VERSION}
|
|
|
|
_PKGNAMESUFFIX= -ascii
|
|
|
|
.elseif ${BATCH_TEX} == NTT
|
|
|
|
_PORTVERSION= ${NTT_VERSION}
|
|
|
|
_PKGNAMESUFFIX= -ntt
|
|
|
|
.endif
|
|
|
|
|
1996-11-11 09:42:48 +01:00
|
|
|
post-extract:
|
|
|
|
@(\
|
|
|
|
cd ${WRKSRC} ; \
|
2000-04-11 16:15:53 +02:00
|
|
|
${MKDIR} jtex${ASCII_VERSION} ; \
|
1996-11-11 09:42:48 +01:00
|
|
|
cd jtex1.7 ; \
|
2000-04-11 16:15:53 +02:00
|
|
|
tar xzf ${DISTDIR}/jtex${ASCII_VERSION}.tar.gz ; \
|
1996-11-11 09:42:48 +01:00
|
|
|
cd ptex/ptex ; \
|
|
|
|
${CP} -R ../../jtex/web2cdir . ; \
|
|
|
|
${CP} -R ../../jtex/jtangle . \
|
|
|
|
)
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
.if defined(BATCH)
|
|
|
|
@(\
|
|
|
|
cd ${WRKSRC} ; \
|
1997-07-13 20:49:31 +02:00
|
|
|
${SH} ${FILESDIR}/select.sh ${FILESDIR} ${DISTDIR} ${PKGDIR} ${BATCH_TEX}; \
|
1996-11-11 09:42:48 +01:00
|
|
|
)
|
|
|
|
.else
|
|
|
|
@(\
|
|
|
|
cd ${WRKSRC} ; \
|
1997-07-13 20:49:31 +02:00
|
|
|
${SH} ${FILESDIR}/select.sh ${FILESDIR} ${DISTDIR} ${PKGDIR} SELECT ; \
|
1996-11-11 09:42:48 +01:00
|
|
|
)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@(\
|
1999-06-05 21:55:24 +02:00
|
|
|
if [ -e ${PREFIX}/share/tex/BOTH ] ; \
|
1997-07-13 20:49:31 +02:00
|
|
|
then ${SH} ${FILESDIR}/linkselect.sh ; \
|
1996-11-11 09:42:48 +01:00
|
|
|
fi \
|
|
|
|
)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-reinstall:
|
|
|
|
@${RM} -f ${INSTALL_COOKIE}
|
|
|
|
@${RM} -f ${PACKAGE_COOKIE}
|
|
|
|
@(\
|
|
|
|
cd ${WRKSRC} ; \
|
|
|
|
${MAKE} reinstall DISTDIR=${DISTDIR} FILESDIR=${FILESDIR} \
|
|
|
|
)
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|