blob: 2ea294f76df4cdf62222ea6f367b29bc8f33049a (
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
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: foiltex
# Date created: 07 November 2003
# Whom: Stefan Walter <sw@gegenunendlich.de>
#
# $FreeBSD$
#
PORTNAME= foiltex
PORTVERSION= 2.1.4a
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= nonfree/macros/latex/contrib/${PORTNAME}
DISTFILES= foiltex.dtx foiltex.ins
EXTRACT_ONLY= # empty
MAINTAINER= sw@gegenunendlich.de
COMMENT= A collection of LaTeX files for making foils
EXTRACT_DEPENDS=latex:${PORTSDIR}/print/teTeX
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
NO_CDROM= redistribution on a not-for-profit basis only
NO_WRKSUBDIR= yes
LATEX_CMD= ${LOCALBASE}/bin/latex
FOIL_DIR= ${PREFIX}/share/texmf/tex/latex/${PORTNAME}
DOC_FILES= ${WRKDIR}/foiltex.dtx ${WRKDIR}/foiltex.dvi
EXAMPLE_FILES= ${WRKDIR}/sampfoil.tex
FOIL_FILES= ${WRKDIR}/foil17.clo ${WRKDIR}/foil20.clo \
${WRKDIR}/foil25.clo ${WRKDIR}/foil30.clo \
${WRKDIR}/foils.cls ${WRKDIR}/foils.sty \
${WRKDIR}/foilshrt.clo ${WRKDIR}/fltfonts.def
PLIST_SUB= FOIL_DIR="${FOIL_DIR:S,^${PREFIX}/,,}"
do-build:
@${CP} ${DISTDIR}/foiltex.ins ${WRKDIR}/foiltex.ins
@${CP} ${DISTDIR}/foiltex.dtx ${WRKDIR}/foiltex.dtx
@cd ${WRKDIR} && ${LATEX_CMD} foiltex.ins && \
${LATEX_CMD} foiltex.dtx && \
${LATEX_CMD} foiltex.dtx && \
${LATEX_CMD} foiltex.dtx
do-install:
# install docs and example file?
.if !defined(NOPORTDOCS)
# install docs...
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
# ...and examples
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${EXAMPLE_FILES} ${EXAMPLESDIR}
.endif
# install data files
@${MKDIR} ${FOIL_DIR}
@${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR}
post-install:
${SETENV} LOCALBASE=${LOCALBASE} PKG_PREFIX=${PREFIX} \
${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|