blob: 5a077afe6a3ca3c0e6e605c56320faf0462853e9 (
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
|
# New ports collection makefile for: foiltex
# Date created: 07 November 2003
# Whom: Stefan Walter <sw@gegenunendlich.de>
#
# $FreeBSD$
#
PORTNAME= foiltex
PORTVERSION= 2.1.4b
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= nonfree/macros/latex/contrib/${PORTNAME}
DISTFILES= foiltex.dtx foiltex.ins
MAINTAINER= ports@FreeBSD.org
COMMENT= A collection of LaTeX files for making foils
BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX-base
RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX-base
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-extract:
${MKDIR} ${WRKDIR}
${CP} ${DISTDIR}/foiltex.ins ${WRKDIR}/foiltex.ins
${CP} ${DISTDIR}/foiltex.dtx ${WRKDIR}/foiltex.dtx
do-build:
@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>
|