diff options
Diffstat (limited to 'lang/perl5')
-rw-r--r-- | lang/perl5/Makefile | 5 | ||||
-rw-r--r-- | lang/perl5/buildlink.mk | 2 | ||||
-rw-r--r-- | lang/perl5/buildlink2.mk | 27 |
3 files changed, 31 insertions, 3 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index de4720800f4..8fb2b63eeb7 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.55 2002/01/30 22:34:15 jlam Exp $ +# $NetBSD: Makefile,v 1.56 2002/08/25 18:39:26 jlam Exp $ .include "../../lang/perl5/Makefile.common" @@ -15,6 +15,7 @@ CONFLICTS= perl-5.00* perl-base-[0-9]* \ p5-Devel-DProf-[0-9]* p5-Devel-Peek-[0-9]* \ perl-mk-[0-9]* +USE_BUILDLINK2= # defined HAS_CONFIGURE= # defined CONFIGURE_SCRIPT= ./Configure CONFIGURE_ARGS+= -sde @@ -22,7 +23,7 @@ CONFIGURE_ARGS+= -Dprefix="${PREFIX}" CONFIGURE_ARGS+= -Dscriptdir="${PREFIX}/bin" CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}" CONFIGURE_ARGS+= -Doptimize="${CFLAGS}" -CONFIGURE_ARGS+= -Dcc="${CC}" +CONFIGURE_ARGS+= -Dcc="${CC:T}" CONFIGURE_ARGS+= -Uusemymalloc CONFIGURE_ARGS+= -Uinstallusrbinperl diff --git a/lang/perl5/buildlink.mk b/lang/perl5/buildlink.mk index 208ace74167..54f2cc3f22d 100644 --- a/lang/perl5/buildlink.mk +++ b/lang/perl5/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.11 2002/07/24 19:43:10 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.12 2002/08/25 18:39:27 jlam Exp $ # # This Makefile fragment is included by packages that use perl. # diff --git a/lang/perl5/buildlink2.mk b/lang/perl5/buildlink2.mk new file mode 100644 index 00000000000..61768d56a39 --- /dev/null +++ b/lang/perl5/buildlink2.mk @@ -0,0 +1,27 @@ +# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:27 jlam Exp $ + +.if !defined(PERL5_BUILDLINK2_MK) +PERL5_BUILDLINK2_MK= # defined + +USE_PERL5= # defined + +.include "../../mk/bsd.prefs.mk" + +PERL5_REQD?= 5.0 +BUILDLINK_PACKAGES+= perl +BUILDLINK_DEPENDS.perl?= perl>=${PERL5_REQD} +BUILDLINK_PKGSRCDIR.perl?= ../../lang/perl5 + +EVAL_PREFIX+= BUILDLINK_PREFIX.perl=perl +BUILDLINK_PREFIX.perl_DEFAULT= ${LOCALBASE} +PERL5?= ${BUILDLINK_PREFIX.perl}/bin/perl + +BUILDLINK_FILES.perl= \ + ${PERL5_ARCHLIB:S/^${BUILDLINK_PREFIX.perl}\///}/CORE/* \ + ${PERL5_ARCHLIB:S/^${BUILDLINK_PREFIX.perl}\///}/auto/DynaLoader/DynaLoader.a + +BUILDLINK_TARGETS+= perl-buildlink + +perl-buildlink: _BUILDLINK_USE + +.endif # PERL5_BUILDLINK2_MK |