diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-03-21 14:15:31 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-03-21 14:15:31 +0000 |
commit | 3bbbf471316ba85b568c20f68307458296f3621a (patch) | |
tree | 7286ce3ffe3edafd08ca246594f3339e3b1f2624 /print | |
parent | 6b2445a62a834d14a87e8648f0907e379168b2ac (diff) | |
download | ports-3bbbf471316ba85b568c20f68307458296f3621a.tar.gz ports-3bbbf471316ba85b568c20f68307458296f3621a.zip |
Notes
Diffstat (limited to 'print')
-rw-r--r-- | print/xmltex/Makefile | 44 | ||||
-rw-r--r-- | print/xmltex/files/Makefile | 9 |
2 files changed, 29 insertions, 24 deletions
diff --git a/print/xmltex/Makefile b/print/xmltex/Makefile index 5f0cbf3b7990..35e7da554096 100644 --- a/print/xmltex/Makefile +++ b/print/xmltex/Makefile @@ -7,9 +7,10 @@ PORTNAME= xmltex PORTVERSION= 1.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print -MASTER_SITES= ${MASTER_SITE_TEX_CTAN} +MASTER_SITES= ftp://ftp.ctan.org/tex-archive/%SUBDIR%/ \ + ${MASTER_SITE_TEX_CTAN} MASTER_SITE_SUBDIR= macros/xmltex/base DISTFILES= ${DOC_FILES} ${CLASS_FILES} DIST_SUBDIR= ${PORTNAME} @@ -17,38 +18,37 @@ DIST_SUBDIR= ${PORTNAME} MAINTAINER= hrs@FreeBSD.org COMMENT= A non-validating XML parser, written in TeX -BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX +BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX \ + ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png -RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX +RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX \ + ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal .include <bsd.port.pre.mk> PLIST_SUB= MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR} WEB2CDIR=${WEB2CDIR} WRKSRC= ${WRKDIR}/base -MAKE_ENV= TEXMFCNF=${FILESDIR}:${PREFIX}/${WEB2CDIR} +MAKE_ENV= TEXMFCNF=${FILESDIR}:${LOCALBASE}/${TEXMFWEB2C} MKTEXLSR= ${LOCALBASE}/bin/mktexlsr -.if exists(${LOCALBASE}/bin/kpsewhich) -TEXMFDIR!= ${LOCALBASE}/bin/kpsewhich -expand-var '$$TEXMFMAIN' -.else -TEXMFDIR= # empty -.endif -CLASSDIR= ${TEXMFDIR:S,^${PREFIX},,:S,^/,,}/tex/xmltex -WEB2CDIR= ${TEXMFDIR:S,^${PREFIX},,:S,^/,,}/web2c +TEXMFLOCAL= share/texmf-local +TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R +TEXMFWEB2C= share/texmf/web2c -DOC_FILES= manual.html manual.tex manual.xml manual.xsl -DOC_FILES+= readme.txt +DOC_FILES= manual.html manual.tex manual.xml manual.xsl readme.txt -CLASS_FILES= testascii.cfg testascii.tex testascii.xml -CLASS_FILES+= testsec.tex testsec.xml -CLASS_FILES+= xmltex.cfg xmltex.ini xmltex.tex pdfxmltex.ini -CLASS_FILES+= iso-8859-1.xmt iso-8859-2.xmt koi8-r.xmt -CLASS_FILES+= sec.xmt tei.xmt utf-16.xmt windows-1250.xmt -CLASS_FILES+= langtest.tex langtest.xml langtest.xmt mathml2.xmt -CLASS_FILES+= russiankoi8.xml russianutf8.xml portugeselatin1.xml -CLASS_FILES+= englishutf16.xml englishutf8.xml +CLASSDIR= ${TEXMFLOCAL}/tex/xmltex +CLASS_FILES= testascii.cfg testascii.tex testascii.xml \ + testsec.tex testsec.xml \ + xmltex.cfg xmltex.ini xmltex.tex pdfxmltex.ini \ + iso-8859-1.xmt iso-8859-2.xmt koi8-r.xmt \ + sec.xmt tei.xmt utf-16.xmt windows-1250.xmt \ + langtest.tex langtest.xml langtest.xmt mathml2.xmt \ + russiankoi8.xml russianutf8.xml portugeselatin1.xml \ + englishutf16.xml englishutf8.xml +WEB2CDIR= ${TEXMFLOCAL}/web2c WEB2C_FILES= xmltex.fmt pdfxmltex.fmt do-extract: diff --git a/print/xmltex/files/Makefile b/print/xmltex/files/Makefile index 4712b2824fed..4a220d84f325 100644 --- a/print/xmltex/files/Makefile +++ b/print/xmltex/files/Makefile @@ -1,9 +1,14 @@ # $FreeBSD$ +TEX_CMD?= tex +LATEX_FMT?= latex +PDFTEX_CMD?= pdftex +PDFLATEX_FMT?= pdflatex + all: xmltex.fmt pdfxmltex.fmt xmltex.fmt: - tex -ini -progname=xmltex "&latex" xmltex.ini + ${TEX_CMD} -ini -progname=xmltex "&${LATEX_FMT}" xmltex.ini pdfxmltex.fmt: - pdftex -ini -progname=pdfxmltex "&pdflatex" pdfxmltex.ini + ${PDFTEX_CMD} -ini -progname=pdfxmltex "&${PDFLATEX_FMT}" pdfxmltex.ini |