1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/print/bophook/Makefile
2014-07-24 16:33:10 +00:00

43 lines
986 B
Makefile

# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
# $FreeBSD$
PORTNAME= bophook
PORTVERSION= 0.02
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= macros/latex/contrib/
DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Style file providing a beginning-of-page hook for LaTeX
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= zip
USE_TEX= latex
PLIST= ${WRKDIR}/pkg-plist
TEXMFDIR= share/texmf-local
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME}
CLASS_FILES= ${PORTNAME}.sty
NO_STAGE= yes
do-build:
cd ${WRKSRC} && latex ${PORTNAME}.ins
pre-install:
${ECHO_CMD} "${CLASSDIR}/${CLASS_FILES}" > ${PLIST}
${ECHO_CMD} "@dirrm ${CLASSDIR}" >> ${PLIST}
${ECHO_CMD} "@exec ${MKTEXLSR}" >> ${PLIST}
${ECHO_CMD} "@unexec ${MKTEXLSR}" >> ${PLIST}
do-install:
@${MKDIR} ${PREFIX}/${CLASSDIR}
${INSTALL_DATA} ${CLASS_FILES:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}
post-install:
${MKTEXLSR}
.include <bsd.port.mk>