diff options
author | joerg <joerg@pkgsrc.org> | 2006-11-05 17:17:04 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-11-05 17:17:04 +0000 |
commit | 418fe86afdbec9fa506bf86e5650b99bab7fe52b (patch) | |
tree | 0b2c949e2e8f3922c9e8f781fdd6224546b5b3b7 /fonts/ms-ttf | |
parent | e15e1a02c6e01276414304ead8f35fd1e9d45768 (diff) | |
download | pkgsrc-418fe86afdbec9fa506bf86e5650b99bab7fe52b.tar.gz |
DESTDIR support.
Diffstat (limited to 'fonts/ms-ttf')
-rw-r--r-- | fonts/ms-ttf/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fonts/ms-ttf/Makefile b/fonts/ms-ttf/Makefile index 34336ad1a74..dba3c4bcfff 100644 --- a/fonts/ms-ttf/Makefile +++ b/fonts/ms-ttf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2006/03/04 21:29:39 jlam Exp $ +# $NetBSD: Makefile,v 1.15 2006/11/05 17:17:04 joerg Exp $ DISTNAME= # empty PKGNAME= ms-ttf-20020306 @@ -13,6 +13,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://corefonts.sourceforge.net/ COMMENT= TrueType fonts from Microsoft +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_DEPENDS+= cabextract-[0-9]*:../../archivers/cabextract LICENSE= ms-ttf-license @@ -34,6 +36,8 @@ FONTDIR= ${PREFIX}/lib/X11/fonts/TTF DOCDIR= ${PREFIX}/share/doc/ms-ttf FONTS_DIRS.ttf= ${FONTDIR} +INSTALLATION_DIRS= ${FONTDIR} ${DOCDIR} + post-extract: ${_PKG_SILENT}${_PKG_DEBUG} \ for f in ${WRKSRC}/*.TTF ; do \ @@ -41,11 +45,9 @@ post-extract: done do-install: - ${INSTALL_DATA_DIR} ${FONTDIR} - ${INSTALL_DATA_DIR} ${DOCDIR} cd ${WRKSRC} && for f in *.ttf ; do \ - ${INSTALL_DATA} $$f ${FONTDIR}/$$f; \ + ${INSTALL_DATA} $$f ${DESTDIR}${FONTDIR}/$$f; \ done - ${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DOCDIR} + ${INSTALL_DATA} ${.CURDIR}/../../licenses/${LICENSE} ${DESTDIR}${DOCDIR} .include "../../mk/bsd.pkg.mk" |