2000-07-04 17:47:15 +00:00
|
|
|
# New ports collection makefile for: HLaTeX(UHC encoding)
|
|
|
|
# Date created: 2 Jul 2000
|
|
|
|
# Whom: CHOI Junho <cjh@FreeBSD.org>
|
1999-09-03 16:11:59 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-06 13:25:13 +00:00
|
|
|
PORTNAME= HLaTeX
|
|
|
|
PORTVERSION= 0.991
|
|
|
|
CATEGORIES= korean print
|
|
|
|
MASTER_SITES= ftp://ftp.linguistik.uni-erlangen.de/pub/hangul/HLaTeX/packed/
|
|
|
|
DISTFILES= HLaTeX-0.991.tar.gz ${HLATEX_FONTS_BASE}
|
|
|
|
DIST_SUBDIR= hlatex
|
|
|
|
EXTRACT_ONLY= HLaTeX-0.991.tar.gz
|
1999-09-03 16:11:59 +00:00
|
|
|
|
2001-02-06 13:25:13 +00:00
|
|
|
MAINTAINER= cjh@FreeBSD.org
|
1999-09-03 16:11:59 +00:00
|
|
|
|
2000-07-04 17:47:15 +00:00
|
|
|
# it depends on teTeX(lambda)
|
2001-02-06 13:25:13 +00:00
|
|
|
BUILD_DEPENDS= texhash:${PORTSDIR}/print/teTeX
|
|
|
|
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
|
1999-09-03 16:11:59 +00:00
|
|
|
|
2001-02-06 13:25:13 +00:00
|
|
|
TEXMF= ${PREFIX}/share/texmf
|
2000-07-04 17:47:15 +00:00
|
|
|
|
|
|
|
# default fonts.
|
|
|
|
HLATEX_FONTS_BASE= uhc-myoungjo.tar.gz \
|
|
|
|
uhc-gothic.tar.gz \
|
|
|
|
uhc-taza.tar.gz
|
|
|
|
# documents.
|
|
|
|
HLATEX_DOC_BASE= VERSION0.991 changelog.ks complang.tex \
|
|
|
|
hlatex-en.html hlatex-ko.html hlatex.html \
|
|
|
|
hlguide.bib hlguide.dvi hlguide.tex \
|
|
|
|
news.098 news.099 readme.eng \
|
|
|
|
uhc/uhc.ks moonttf/moonttf.ks \
|
|
|
|
doc/compword.pdf.gz doc/compword.ps.gz \
|
|
|
|
doc/dot.js doc/font-exam.jpg doc/hlguide.html \
|
|
|
|
doc/hlguide.ps.gz doc/hlogo-bg.jpg doc/hlogo.jpg
|
|
|
|
|
|
|
|
HLATEX_SAMPLE_BASE= sample/a.tex sample/p.tex sample/f.tex sample/readme.ks
|
1999-09-03 16:11:59 +00:00
|
|
|
|
|
|
|
# psfonts.map, special.map
|
2000-07-04 17:47:15 +00:00
|
|
|
# it should be downloadable, so use uhc-down.map
|
|
|
|
# why? otherwise you need nasty gs Fontmap setup...
|
1999-09-03 16:11:59 +00:00
|
|
|
do-build:
|
|
|
|
${CAT} ${TEXMF}/dvips/config/psfonts.map \
|
2000-07-04 17:47:15 +00:00
|
|
|
${WRKDIR}/uhc/config/uhc-down.map \
|
1999-09-03 16:11:59 +00:00
|
|
|
> ${WRKDIR}/psfonts.map
|
2000-07-04 17:47:15 +00:00
|
|
|
${SED} 's@/usr/tex/share/texmf.local@${PREFIX}/share/texmf@' \
|
|
|
|
${WRKDIR}/uhc/config/Fontmap.uhc \
|
1999-09-03 16:11:59 +00:00
|
|
|
> ${WRKDIR}/Fontmap
|
|
|
|
|
|
|
|
# Installation according to readme.ks
|
|
|
|
do-install:
|
2000-07-04 17:47:15 +00:00
|
|
|
# Part 1: install psfonts
|
|
|
|
# psfonts.map
|
1999-09-03 16:11:59 +00:00
|
|
|
${MV} ${TEXMF}/dvips/config/psfonts.map \
|
2001-02-06 13:25:13 +00:00
|
|
|
${TEXMF}/dvips/config/psfonts.map.beforehlatex
|
1999-09-03 16:11:59 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/psfonts.map ${TEXMF}/dvips/config
|
2000-07-04 17:47:15 +00:00
|
|
|
|
|
|
|
# Part 2: macros, style, font descriptions
|
1999-09-03 16:11:59 +00:00
|
|
|
${MKDIR} ${TEXMF}/tex/latex/hlatex
|
2000-07-04 17:47:15 +00:00
|
|
|
${MKDIR} ${TEXMF}/omega/lambda/hlatex
|
|
|
|
${MKDIR} ${TEXMF}/omega/otp/hlatex
|
|
|
|
${MKDIR} ${TEXMF}/omega/ocp/hlatex
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/hfont.tex \
|
|
|
|
${WRKDIR}/hfont.sty \
|
|
|
|
${WRKDIR}/hfont.cfg \
|
|
|
|
${WRKDIR}/hangul.sty \
|
|
|
|
${WRKDIR}/josa.tab \
|
|
|
|
${WRKDIR}/uhc/latex/* \
|
|
|
|
${WRKDIR}/moonttf/*.fd \
|
|
|
|
${WRKDIR}/moonttf/moonttf.sty \
|
|
|
|
${TEXMF}/tex/latex/hlatex
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/uhc/lambda/*.tex \
|
|
|
|
${WRKDIR}/uhc/lambda/*.fd \
|
|
|
|
${TEXMF}/omega/lambda/hlatex
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/uhc/lambda/ksx1001.otp \
|
|
|
|
${TEXMF}/omega/otp/hlatex
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/uhc/lambda/ksx1001.ocp \
|
|
|
|
${TEXMF}/omega/ocp/hlatex
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/contrib/halpha.bst \
|
|
|
|
${TEXMF}/bibtex/bst/misc
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/contrib/hind.ist \
|
|
|
|
${WRKDIR}/contrib/hglo.ist \
|
|
|
|
${TEXMF}/makeindex
|
1999-09-03 16:11:59 +00:00
|
|
|
|
|
|
|
# Part 3: documents and samples
|
|
|
|
${MKDIR} ${TEXMF}/doc/latex/hlatex/
|
|
|
|
for file in ${HLATEX_DOC_BASE}; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKDIR}/$$file ${TEXMF}/doc/latex/hlatex; \
|
|
|
|
done
|
|
|
|
${MKDIR} ${TEXMF}/doc/latex/hlatex/sample
|
|
|
|
for file in ${HLATEX_SAMPLE_BASE}; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKDIR}/$$file ${TEXMF}/doc/latex/hlatex/sample; \
|
|
|
|
done
|
2000-07-04 17:47:15 +00:00
|
|
|
# fontmap...
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/Fontmap \
|
|
|
|
${TEXMF}/doc/latex/hlatex/sample/Fontmap.uhc
|
1999-09-03 16:11:59 +00:00
|
|
|
|
|
|
|
# Part 4: default mf fonts
|
|
|
|
cd ${TEXMF}/fonts/; \
|
|
|
|
for fonts in ${HLATEX_FONTS_BASE}; \
|
|
|
|
do \
|
|
|
|
${EXTRACT_CMD} \
|
|
|
|
${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${_DISTDIR}/$$fonts ${EXTRACT_AFTER_ARGS}; \
|
|
|
|
done
|
|
|
|
# Part 5: rehash
|
|
|
|
${PREFIX}/bin/texhash
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|