blob: 06203c513d492bccab80dfd8d2fb60e307253ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: pTeX
# Date created: 05 Oct 1997
# Whom: max
#
# $FreeBSD$
#
PORTNAME= ptex
PORTVERSION= 3.1.2
PORTREVISION= 1
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/
PKGNAMEPREFIX= ja-
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
DIST_SUBDIR= teTeX
MAINTAINER= max@FreeBSD.org
COMMENT= Japanese specific files for ASCII Japanese pTeX
BUILD_DEPENDS= ${PREFIX}/share/texmf/ptex/plain/base/ptex.tex:${PORTSDIR}/japanese/ptex-base
RUN_DEPENDS= ${PREFIX}/share/texmf/ptex/plain/base/ptex.tex:${PORTSDIR}/japanese/ptex-base
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${KANJICODE}
WRKSRC= ${WRKDIRPREFIX}${.CURDIR}/../ptex-base/work/tetex-src-${TETEX_VERSION}/texk/web2c/${SRCDIR}
ALL_TARGET= default
KANJICODE?= euc
SRCDIR= ptex-${PORTVERSION}
TETEX_VERSION= 2.0.1
BINARIES= ptex pdvitype jbibtex pltotf tftopl
pre-extract:
@${ECHO} "The default kanji code is ${KANJICODE}."
@${ECHO} "You can change the kanji code at ptex runtime with the -kanji option."
@${ECHO} "e.g. ptex -kanji=sjis"
@${ECHO} "If you would like to change the default kanji code, run make as follows:"
@${ECHO} " make KANJICODE=sjis"
@${ECHO} "for Shift-JIS. KANJICODE can be one of sjis, jis or euc."
@sleep 10
.if !exists(${WRKDIRPREFIX}${.CURDIR}/../ptex-base/work/.build_done.ja-ptex-base-${PORTVERSION})
@(cd ${.CURDIR}/../ptex-base; \
${SETENV} ${MAKE_ENV} ${MAKE})
.endif
post-extract:
@${RM} -rf ${WRKSRC}
@${MV} ${WRKDIR}/${SRCDIR} ${WRKDIRPREFIX}${.CURDIR}/../ptex-base/work/tetex-src-${TETEX_VERSION}/texk/web2c
pre-install:
@if [ -L ${PREFIX}/share/texmf/web2c/texmf.cnf ]; then \
${RM} ${PREFIX}/share/texmf/web2c/texmf.cnf; \
fi
post-install:
.for bin in ${BINARIES}
@/usr/bin/strip ${PREFIX}/bin/${bin}
.endfor
@${LN} -sf ptex ${PREFIX}/bin/platex
@${PREFIX}/bin/mktexlsr ${PREFIX}/share/texmf
pre-clean:
@${RM} -rf ${WRKSRC}
.include <bsd.port.mk>
|