1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/print/latex-pict2e/Makefile
2005-02-06 14:07:47 +00:00

65 lines
1.8 KiB
Makefile

# New ports collection makefile for: latex-pict2e
# Date created: 24 Jan 2004
# Whom: hrs@FreeBSD.org
#
# $FreeBSD$
PORTNAME= latex-pict2e
PORTVERSION= 0.2.20040806
PORTREVISION= 0
CATEGORIES= print
MASTER_SITES= ftp://ftp.ctan.org/tex-archive/%SUBDIR%/ \
${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib/pict2e
DISTFILES= p2e-drivers.dtx pict2e.dtx pict2e.ins ${DOC_FILES}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= hrs@FreeBSD.org
COMMENT= A LaTeX package that extends the LaTeX picture environment
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
PLIST_SUB= MKTEXLSR=${MKTEXLSR} CLASSDIR=${CLASSDIR}
TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
TEX_BIN= ${LOCALBASE}/bin/etex
YES_CMD= /usr/bin/yes
CLASSDIR= ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//}
WRKSRC= ${WRKDIR}/${PORTNAME:S/^latex-//}
CLASS_FILES= p2e-drivers.dtx p2e-dvipdfm.def p2e-dvips.def \
p2e-pctex32.def p2e-pctexps.def p2e-pdftex.def \
p2e-textures.def p2e-vtex.def \
pict2e-example.cfg pict2e.dtx pict2e.ins pict2e.sty \
pict2e.cfg
DOC_FILES= README pict2e.pdf p2e-drivers.pdf
IGNORE= is already included in the teTeX distribution
do-extract:
${MKDIR} ${WRKSRC}
cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
do-build:
cd ${WRKSRC} && ${YES_CMD} | ${TEX_BIN} pict2e.ins
${CP} ${WRKSRC}/pict2e-example.cfg ${WRKSRC}/pict2e.cfg
do-install:
${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
.endif
post-install:
@${MKTEXLSR}
.include <bsd.port.mk>