summaryrefslogtreecommitdiff
path: root/fonts/freefont-ttf
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 20:17:11 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 20:17:11 +0000
commitd6ccf8cf664251c9f27f0424467fbf2bd95a5cc6 (patch)
treef10a20ae369c1bb45808b6fa246faf206d89f420 /fonts/freefont-ttf
parent68013bbef21c9e93e6c34c2bbde20ba8a3d086e5 (diff)
downloadpkgsrc-d6ccf8cf664251c9f27f0424467fbf2bd95a5cc6.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'fonts/freefont-ttf')
-rw-r--r--fonts/freefont-ttf/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/fonts/freefont-ttf/Makefile b/fonts/freefont-ttf/Makefile
index 6b468923e3a..b5ebed52d0a 100644
--- a/fonts/freefont-ttf/Makefile
+++ b/fonts/freefont-ttf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2005/12/05 20:50:14 rillig Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/03 20:17:12 jlam Exp $
#
DISTNAME= freefont-ttf
@@ -12,6 +12,8 @@ COMMENT= Free UCS Outline Fonts: FreeMono, FreeSans, and FreeSerif
DIST_SUBDIR= ${PKGNAME_NOREV}
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
NO_CONFIGURE= yes
NO_BUILD= yes
@@ -19,10 +21,13 @@ USE_LANGUAGES= # empty
INSTALLATION_DIRS= share/fonts/freefont share/doc/freefont
do-install:
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/freefont/
- ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/freefont/
- ${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/freefont/
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${DESTDIR}${PREFIX}/share/doc/freefont/
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS \
+ ${DESTDIR}${PREFIX}/share/doc/freefont/
+ ${INSTALL_DATA} ${WRKSRC}/CREDITS \
+ ${DESTDIR}${PREFIX}/share/doc/freefont/
cd ${WRKSRC}/sfd && \
- ${PAX} -rw Free*.ttf ${PREFIX}/share/fonts/freefont/
+ ${PAX} -rw Free*.ttf ${DESTDIR}${PREFIX}/share/fonts/freefont/
.include "../../mk/bsd.pkg.mk"