pkgsrc-wip/cjk-latex-japanese/Makefile
2003-09-11 04:36:22 +00:00

55 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2003/09/11 04:36:22 blef Exp $
DISTNAME= cjk-latex-japanese-20020721
WRKSRC= ${WRKDIR}
CATEGORIES= print
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://cjk.ffii.org/
COMMENT= Japanese support for CJK-LaTeX
#DEPENDS+= cjk-latex>=4.5.1:../../print/cjk-latex
DEPENDS+= cjk-latex>=4.5.1:../../wip/cjk-latex
DEPENDS+= kochi-ttf-[0-9]*:../../fonts/kochi-ttf
FONT_FILES= gothic mincho
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
NO_BUILD= yes
TEXMFMAIN= ${PREFIX}/share/texmf
TFMDIR= ${TEXMFMAIN}/fonts/tfm
TTFDIR= ${TEXMFMAIN}/fonts/truetype
X11TTFDIR= ${X11PREFIX}/lib/X11/fonts/TrueType
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
FILES_SUBST= TEXMFMAIN=${TEXMFMAIN}
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
pre-install:
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
do-install:
# Install fonts
${INSTALL_DATA_DIR} ${TTFDIR}/kochi
.for f in ${FONT_FILES}
${LN} -fs ${X11TTFDIR}/kochi-${f}.ttf ${TTFDIR}/kochi/${f}.ttf
${INSTALL_DATA_DIR} ${TFMDIR}/kochi/${f}
@(cd ${TFMDIR}/kochi/${f}; \
ttf2tfm ${TTFDIR}/kochi/${f} -P 3 -E 1 ${f}@UJIS@)
.endfor
post-install:
# Edit special.map
# Update ls-R
@${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"