summaryrefslogtreecommitdiff
path: root/lang/perl5/module.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-05-18 22:42:07 +0000
committerjlam <jlam@pkgsrc.org>2005-05-18 22:42:07 +0000
commitd6f6120540eaa1315ad85806fdeb1140c6e68496 (patch)
tree67b8f74bb10335e4db27319dcdd190d485ae9da0 /lang/perl5/module.mk
parentb128ce5f024d2ea08fb4743141290d580c65ebe1 (diff)
downloadpkgsrc-d6f6120540eaa1315ad85806fdeb1140c6e68496.tar.gz
Goal: Remove USE_PERL5 from pkgsrc.
Plan: (1) Change USE_PERL5=build into USE_TOOLS+=perl. (2) Change all other USE_PERL5 into including perl5/buildlink3.mk. Possibly, for packages that don't actually build anything with perl, but merely require it for the perl interpreter, we can instead do: USE_TOOLS+= perl TOOLS_DEPMETHOD.perl= DEPENDS but this is more verbose than simply including the perl5/buildlink3.mk file. Move the PERL5_REQD computation into a lang/perl5/version.mk file, and only do the USE_PERL5 logic in bsd.pkg.use.mk if we're not using the new tools framework. This consolidates all of the perl-handling into two places -- lang/perl5 and mk/tools/perl.mk.
Diffstat (limited to 'lang/perl5/module.mk')
-rw-r--r--lang/perl5/module.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk
index 250ec4402a6..6bd4fd18b15 100644
--- a/lang/perl5/module.mk
+++ b/lang/perl5/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.44 2005/04/01 22:37:44 heinz Exp $
+# $NetBSD: module.mk,v 1.45 2005/05/18 22:42:07 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install perl5 modules.
@@ -145,6 +145,10 @@ PERL5_MAKE_FLAGS+= OTHERLDFLAGS="${LDFLAGS:S/-Wl,//g}"
PERL5_MAKE_FLAGS+= OTHERLDFLAGS="${LDFLAGS}"
.endif
+PLIST_SUBST+= PERL5_SITELIB=${PERL5_SUB_INSTALLSITELIB}
+PLIST_SUBST+= PERL5_SITEARCH=${PERL5_SUB_INSTALLSITEARCH}
+PLIST_SUBST+= PERL5_ARCHLIB=${PERL5_SUB_INSTALLARCHLIB}
+
# Generate the PLIST from the files listed in PERL5_PACKLIST.
.if defined(PERL5_PACKLIST)
PERL5_PLIST_COMMENT= \