freebsd-ports/print/latex-ifluatex/Makefile
Pawel Pekala c962d2a962 - Add staging support
- Convert to new options framework
2014-07-06 16:10:50 +00:00

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= latex-ifluatex
PORTVERSION= 1.3
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib/oberdiek
DISTFILES= ifluatex.dtx ${DOC_FILES}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= LaTeX package that provides the \ifluatex switch
USE_TEX= latex
PLIST_SUB= TEXMFLOCAL=${TEXMFLOCAL} MKTEXLSR=${MKTEXLSR} \
CLASSDIR=${CLASSDIR}
TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
TEX_BIN= ${LOCALBASE}/bin/etex
CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//}
WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//}
CLASS_FILES= ifluatex.dtx ifluatex.sty
DOC_FILES= ifluatex.pdf
OPTIONS_DEFINE= DOCS
do-extract:
${MKDIR} ${WRKSRC}
cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
do-build:
cd ${WRKSRC} && ${TEX_BIN} ifluatex.dtx
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} \
${STAGEDIR}${PREFIX}/${CLASSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>