Wed Jan 27 16:15:19 2010 UTC ()
DESTDIR support


(joerg)
diff -r1.9 -r1.10 pkgsrc/print/tex-foiltex/Makefile

cvs diff -r1.9 -r1.10 pkgsrc/print/tex-foiltex/Makefile (expand / switch to unified diff)

--- pkgsrc/print/tex-foiltex/Makefile 2009/07/22 09:01:44 1.9
+++ pkgsrc/print/tex-foiltex/Makefile 2010/01/27 16:15:19 1.10
@@ -1,42 +1,45 @@ @@ -1,42 +1,45 @@
1# $NetBSD: Makefile,v 1.9 2009/07/22 09:01:44 wiz Exp $ 1# $NetBSD: Makefile,v 1.10 2010/01/27 16:15:19 joerg Exp $
2 2
3DISTNAME= # empty 3DISTNAME= # empty
4PKGNAME= tex-foiltex-2.1.4a 4PKGNAME= tex-foiltex-2.1.4a
5PKGREVISION= 3 5PKGREVISION= 3
6CATEGORIES= print 6CATEGORIES= print
7MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=macros/latex/contrib/supported/foiltex/} 7MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=macros/latex/contrib/supported/foiltex/}
8DISTFILES= foiltex.dtx foiltex.ins 8DISTFILES= foiltex.dtx foiltex.ins
9 9
10MAINTAINER= minskim@NetBSD.org 10MAINTAINER= minskim@NetBSD.org
11HOMEPAGE= http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/foiltex.html 11HOMEPAGE= http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/foiltex.html
12COMMENT= LaTeX2e class for overhead transparencies 12COMMENT= LaTeX2e class for overhead transparencies
13LICENSE= foiltex-license 13LICENSE= foiltex-license
14 14
 15PKG_DESTDIR_SUPPORT= user-destdir
 16
15RESTRICTED= May not be redistributed for profit 17RESTRICTED= May not be redistributed for profit
16NO_BIN_ON_CDROM=${RESTRICTED} 18NO_BIN_ON_CDROM=${RESTRICTED}
17NO_SRC_ON_CDROM=${RESTRICTED} 19NO_SRC_ON_CDROM=${RESTRICTED}
18 20
19NO_CONFIGURE= YES 21NO_CONFIGURE= YES
20 22
21EVAL_PREFIX+= LATEX_PREFIX=latex 23EVAL_PREFIX+= LATEX_PREFIX=latex
22LATEX_PREFIX_DEFAULT=${LOCALBASE} 24LATEX_PREFIX_DEFAULT=${LOCALBASE}
23 25
24STYDIR= ${PKG_LOCALTEXMFPREFIX}/tex/latex/foiltex 26STYDIR= ${PKG_LOCALTEXMFPREFIX}/tex/latex/foiltex
25 27
26.include "../../print/teTeX/module.mk" 28.include "../../print/teTeX/module.mk"
27 29
28do-extract: 30do-extract:
29 for f in ${DISTFILES}; do \ 31 for f in ${DISTFILES}; do \
30 ${CP} ${DISTDIR}/$$f ${WRKSRC}/$$f; \ 32 ${CP} ${DISTDIR}/$$f ${WRKSRC}/$$f; \
31 done 33 done
32 34
33do-build: 35do-build:
34 cd ${WRKSRC} && ${LATEX_PREFIX}/bin/latex foiltex.ins 36 cd ${WRKSRC} && ${LATEX_PREFIX}/bin/latex foiltex.ins
35 37
 38INSTALLATION_DIRS+= ${STYDIR}
 39
36do-install: 40do-install:
37 ${INSTALL_DATA_DIR} ${STYDIR} 
38 cd ${WRKSRC} && for f in foils.* foil*.clo fltfonts.def; do \ 41 cd ${WRKSRC} && for f in foils.* foil*.clo fltfonts.def; do \
39 ${INSTALL_DATA} $$f ${STYDIR}/$$f; \ 42 ${INSTALL_DATA} $$f ${DESTDIR}${STYDIR}/$$f; \
40 done 43 done
41 44
42.include "../../mk/bsd.pkg.mk" 45.include "../../mk/bsd.pkg.mk"