summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam>2003-09-13 14:13:14 +0000
committerjlam <jlam>2003-09-13 14:13:14 +0000
commit1d0de411964f5ec780637ee3fb34e414338af415 (patch)
treee7b2b773ee59ac76fe15cd26d0cab3ee08e4cd8d /lang/perl5
parent47b7a0ec6523b2a6b3a96bfdd66082e2c9174d2a (diff)
downloadpkgsrc-1d0de411964f5ec780637ee3fb34e414338af415.tar.gz
Need to override the directory that scripts are installed into. For some
reason, there isn't a sitescript variable.
Diffstat (limited to 'lang/perl5')
-rw-r--r--lang/perl5/module.mk14
1 files changed, 11 insertions, 3 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index d554b15bb41..4b8914d41df 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.16 2003/09/13 13:53:31 jlam Exp $
+# $NetBSD: module.mk,v 1.17 2003/09/13 14:13:14 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -74,8 +74,11 @@ _PERL5_SITEVARS= \
.if !defined(_PERL5_SITEPREFIX)
. if exists(${PERL5})
+_PERL5_PREFIX!= \
+ eval `${PERL5} -V:prefix 2>/dev/null`; ${ECHO} $$prefix
_PERL5_SITEPREFIX!= \
- eval `${PERL5} -V:siteprefix 2>/dev/null`; ${ECHO} $${siteprefix}
+ eval `${PERL5} -V:siteprefix 2>/dev/null`; ${ECHO} $$siteprefix
+MAKEFLAGS+= _PERL5_PREFIX="${_PERL5_PREFIX}"
MAKEFLAGS+= _PERL5_SITEPREFIX="${_PERL5_SITEPREFIX}"
#
# Repoint all of the site-specific variables to be under the perl5
@@ -96,10 +99,15 @@ _PERL5_SUB_${_var_}!= \
${SED} -e "s,^${_PERL5_SITEPREFIX}/,,"
MAKEFLAGS+= _PERL5_SUB_${_var_}="${_PERL5_SUB_${_var_}}"
. endfor
+_PERL5_SUB_INSTALLSCRIPT!= \
+ eval `${PERL5} -V:installscript 2>/dev/null`; \
+ ${ECHO} $$installscript | \
+ ${SED} -e "s,^${_PERL5_PREFIX}/,,"
+MAKEFLAGS+= _PERL5_SUB_INSTALLSCRIPT="${_PERL5_SUB_INSTALLSCRIPT}"
. endif
.endif
-.for _var_ in ${_PERL5_SITEVARS}
+.for _var_ in ${_PERL5_SITEVARS} INSTALLSCRIPT
_PERL5_${_var_}= ${PREFIX}/${_PERL5_SUB_${_var_}}
MAKE_FLAGS+= ${_var_}="${_PERL5_${_var_}}"
.endfor