2012-10-14 23:25:22 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2012/10/14 21:25:22 minskim Exp $
|
2010-01-15 21:42:44 +01:00
|
|
|
|
|
|
|
DISTNAME= tetex
|
2012-10-14 00:38:20 +02:00
|
|
|
PKGNAME= tex-${DISTNAME}-3.0.27774
|
2012-10-14 23:25:22 +02:00
|
|
|
PKGREVISION= 1
|
2012-10-14 00:38:20 +02:00
|
|
|
TEXLIVE_REV= 27774
|
2010-01-15 21:42:44 +01:00
|
|
|
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
|
|
|
COMMENT= Supplementary files for updmap
|
|
|
|
|
2012-10-14 00:38:20 +02:00
|
|
|
CONFLICTS= texlive-tetex<=2011nb1
|
|
|
|
DEPENDS+= dialog>=1.0:../../misc/dialog
|
|
|
|
DEPENDS+= kpathsea-[0-9]*:../../print/kpathsea
|
2012-10-14 23:25:22 +02:00
|
|
|
DEPENDS+= tex-kpathsea>=2012nb1:../../print/tex-kpathsea
|
2012-10-14 00:38:20 +02:00
|
|
|
DEPENDS+= tex-texconfig-[0-9]*:../../print/tex-texconfig
|
2011-11-06 09:43:28 +01:00
|
|
|
DEPENDS+= tex-texlive.infra-[0-9]*:../../print/tex-texlive.infra
|
2010-01-15 21:42:44 +01:00
|
|
|
|
2011-11-06 09:43:28 +01:00
|
|
|
USE_TOOLS+= perl:run sh:run
|
|
|
|
|
|
|
|
FILES_SUBST+= UPDMAP_SYS=${PREFIX}/bin/updmap-sys
|
|
|
|
|
2012-10-14 00:38:20 +02:00
|
|
|
EVAL_PREFIX+= DIALOG_PREFIX=dialog
|
|
|
|
EVAL_PREFIX+= KPATHSEA_PREFIX=kpathsea
|
|
|
|
EVAL_PREFIX+= TEXCONFIG_PREFIX=tex-texconfig
|
|
|
|
|
2011-11-06 09:43:28 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= Setting paths to commands.
|
|
|
|
SUBST_STAGE.paths= pre-configure
|
2012-10-14 00:38:20 +02:00
|
|
|
SUBST_FILES.paths= bin/fmtutil bin/fmtutil-sys bin/kpsetool bin/kpsewhere \
|
|
|
|
bin/texconfig-dialog bin/texconfig-sys bin/texlinks \
|
|
|
|
bin/updmap bin/updmap-sys
|
|
|
|
SUBST_SED.paths+= -e 's,@DIALOG@,${DIALOG_PREFIX}/bin/dialog,g'
|
|
|
|
SUBST_SED.paths+= -e 's,@FMTUTIL@,${PREFIX}/bin/fmtutil,g'
|
|
|
|
SUBST_SED.paths+= -e 's,@KPSEWHICH@,${KPATHSEA_PREFIX}/bin/kpsewhich,g'
|
|
|
|
SUBST_SED.paths+= -e 's,@TEXCONFIG@,${TEXCONFIG_PREFIX}/bin/texconfig,g'
|
|
|
|
SUBST_SED.paths+= -e 's,@UPDMAP@,${PREFIX}/bin/updmap,g'
|
2011-11-06 09:43:28 +01:00
|
|
|
|
|
|
|
REPLACE_PERL= bin/updmap
|
2012-10-14 00:38:20 +02:00
|
|
|
REPLACE_SH= bin/allcm bin/allneeded bin/dvi2fax bin/dvired \
|
|
|
|
bin/fmtutil-sys bin/fmtutil bin/kpsetool bin/kpsewhere \
|
|
|
|
bin/texconfig-dialog bin/texconfig-sys bin/texlinks \
|
|
|
|
bin/updmap-sys
|
2011-11-06 09:43:28 +01:00
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= texmf
|
2010-01-15 21:42:44 +01:00
|
|
|
|
2011-11-06 09:43:28 +01:00
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/web2c
|
2012-07-22 22:24:42 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/texmf-dist/web2c/updmap.cfg \
|
2011-11-06 09:43:28 +01:00
|
|
|
${PKG_SYSCONFDIR}/web2c/updmap.cfg
|
|
|
|
|
2012-07-22 22:24:42 +02:00
|
|
|
TEX_TEXMF_DIRS+= ${PKG_SYSCONFDIR} \
|
|
|
|
${PREFIX}/share/texmf ${PREFIX}/share/texmf-dist
|
2010-01-15 21:42:44 +01:00
|
|
|
|
|
|
|
.include "../../print/texlive/package.mk"
|
2011-11-06 09:43:28 +01:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKSRC}/bin
|
2012-10-14 00:38:20 +02:00
|
|
|
.for script in fmtutil-sys.sh fmtutil.sh texconfig-dialog.sh \
|
|
|
|
texconfig-sys.sh texlinks.sh
|
|
|
|
${MV} ${WRKSRC}/texmf/scripts/tetex/${script} \
|
|
|
|
${WRKSRC}/bin/${script:S/.sh//}
|
|
|
|
.endfor
|
|
|
|
.for script in allcm.sh allneeded.sh dvi2fax.sh dvired.sh kpsetool.sh \
|
|
|
|
kpsewhere.sh updmap-sys.sh updmap.pl
|
|
|
|
${MV} ${WRKSRC}/texmf-dist/scripts/tetex/${script} \
|
|
|
|
${WRKSRC}/bin/${script:S/.pl//:S/.sh//}
|
|
|
|
.endfor
|
2011-11-06 09:43:28 +01:00
|
|
|
${RMDIR} -p ${WRKSRC}/texmf/scripts/tetex 2>/dev/null || ${TRUE}
|
|
|
|
|
2012-10-14 00:38:20 +02:00
|
|
|
post-install:
|
|
|
|
${LN} -sf allcm ${DESTDIR}${PREFIX}/bin/allec
|
|
|
|
${LN} -sf kpsetool ${DESTDIR}${PREFIX}/bin/kpsepath
|
|
|
|
${LN} -sf kpsetool ${DESTDIR}${PREFIX}/bin/kpsexpand
|
2012-10-14 23:25:22 +02:00
|
|
|
${LN} -sf fmtutil ${DESTDIR}${PREFIX}/bin/mktexfmt
|
2012-10-14 00:38:20 +02:00
|
|
|
|
2010-01-15 21:42:44 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|