2008-01-26 23:30:50 +01:00
|
|
|
# New ports collection makefile for: latex-biblatex
|
|
|
|
# Date created: 19 Jan 2008
|
|
|
|
# Whom: vj562001@yahoo.de
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= biblatex
|
2010-10-18 00:18:45 +02:00
|
|
|
PORTVERSION= 0.9e
|
2008-01-26 23:30:50 +01:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
|
|
|
MASTER_SITE_SUBDIR= macros/latex/exptl
|
|
|
|
PKGNAMEPREFIX= latex-
|
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
|
2010-03-11 01:25:29 +01:00
|
|
|
MAINTAINER= idolum@users.sourceforge.net
|
2008-01-26 23:30:50 +01:00
|
|
|
COMMENT= A reimplementation of the LaTeX biliographic facilities
|
|
|
|
|
|
|
|
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX-base \
|
|
|
|
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
|
|
|
|
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base \
|
|
|
|
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
|
|
|
|
${LOCALBASE}/${TEXMFLOCAL}/tex/latex/etoolbox/etoolbox.sty:${PORTSDIR}/print/latex-etoolbox
|
|
|
|
|
|
|
|
USE_ZIP= YES
|
|
|
|
NO_BUILD= YES
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
|
|
|
|
TEXMFLOCAL= share/texmf-local
|
|
|
|
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
|
|
|
|
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
|
|
|
|
TEX_BIN= ${LOCALBASE}/bin/latex
|
|
|
|
|
|
|
|
CLASSNAME= ${PORTNAME}
|
|
|
|
CLASSDIR= ${TEXMFLOCAL}/tex/latex/${CLASSNAME}
|
2010-03-11 01:25:29 +01:00
|
|
|
BSTDIR= ${TEXMFLOCAL}/bibtex/bst/biblatex
|
|
|
|
CSFDIR= ${TEXMFLOCAL}/bibtex/csf/biblatex
|
2008-01-26 23:30:50 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
2008-12-04 20:59:35 +01:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
2008-01-26 23:30:50 +01:00
|
|
|
|
2010-04-20 13:47:50 +02:00
|
|
|
CLASS_FILES= biblatex.cfg biblatex.def biblatex.sty blx-compat.def blx-natbib.def
|
2010-10-18 00:18:45 +02:00
|
|
|
DOC_FILES= README RELEASE doc/biblatex.pdf doc/biblatex.tex
|
2008-01-26 23:30:50 +01:00
|
|
|
BST_FILES= biblatex.bst
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${CLASSNAME}
|
|
|
|
|
2010-03-11 01:25:29 +01:00
|
|
|
OPTIONS= BIBTEXT8_CSF "Install BibTeX8 sort definition files" OFF
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2008-01-26 23:30:50 +01:00
|
|
|
pre-install:
|
|
|
|
(for F in ${CLASS_FILES}; do \
|
|
|
|
${ECHO_CMD} "${CLASSDIR}/$${F}"; \
|
|
|
|
done;) > ${PLIST}
|
|
|
|
(for F in `${LS} -F ${WRKSRC}/latex | ${GREP} "/"`; do \
|
|
|
|
for G in `${LS} ${WRKSRC}/latex/$${F}`; do \
|
|
|
|
${ECHO_CMD} "${CLASSDIR}/$${F}$${G}"; \
|
|
|
|
done; \
|
|
|
|
${ECHO_CMD} "@dirrm ${CLASSDIR}/$${F}"; \
|
|
|
|
done;) >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm ${CLASSDIR}" >> ${PLIST}
|
|
|
|
(for F in ${BST_FILES}; do \
|
|
|
|
${ECHO_CMD} "${BSTDIR}/$${F}"; \
|
|
|
|
done;) >> ${PLIST}
|
2010-03-11 01:25:29 +01:00
|
|
|
${ECHO_CMD} "@dirrm ${BSTDIR}" >> ${PLIST}
|
|
|
|
.if defined(WITH_BIBTEXT8_CSF)
|
|
|
|
(for F in `${LS} -F ${WRKSRC}/bibtex/csf`; do \
|
|
|
|
${ECHO_CMD} "${CSFDIR}/$${F}"; \
|
|
|
|
done;) >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm ${CSFDIR}" >> ${PLIST}
|
|
|
|
.endif
|
2008-01-26 23:30:50 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
(for F in ${DOC_FILES:S,^doc/,,}; do \
|
|
|
|
${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${F}"; \
|
|
|
|
done;) >> ${PLIST}
|
2010-10-18 00:18:45 +02:00
|
|
|
${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" >> ${PLIST}
|
2008-12-04 20:59:35 +01:00
|
|
|
(for F in `${LS} ${WRKSRC}/doc/examples`; do \
|
|
|
|
${ECHO_CMD} "${EXAMPLESDIR:S,^${PREFIX}/,,}/$${F}"; \
|
|
|
|
done;) >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,}" >> ${PLIST}
|
2008-01-26 23:30:50 +01:00
|
|
|
.endif
|
|
|
|
${ECHO_CMD} "@exec ${MKTEXLSR}" >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@unexec ${MKTEXLSR}" >> ${PLIST}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/${CLASSDIR}
|
|
|
|
(cd ${WRKSRC}/latex/ && ${COPYTREE_SHARE} \* ${PREFIX}/${CLASSDIR})
|
2010-03-11 01:25:29 +01:00
|
|
|
${MKDIR} ${PREFIX}/${BSTDIR}
|
|
|
|
${INSTALL_DATA} ${BST_FILES:S@^@${WRKSRC}/bibtex/bst/@} ${PREFIX}/${BSTDIR}
|
|
|
|
.if defined(WITH_BIBTEXT8_CSF)
|
|
|
|
${MKDIR} ${PREFIX}/${CSFDIR}
|
|
|
|
(cd ${WRKSRC}/bibtex/csf && ${COPYTREE_SHARE} \* ${PREFIX}/${CSFDIR})
|
|
|
|
.endif
|
2008-01-26 23:30:50 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-12-04 20:59:35 +01:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2008-01-26 23:30:50 +01:00
|
|
|
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
|
2008-12-04 20:59:35 +01:00
|
|
|
(cd ${WRKSRC}/doc/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
2008-01-26 23:30:50 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKTEXLSR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|