aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-pgf/Makefile
blob: b67a2a719f25843d99e7a4f5ffec83a6e6810bf6 (plain) (blame)
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
# New ports collection makefile for:    latex-pgf
# Date created:     24 Jan 2004
# Whom:         hrs@FreeBSD.org
#
# $FreeBSD$

PORTNAME=   latex-pgf
PORTVERSION=    1.10
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pgf
DISTNAME=   ${PORTNAME:S/^latex-//}-${PORTVERSION}

MAINTAINER= hrs@FreeBSD.org
COMMENT=    A LaTeX package for TeX Portable Graphic Format

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

NO_BUILD=   YES
PLIST_SUB=  MKTEXLSR=${MKTEXLSR} \
        CLASSDIR=${CLASSDIR} \
        TEXMFDIR=${TEXMFDIR}

TEXMFDIR=   share/texmf
TEXMFDIR_LSR=   ${LOCALBASE}/${TEXMFDIR}/ls-R
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr
WRKSRC=     ${WRKDIR}/${PORTNAME:S/^latex-//}-${PORTVERSION}
CLASSDIR=   ${TEXMFDIR}/tex

do-install:
.for C in context generic latex plain
    ${MKDIR} ${PREFIX}/${CLASSDIR}/${C}/${PORTNAME:S/^latex-//}
    ${CP} -R ${WRKSRC}/${C}/pgf/* \
        ${PREFIX}/${CLASSDIR}/${C}/${PORTNAME:S/^latex-//}
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${CP} -R ${WRKSRC}/doc/generic/pgf/* ${DOCSDIR}
.endif

post-install:
    ${MKTEXLSR} ${PREFIX}/${TEXMFDIR}

.include <bsd.port.mk>