summaryrefslogtreecommitdiff
path: root/fonts/thaixfonts
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/thaixfonts
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/thaixfonts')
-rw-r--r--fonts/thaixfonts/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/fonts/thaixfonts/Makefile b/fonts/thaixfonts/Makefile
index fb3aa7c66f2..f133f153b24 100644
--- a/fonts/thaixfonts/Makefile
+++ b/fonts/thaixfonts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/11/03 15:33:12 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2008/03/03 20:17:12 jlam Exp $
#
DISTNAME= thaixfonts-1.1-3.noarch
@@ -13,6 +13,8 @@ COMMENT= Various X11 Thai fonts in tis-620 encoding
BUILD_DEPENDS+= rpm-[0-9]*:../../misc/rpm
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_X11BASE= yes
MAKE_ENV+= FONTDIR=${FONTDIR}
@@ -28,10 +30,8 @@ do-extract:
cd ${WRKDIR} && rpm2cpio ${_DISTDIR}/${DISTFILES} | \
cpio -i --make-directories \*
-pre-install:
- ${INSTALL_DATA_DIR} ${FONTDIR}
-
do-install:
- cd ${WRKSRC} && ${INSTALL_DATA} *.gz fonts.* ${FONTDIR}
+ ${INSTALL_DATA_DIR} ${FONTDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} *.gz fonts.* ${DESTDIR}${FONTDIR}
.include "../../mk/bsd.pkg.mk"