summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorseb <seb>2003-02-16 21:34:04 +0000
committerseb <seb>2003-02-16 21:34:04 +0000
commite70c8bfb8f79d81babcd6dc0aed1996e16ae1916 (patch)
tree735964b8b120970fe2c3c9cb7ad2f063303e1669 /mk
parentf80cd6fbafafde9c468c08faa0f4dc6c3183dbba (diff)
downloadpkgsrc-e70c8bfb8f79d81babcd6dc0aed1996e16ae1916.tar.gz
Use EVAL_PREFIX on ttmkfdir and type1inst so LOCALBASE is not harcoded.
Okay'ed by jmmv.
Diffstat (limited to 'mk')
-rw-r--r--mk/fonts.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/fonts.mk b/mk/fonts.mk
index a74d6d6411d..51d9692b0b1 100644
--- a/mk/fonts.mk
+++ b/mk/fonts.mk
@@ -1,4 +1,4 @@
-# $NetBSD: fonts.mk,v 1.1 2003/02/16 12:14:31 jmmv Exp $
+# $NetBSD: fonts.mk,v 1.2 2003/02/16 21:34:04 seb Exp $
#
# This Makefile fragment is intended to be included by packages that install
# fonts (most of them in the fonts category). It takes care of updating the
@@ -29,16 +29,20 @@ INSTALL_EXTRA_TMPL+= ../../mk/install/fonts
DEINSTALL_EXTRA_TMPL+= ../../mk/install/fonts
.if !empty(FONTS_TTF_DIRS)
+EVAL_PREFIX+= TTMKFDIR_PREFIX=ttmkfdir
+TTMKFDIR_PREFIX_DEFAULT= ${LOCALBASE}
FILES_SUBST+= FONTS_TTF="YES"
FILES_SUBST+= FONTS_TTF_DIRS="${FONTS_TTF_DIRS}"
-FILES_SUBST+= TTMKFDIR="${LOCALBASE}/bin/ttmkfdir"
+FILES_SUBST+= TTMKFDIR="${TTMKFDIR_PREFIX}/bin/ttmkfdir"
DEPENDS+= ttmkfdir>=0:../../fonts/ttmkfdir
.endif
.if !empty(FONTS_TYPE1_DIRS)
+EVAL_PREFIX+= TYPE1INST_PREFIX=type1inst
+TYPE1INST_PREFIX_DEFAULT= ${LOCALBASE}
FILES_SUBST+= FONTS_TYPE1="YES"
FILES_SUBST+= FONTS_TYPE1_DIRS="${FONTS_TYPE1_DIRS}"
-FILES_SUBST+= TYPE1INST="${LOCALBASE}/bin/type1inst"
+FILES_SUBST+= TYPE1INST="${TYPE1INST_PREFIX}/bin/type1inst"
DEPENDS+= type1inst>=0.6.1:../../fonts/type1inst
.endif