aboutsummaryrefslogtreecommitdiffstats
path: root/print/latex-beamer/Makefile
blob: b3b2ffb2ebecd2cc62df64e57894bbf19b233b05 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# New ports collection makefile for:    latex-beamer
# Date created:     24 Jan 2004
# Whom:         hrs@FreeBSD.org
#
# $FreeBSD$

PORTNAME=   latex-beamer
PORTVERSION=    2.10
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= hrs@FreeBSD.org
COMMENT=    A LaTeX class to create a beamer presentation

BUILD_DEPENDS=  mktexlsr:${PORTSDIR}/print/teTeX \
        ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX \
        ${LOCALBASE}/${TEXMFLOCAL}/tex/latex/xcolor/xcolor.sty:${PORTSDIR}/print/latex-xcolor \
        ${LOCALBASE}/${TEXMFLOCAL}/tex/latex/pgf/pgf.sty:${PORTSDIR}/print/latex-pgf \
        ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal

NO_BUILD=   YES
PLIST=      ${WRKDIR}/pkg-plist

TEXMFLOCAL= share/texmf-local
TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr
CLASSDIR=   ${TEXMFLOCAL}/tex/latex/${PORTNAME:S/^latex-//}
WRKSRC=     ${WRKDIR}/${PORTNAME:S/^latex-//}

CLASS_SUBDIRS=  art base emulation/examples emulation themes emacs examples \
        lyx/examples lyx/layouts lyx/templates lyx
CLASS_FILES=    art/beamericonarticle.eps art/beamericonarticle.pdf \
        art/beamericonarticle.tex art/beamericonarticle.20.eps \
        art/beamericonarticle.20.pdf art/beamericonbook.eps \
        art/beamericonbook.pdf art/beamericonbook.tex \
        art/beamericonbook.20.pdf art/beamericonbook.20.eps \
        base/beamer.cls base/beamerbasearticle.sty \
        base/beamerbaseboxes.sty base/beamerbasecolor.sty \
        base/beamerbasecompatibility.sty base/beamerbasedecode.sty \
        base/beamerbasefont.sty base/beamerbaseframe.sty \
        base/beamerbaseframecomponents.sty base/beamerbaselocalstructure.sty \
        base/beamerbasemodes.sty base/beamerbasemisc.sty \
        base/beamerbasenotes.sty base/beamerbasenavigation.sty \
        base/beamerbaseoverlay.sty base/beamerbaseoptions.sty \
        base/beamerbasesection.sty base/beamerbasetemplates.sty \
        base/beamerbasetheorems.sty base/beamerbasetitle.sty \
        base/beamerbasetoc.sty \
        emulation/beamerprosper.sty emulation/beamerseminar.sty \
        emulation/examples/beamerexample-haprosper.pdf \
        emulation/examples/beamerexample-haprosper.tex \
        emulation/examples/beamerexample-seminar.pdf \
        emulation/examples/beamerexample-seminar.tex \
        themes/beamerthemebars.sty themes/beamerthemeboxes.sty \
        themes/beamerthemeclassic.sty themes/beamerthemelined.sty \
        themes/beamerthemeplain.sty themes/beamerthemeshadow.sty \
        themes/beamerthemesidebardark.sty \
        themes/beamerthemesidebardarktab.sty \
        themes/beamerthemesidebar.sty themes/beamerthemesidebartab.sty \
        themes/beamerthemesplit.sty themes/beamerthemetreebars.sty \
        themes/beamerthemetree.sty emacs/beamer.el \
        examples/beamerexample1.pdf examples/beamerexample1.tex \
        examples/beamerexample2.article.pdf \
        examples/beamerexample2.article.tex \
        examples/beamerexample2.beamer.pdf \
        examples/beamerexample2.beamer.tex examples/beamerexample2.tex \
        examples/beamerexample3.pdf examples/beamerexample3.tex \
        examples/beamerexample4.pdf examples/beamerexample4.tex \
        examples/beamerexample5.pdf examples/beamerexample5.tex \
        examples/beamerexample6.pdf examples/beamerexample6.tex \
        examples/beamer-computer.jpg examples/beamer-computerred.jpg \
        examples/beamer-computer-mask.jpg examples/beamer-g4.jpg \
        examples/beamer-g4red.jpg examples/beamer-g4-mask.jpg \
        examples/beamer-ram.jpg examples/beamer-ram-mask.jpg \
        examples/beamer-tu-logo.jpg examples/beamer-ur-logo.jpg \
        examples/beamer-tu-logo-mask.jpg examples/beamer-ur-logo-mask.jpg \
        lyx/examples/beamerlyxexample1.lyx \
        lyx/examples/beamerlyxexample1.pdf \
        lyx/examples/beamer-icsi-logo.pdf \
        lyx/examples/beamer-knight1.png \
        lyx/examples/beamer-knight1-mask.png \
        lyx/examples/beamer-knight2.png \
        lyx/examples/beamer-knight2-mask.png \
        lyx/examples/beamer-knight3.png \
        lyx/examples/beamer-knight3-mask.png \
        lyx/examples/beamer-knight4.png \
        lyx/examples/beamer-knight4-mask.png \
        lyx/layouts/beamer.layout \
        lyx/templates/beamerpresentation.lyx

DOC_FILES+= AUTHORS ChangeLog FILES INSTALL README TODO \
        doc/beameruserguide.pdf doc/beameruserguide.tex \
        doc/themebars.pdf doc/themebars2.pdf \
        doc/themeboxes.pdf doc/themeboxes2.pdf \
        doc/themeclassic.pdf doc/themeclassic2.pdf \
        doc/themelined.pdf doc/themelined2.pdf \
        doc/themeplain.pdf doc/themeplain2.pdf \
        doc/themeshadow.pdf doc/themeshadow2.pdf \
        doc/themesidebar.pdf doc/themesidebar2.pdf \
        doc/themesidebardark.pdf doc/themesidebardark2.pdf \
        doc/themesidebardarktab.pdf doc/themesidebardarktab2.pdf \
        doc/themesidebartab.pdf doc/themesidebartab2.pdf \
        doc/themesplit.pdf doc/themesplit2.pdf \
        doc/themesplitcondensed.pdf doc/themesplitcondensed2.pdf \
        doc/themetree.pdf doc/themetree2.pdf \
        doc/themetreebars.pdf doc/themetreebars2.pdf

pre-install:
    ${RM} -f ${PLIST}
    ${TOUCH} ${PLIST}
.if !defined(NOPORTDOCS)
    (for file in ${DOC_FILES}; do \
        ${ECHO_CMD} "${DOCSDIR:S,^${PREFIX}/,,}/$${file}"; \
        done; \
        ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}/doc"; \
        ${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}";) >> ${PLIST}
.endif
    (for file in ${CLASS_FILES}; do \
        ${ECHO_CMD} "${CLASSDIR}/$${file}"; \
        done; \
        for D in ${CLASS_SUBDIRS:S,^,/,g} "" ; do \
            ${ECHO_CMD} "@dirrm ${CLASSDIR}$${D}"; \
        done; \
        ${ECHO_CMD} '@exec ${MKTEXLSR}'; \
        ${ECHO_CMD} '@unexec ${MKTEXLSR}' ) >> ${PLIST}

do-install:
    ${MKDIR} ${PREFIX}/${CLASSDIR}
.for D in ${CLASS_SUBDIRS}
    ${MKDIR} ${PREFIX}/${CLASSDIR}/${D}
.if ${CLASS_FILES:M${D}/*:N${D}/*/*} != ""
    ${INSTALL_DATA} ${CLASS_FILES:M${D}/*:N${D}/*/*:S@^@${WRKSRC}/@} ${PREFIX}/${CLASSDIR}/${D}
.endif
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${DOC_FILES:Ndoc/*:S@^@${WRKSRC}/@} ${DOCSDIR}
    ${MKDIR} ${DOCSDIR}/doc
    ${INSTALL_DATA} ${DOC_FILES:Mdoc/*:S@^@${WRKSRC}/@} ${DOCSDIR}/doc
.endif

post-install:
    ${MKTEXLSR}

.include <bsd.port.mk>