mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
053fdb6a6b
(Part 2)
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# New ports collection makefile for: zh-CJK
|
|
# Date created: 5 Sep 1999
|
|
# Whom: Jing-Tang Keith Jang (keith@FreeBSD.org)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= CJK
|
|
PORTVERSION= 4.5.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= chinese
|
|
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/cjk/\
|
|
ftp://ftp.ffii.org/pub/cjk/
|
|
DISTNAME= cjk-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A LaTeX2e macro package which enables the use of CJK scripts
|
|
|
|
BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX \
|
|
${LOCALBASE}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf \
|
|
ttf2pk:${PORTSDIR}/print/freetype:build
|
|
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
|
|
|
|
NO_PACKAGE= "Needs ttf2pk source from FreeType"
|
|
|
|
USE_GMAKE= yes
|
|
USE_FREETYPE= yes
|
|
ARPHICDIR= ${PREFIX}/share/texmf/fonts/truetype/arphic
|
|
|
|
MAN1= bg5conv.1 cef5conv.1 cefconv.1 cefsconv.1 extconv.1 \
|
|
hbf2gf.1 sjisconv.1 ttf2pk.1 ttf2tfm.1
|
|
|
|
pre-patch:
|
|
@${RM} -f ${WRKSRC}/Makefile
|
|
|
|
post-patch:
|
|
@${RM} -f ${WRKSRC}/texinput/Bg5/c00bsmi.fd.orig
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${RM} -fr ${PREFIX}/share/doc/CJK
|
|
${CP} -R ${WRKSRC}/doc ${PREFIX}/share/doc/CJK
|
|
.endif
|
|
${RM} -fr ${PREFIX}/share/examples/CJK
|
|
${CP} -R ${WRKSRC}/examples ${PREFIX}/share/examples/CJK
|
|
@${MKDIR} ${ARPHICDIR} # Install Arphic fonts
|
|
@${LN} -s ${PREFIX}/share/fonts/TrueType/bkai00mp.ttf ${ARPHICDIR}/arb5_kai.ttf
|
|
@${LN} -s ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf ${ARPHICDIR}/arb5_sung.ttf
|
|
@${LN} -s ${PREFIX}/share/fonts/TrueType/gbsn00lp.ttf ${ARPHICDIR}/argb_sung.ttf
|
|
@${LN} -s ${PREFIX}/share/fonts/TrueType/gkai00mp.ttf ${ARPHICDIR}/argb_kai.ttf
|
|
@${LN} -s ttf2pk ${PREFIX}/share/texmf/ttf2tfm
|
|
|
|
.include <bsd.port.mk>
|