From 418fe86afdbec9fa506bf86e5650b99bab7fe52b Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 5 Nov 2006 17:17:04 +0000 Subject: DESTDIR support. --- fonts/ms-ttf/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'fonts/ms-ttf') 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" -- cgit v1.2.3