blob: 586d2987ee0b42e11c5e9516834fbbf5ed15a631 (
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
|
# New ports collection makefile for: latex-ucs
# Date created: 23 May 2004
# Whom: thierry@FreeBSD.org
#
# $FreeBSD$
PORTNAME= latex-ucs
PORTVERSION= 20040307
CATEGORIES= print
MASTER_SITES= http://www.unruh.de/DniQ/latex/unicode/
DISTNAME= unicode
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A LaTeX package for using UTF-8 as input encoding
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
NO_BUILD= yes
USE_PERL5_RUN= yes
PLIST_SUB= MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR}
.if !defined(WITHOUT_CJK)
PLIST_SUB+= CJK=""
.else
PLIST_SUB+= CJK="@comment "
.endif
TEXMF?= share/texmf
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
CLASSDIR= ${TEXMF}/tex/latex/${PORTNAME:S/^latex-//}
WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//}
CLASS_FILES= ucs.sty utf8.def ucsencs.def
CJK_FILES= c00enc.def c10enc.def c40enc.def c42enc.def c61enc.def
PLSCRIPTS= discovermacro.pl latexout.pl makeunidef.pl
PORTDOCS= FAQ INSTALL LICENSE README VERSION
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "If you don't need CJK characters, please define WITHOUT_CJK."
@${ECHO_MSG} ""
do-install:
${INSTALL_SCRIPT} ${PLSCRIPTS:S@^@${WRKSRC}/@} ${PREFIX}/bin
${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(WITHOUT_CJK)
${INSTALL_DATA} ${CJK_FILES:S@^@${WRKSRC}/contrib/@} ${PREFIX}/${CLASSDIR}
.endif
${CP} -R ${WRKSRC}/data ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
post-install:
${MKTEXLSR}
.include <bsd.port.mk>
|