1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/print/latex-prettyref/Makefile
Hiroki Sato 4e09def2d4 Rectify USE_TEX to support both of teTeX and TeXLive.
TEX_DEFAULT:
	A knob to choose teTeX or TeXLive.  One can specify in /etc/make.conf.

USE_TEX:
	A knob for port developers.  Valid keywords are listed in
	bsd.tex.mk.
2013-05-11 17:58:55 +00:00

49 lines
1.2 KiB
Makefile

# New ports collection makefile for: print/latex-prettyref
# Date created: 19 November 2007
# Whom: Koji Yokota (yokota@res.otaru-uc.ac.jp)
#
# $FreeBSD$
#
PORTNAME= latex-prettyref
PORTVERSION= 3.0
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib
DISTNAME= ${PORTNAME:S/^latex-//}
DIST_SUBDIR= latex
MAINTAINER= yokota@res.otaru-uc.ac.jp
COMMENT= Improved reference formatting for LaTeX2e
USE_ZIP= yes
USE_TEX= latex
PLIST_SUB= MKTEXLSR=${MKTEXLSR}
TEXMFDIR?= share/texmf
STYDIR?= tex/latex/${PORTNAME:S/^latex-//}
DOCSDIR?= doc/latex/${PORTNAME:S/^latex-//}
INSFILE= ${PORTNAME:S/^latex-//}.ins
STYFILE= ${PORTNAME:S/^latex-//}.sty
PDFFILE= ${PORTNAME:S/^latex-//}.pdf
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
do-build:
@( cd ${WRKSRC} && tex ${INSFILE} )
do-install:
@( cd ${WRKSRC} && \
${MKDIR} ${PREFIX}/${TEXMFDIR}/${STYDIR} && \
${COPYTREE_SHARE} "${STYFILE}" ${PREFIX}/${TEXMFDIR}/${STYDIR} )
.if !defined(NOPORTDOCS)
@( cd ${WRKSRC} && \
${MKDIR} ${PREFIX}/${TEXMFDIR}/${DOCSDIR} && \
${COPYTREE_SHARE} "${PDFFILE}" ${PREFIX}/${TEXMFDIR}/${DOCSDIR} )
.endif
post-install:
${MKTEXLSR} ${PREFIX}/${TEXMFDIR}
.include <bsd.port.mk>