1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/print/latex-pict2e/Makefile
Kirill Ponomarev b1494aee9d Add latex-pict2e 0.2.20040219,
The pict2e package extends the existing LaTeX picture
environment, using the familiar technique (cf. the graphics and
color packages) of driver files.

PR:		ports/63760
Submitted by:	hrs@FreeBSD.org
2004-03-04 16:30:40 +00:00

63 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.20040219
CATEGORIES= print
MASTER_SITES= ftp://ftp.ctan.org/tex-archive/%SUBDIR%/ \
${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib/pict2e
DISTFILES= README.pict2e p2e-drivers.dtx pict2e.dtx pict2e.ins pict2e.pdf
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= hrs@FreeBSD.org
COMMENT= A LaTeX package that extends the LaTeX picture environment
BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX \
tex:${PORTSDIR}/print/teTeX \
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX \
${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/tex
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 pict2e.pdf
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>