From 93da8714c36decac2f91167d5510d069789597e2 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 20:17:11 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- fonts/liberation-ttf/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fonts/liberation-ttf') diff --git a/fonts/liberation-ttf/Makefile b/fonts/liberation-ttf/Makefile index 1387fc22f63..ac80a529d69 100644 --- a/fonts/liberation-ttf/Makefile +++ b/fonts/liberation-ttf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/09/16 15:40:05 wiz Exp $ +# $NetBSD: Makefile,v 1.2 2008/03/03 20:17:12 jlam Exp $ # DISTNAME= liberation-fonts-ttf-3 @@ -10,6 +10,8 @@ MAINTAINER= bartosz.kuzma@gmail.com HOMEPAGE= http://www.redhat.com/promo/fonts/ COMMENT= TrueType fonts from RedHat +PKG_DESTDIR_SUPPORT= user-destdir + NO_BUILD= yes NO_CONFIGURE= yes @@ -23,9 +25,10 @@ INSTALLATION_DIRS= ${DOCDIR} ${FONTDIR} do-install: cd ${WRKSRC} && for f in *.ttf ; do \ - ${INSTALL_DATA} $$f ${FONTDIR}/$$f ; \ + ${INSTALL_DATA} $$f ${DESTDIR}${FONTDIR}/$$f ; \ done - ${INSTALL_DATA} ${WRKSRC}/COPYING ${WRKSRC}/License.txt ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/COPYING ${WRKSRC}/License.txt \ + ${DESTDIR}${DOCDIR} .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3