summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-10-19 01:52:30 +0000
committerjlam <jlam@pkgsrc.org>2002-10-19 01:52:30 +0000
commit803b0abcd51f06dfdc9780a08307f2de3bcae8b6 (patch)
tree1aeb0cf409f906b436e976708144f4835a42d20d /lang
parentad8e5c1fab5ea32a151bc2f7396b5378054ead58 (diff)
downloadpkgsrc-803b0abcd51f06dfdc9780a08307f2de3bcae8b6.tar.gz
Add a buildlink2.mk file that allows for libperl or perl>=5.8.0.
Diffstat (limited to 'lang')
-rw-r--r--lang/libperl/buildlink2.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/libperl/buildlink2.mk b/lang/libperl/buildlink2.mk
new file mode 100644
index 00000000000..9a2a939dfb3
--- /dev/null
+++ b/lang/libperl/buildlink2.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink2.mk,v 1.1 2002/10/19 01:52:30 jlam Exp $
+
+.if !defined(LIBPERL5_BUILDLINK2_MK)
+LIBPERL5_BUILDLINK2_MK= # defined
+
+LIBPERL5_REQD?= ${PERL5_REQD}
+BUILDLINK_PACKAGES+= libperl
+BUILDLINK_DEPENDS.libperl?= {libperl>=${LIBPERL5_REQD},perl>=5.8.0}
+BUILDLINK_PKGSRCDIR.libperl?= ../../lang/libperl
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.libperl=libperl
+BUILDLINK_PREFIX.libperl_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.libperl= \
+ ${PERL5_ARCHLIB:S/^${BUILDLINK_PREFIX.perl}\///}/DynaLoader_pic.o
+
+.include "../../lang/perl5/buildlink2.mk"
+
+BUILDLINK_TARGETS+= libperl-buildlink
+
+libperl-buildlink: _BUILDLINK_USE
+
+.endif # LIBPERL5_BUILDLINK2_MK