summaryrefslogtreecommitdiffstats
path: root/japanese/texfamily/Makefile
blob: 7135c335781dda4fa37b443db7ab96455f5e7124 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# New ports collection makefile for:	texfamily
# Date created:		9 Feb 2004
# Whom:			hrs
#
# $FreeBSD$

PORTNAME=	texfamily
PORTVERSION=	1.2
CATEGORIES=	japanese print
MASTER_SITES=	ftp://ftp.math.s.chiba-u.ac.jp/tex/texfam-1.2/
PKGNAMEPREFIX=	ja-
PKGNAMESUFFIX=	-tetex
DISTFILES=	teTeX-src-1.0.7${EXTRACT_SUFX} \
		texfam-1.2${EXTRACT_SUFX} \
		texfam-texmf-j1.9${EXTRACT_SUFX} \
		texfam-texmf-latex209${EXTRACT_SUFX} \
		web2c-j1.9${EXTRACT_SUFX}
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	teTeX-src-1.0.7${EXTRACT_SUFX} \
		texfam-1.2${EXTRACT_SUFX} \
		texfam-texmf-j1.9${EXTRACT_SUFX} \
		texfam-texmf-latex209${EXTRACT_SUFX}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	A Japanese TeX, NTT JTeX (TeXfamily)

BUILD_DEPENDS=	tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
		${LOCALBASE}/${TEXMFDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
		mktexlsr:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS=	tetex-modesw:${PORTSDIR}/print/tex-texmflocal \
		${LOCALBASE}/${TEXMFDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
		mktexlsr:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		wwwcore.1:${PORTSDIR}/www/libwww \
		t1.5:${PORTSDIR}/devel/t1lib

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	${KANJICODE}
CONFIGURE_ENV=	INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
		INSTALL_DATA="${INSTALL_DATA}" \
		INSTALL_PROGRAM="${INSTALL_PROGRAM}"
USE_GMAKE=	yes
TEXMFTMP=	${WRKDIR}/texmf-tmp

.if make(pre-build) || make(do-build)
MAKE_ENV=	TEXMFLOCAL=${TEXMFTMP}
.endif
ALL_TARGET=	default
PLIST_SUB=	MKTEXLSR=${MKTEXLSR} \
		TEXMFDIR=${TEXMFDIR} \
		TEXMFLOCAL=${TEXMFLOCAL}
CONFLICTS=	ja-ptex-base*

INSTALL_WRKSRC=	${WRKDIR}/teTeX-1.0/texk/web2c-j
WRKSRC=		${WRKDIR}/teTeX-1.0

TETEX_MODESW=	${LOCALBASE}/bin/tetex-modesw

KANJICODE?=	euc
TEXMFDIR?=	share/texmf
TEXMFCNF_SRC=	${WRKDIR}/teTeX-1.0/texk/kpathsea/texmf.cnf
TEXMFCNF_DST=	${PREFIX}/${TEXMFDIR}/web2c-jtex/texmf.cnf
MKTEXLSR?=	${LOCALBASE}/bin/mktexlsr
LIBPNG_PREFIX?=	${LOCALBASE}
LIBWWW_PREFIX?=	${LOCALBASE}
LIBT1_PREFIX?=	${LOCALBASE}

INSTDIRS=	doc fonts jbibtex jtex source tex
DOC_FILES=	COPYRIGHT COPYRIGHT.jis Changes.txt README.txt
TEXMFLOCAL=	share/texmf-local

CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--enable-local-texmf=${TEXMFLOCAL} \
		--disable-multiplatform \
		--without-texinfo --without-dialog \
		--with-system-ncurses --with-system-zlib \
		--with-system-wwwlib --with-libwww-libdir=${LIBWWW_PREFIX}/lib \
		--with-libwww-include=${LIBWWW_PREFIX}/include/w3c-libwww \
		--with-system-pnglib --with-pnglib-libdir=${LIBPNG_PREFIX}/lib \
		--with-pnglib-include=${LIBPNG_PREFIX}/include \
		--with-system-t1lib --with-t1lib-libdir=${LIBT1_PREFIX}/lib \
		--with-t1lib-include=${LIBT1_PREFIX}/include \
		--without-xdvik --without-oxdvik \
		--without-dvipsk --without-odvipsk \
		--without-x11 --without-dvipdfm --without-omega \
		--without-pdftex --without-pdfetex \
		--with-etex=no
post-extract:
	cd ${WRKSRC}/texk && \
		${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/web2c-j1.9${EXTRACT_SUFX}

pre-build:
	${MKDIR} ${TEXMFTMP}
	cd ${WRKDIR} && \
		${TAR} cf - ${INSTDIRS} | \
			(cd ${TEXMFTMP} && ${TAR} xf -) && \
		${SETENV} ${MAKE_ENV} ${MKTEXLSR} ${TEXMFTMP}

post-install:
	cd ${WRKDIR} && \
		${TAR} cf - ${INSTDIRS} | \
			(cd ${PREFIX}/${TEXMFLOCAL} && ${TAR} xf -)
	${INSTALL_DATA} ${TEXMFCNF_SRC} ${TEXMFCNF_DST}
	${MKTEXLSR}
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud