de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: ifxetex
|
|
# Date created: 2008-09-24
|
|
# Whom: Martin Dieringer <martin.dieringer@gmx.de>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ifxetex
|
|
PORTVERSION= 20090124
|
|
PORTREVISION= 3
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
|
MASTER_SITE_SUBDIR= macros/generic/
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= martin.dieringer@gmx.de
|
|
COMMENT= The file ifxetex.sty tests whether XeTeX is being used
|
|
|
|
BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX-base
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
USE_ZIP= yes
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
TEXMFDIR= share/texmf-local
|
|
MKTEXLSR= ${LOCALBASE}/bin/mktexlsr
|
|
CLASSDIR= ${TEXMFDIR}/tex/latex/${PORTNAME}
|
|
CLASS_FILES= ${PORTNAME}.sty
|
|
|
|
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>
|