aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/foiltex/Makefile
blob: a8412feebc908b593aa9cfe62899a216034b2fd6 (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
# Created by: Stefan Walter <sw@gegenunendlich.de>
# $FreeBSD$

PORTNAME=   foiltex
PORTVERSION=    2.1.4b
PORTREVISION=   5
CATEGORIES= textproc
MASTER_SITES=   TEX_CTAN/macros/latex/contrib/${PORTNAME}
DISTFILES=  foiltex.dtx foiltex.ins

MAINTAINER= ports@FreeBSD.org
COMMENT=    Collection of LaTeX files for making foils

NO_CDROM=   Redistribution on a not-for-profit basis only

USE_TEX=    latex
NO_WRKSUBDIR=   yes

LATEX_CMD=  ${LOCALBASE}/bin/latex

FOIL_DIR=   share/texmf/tex/latex/${PORTNAME}
FOIL_FILES= foil17.clo foil20.clo foil25.clo foil30.clo foils.cls \
        foils.sty foilshrt.clo fltfonts.def

OPTIONS_DEFINE= DOCS EXAMPLES

PORTDOCS=   foiltex.dtx foiltex.dvi
PORTEXAMPLES=   sampfoil.tex
PLIST_FILES=    ${FOIL_FILES:S,^,${FOIL_DIR}/,}

do-extract:
    ${MKDIR} ${WRKSRC}
    ${CP} ${DISTDIR}/foiltex.ins ${WRKSRC}/foiltex.ins
    ${CP} ${DISTDIR}/foiltex.dtx ${WRKSRC}/foiltex.dtx

do-build:
    @cd ${WRKSRC} && ${LATEX_CMD} foiltex.ins && \
        ${LATEX_CMD} foiltex.dtx && \
        ${LATEX_CMD} foiltex.dtx && \
        ${LATEX_CMD} foiltex.dtx

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${FOIL_DIR}
.for file in ${FOIL_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${FOIL_DIR}
.endfor
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for file in ${PORTEXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>