summaryrefslogtreecommitdiff
path: root/fonts/intlfonts
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-11-27 13:11:17 +0000
committerobache <obache@pkgsrc.org>2008-11-27 13:11:17 +0000
commit5a16deef0c289401da35ed1b1a5b169955e06248 (patch)
tree170d5cdbcbfa6c8f9fcd6adebcfe16e2ae1da6bf /fonts/intlfonts
parenta40e66505be7eac250274312f2b918228c5bbbbc (diff)
downloadpkgsrc-5a16deef0c289401da35ed1b1a5b169955e06248.tar.gz
Add DESTDIR support.
Requested by PR 39983.
Diffstat (limited to 'fonts/intlfonts')
-rw-r--r--fonts/intlfonts/Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/fonts/intlfonts/Makefile b/fonts/intlfonts/Makefile
index 42656af20a4..5111583c075 100644
--- a/fonts/intlfonts/Makefile
+++ b/fonts/intlfonts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2008/11/27 12:44:19 obache Exp $
+# $NetBSD: Makefile,v 1.29 2008/11/27 13:11:17 obache Exp $
DISTNAME= intlfonts-1.2.1
PKGREVISION= 5
@@ -6,6 +6,8 @@ CATEGORIES= fonts x11
MASTER_SITES= ${MASTER_SITE_GNU:=intlfonts/intlfonts-1.2.1-split/}
DISTFILES= ${FONT_SETS:=${EXTRACT_SUFX}} ${MISC_FILES}
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Free X11 fonts (BDF format) for all characters that Emacs can handle
@@ -43,17 +45,20 @@ EXTRACT_SUFX= .tar.gz
EXTRACT_ONLY= ${FONT_SETS:=${EXTRACT_SUFX}}
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-fontdir=${PREFIX}/lib/X11/fonts/intlfonts \
+CONFIGURE_ARGS+=--with-fontdir=${FONTS_DIR} \
--enable-compress=gzip
+INSTALL_MAKE_FLAGS+= fontdir=${DESTDIR}${FONTS_DIR}
+
+FONTS_DIR= ${PREFIX}/lib/X11/fonts/intlfonts
-FONTS_DIRS.x11+= ${PREFIX}/lib/X11/fonts/intlfonts
-FONTS_DIRS.x11+= ${PREFIX}/lib/X11/fonts/intlfonts/bdf
-FONTS_DIRS.type1+= ${PREFIX}/lib/X11/fonts/intlfonts/Type1
-FONTS_DIRS.ttf+= ${PREFIX}/lib/X11/fonts/intlfonts/TrueType
-REQD_DIRS+= ${PREFIX}/lib/X11/fonts/intlfonts
-REQD_DIRS+= ${PREFIX}/lib/X11/fonts/intlfonts/bdf
-REQD_DIRS+= ${PREFIX}/lib/X11/fonts/intlfonts/Type1
-REQD_DIRS+= ${PREFIX}/lib/X11/fonts/intlfonts/TrueType
+FONTS_DIRS.x11+= ${FONTS_DIR}
+FONTS_DIRS.x11+= ${FONTS_DIR}/bdf
+FONTS_DIRS.type1+= ${FONTS_DIR}/Type1
+FONTS_DIRS.ttf+= ${FONTS_DIR}/TrueType
+REQD_DIRS+= ${FONTS_DIR}
+REQD_DIRS+= ${FONTS_DIR}/bdf
+REQD_DIRS+= ${FONTS_DIR}/Type1
+REQD_DIRS+= ${FONTS_DIR}/TrueType
.include "../../mk/bsd.prefs.mk"