summaryrefslogtreecommitdiffstats
path: root/print/texpower/Makefile
blob: b77ed18a192b1631b654244d379ae492e69da75e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ex:ts=8
# Ports collection makefile for:	texpower
# Date created:			Dec 30, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	texpower
PORTVERSION=	0.2
PORTREVISION=	5
CATEGORIES=	print
MASTER_SITES=	SF
PKGNAMEPREFIX=	latex-
DISTNAME=	${PORTNAME}-0-2

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Creating dynamic online presentations with LaTeX

BUILD_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX-base

PLIST_SUB=	TEXMFLOCAL=${TEXMFLOCAL} \
		MKTEXLSR=${MKTEXLSR}

TEXMFLOCAL=	share/texmf-local
MKTEXLSR=	${LOCALBASE}/bin/mktexlsr
DOCFILES=	00readme.txt 01install.txt \
		manual.pdf powersem.pdf texpower.pdf

do-build:
	@(cd ${BUILD_WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
	@(cd ${BUILD_WRKSRC}/tpslifonts && \
		${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})

do-install:
	${MKDIR} ${PREFIX}/${TEXMFLOCAL}/tex/latex/${PORTNAME}
	cd ${WRKSRC} && ${INSTALL_DATA} *.sty *.cls *.cfg \
		${PREFIX}/${TEXMFLOCAL}/tex/latex/${PORTNAME}
	${MKDIR} ${PREFIX}/${TEXMFLOCAL}/tex/latex/${PORTNAME}/tpslifonts
	cd ${WRKSRC}/tpslifonts && ${INSTALL_DATA} *.sty  \
		${PREFIX}/${TEXMFLOCAL}/tex/latex/${PORTNAME}/tpslifonts
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${DOCSDIR}
.endif

post-install:
	${MKTEXLSR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud