[Midnightbsd-cvs] mports: bsd.perl.mk: Add support for PERL_NO_DEPENDS, useful for the
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Fri Apr 11 00:46:39 EDT 2008
Log Message:
-----------
Add support for PERL_NO_DEPENDS, useful for the perl ports themselves.
Add a bunch of stuff to SLIST_SUB.
Modified Files:
--------------
mports/Mk:
bsd.perl.mk (r1.9 -> r1.10)
-------------- next part --------------
Index: bsd.perl.mk
===================================================================
RCS file: /home/cvs/mports/Mk/bsd.perl.mk,v
retrieving revision 1.9
retrieving revision 1.10
diff -L Mk/bsd.perl.mk -L Mk/bsd.perl.mk -u -r1.9 -r1.10
--- Mk/bsd.perl.mk
+++ Mk/bsd.perl.mk
@@ -13,7 +13,7 @@
# This file contains the glue that is supposed to make your life easier when
# dealing with ports of perl related software, specifially CPAN modules. It
-# is automatically included when USE_PERL, PERL_CONFIGURE, or PERL_MODBUILD
+# is automatically included when USE_PERL5, PERL_CONFIGURE, or PERL_MODBUILD
# is defined in the port's makefile.
#
##
@@ -50,7 +50,7 @@
# Perl version stuff.
#
PERL_VERSION?= 5.8.8
-PERL_VER?= 5.8.8
+PERL_VER?= ${PERL_VERSION}
.if !defined(PERL_LEVEL) && defined(PERL_VERSION)
perl_major= ${PERL_VERSION:C|^([1-9]+).*|\1|}
@@ -89,6 +89,9 @@
#
# dependancies
#
+PERL_NO_DEPENDS?= NO
+
+.if ${PERL_NO_DEPENDS} == "NO"
.if defined(USE_PERL5) || defined(USE_PERL5_BUILD)
EXTRACT_DEPENDS+=${PERL5}:${PORTSDIR}/lang/${PERL_PORT}
PATCH_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/${PERL_PORT}
@@ -97,7 +100,7 @@
.if defined(USE_PERL5) || defined(USE_PERL5_RUN)
RUN_DEPENDS+= ${PERL5}:${PORTSDIR}/lang/${PERL_PORT}
.endif
-
+.endif
#
# Configure
@@ -146,6 +149,11 @@
PERL_ARCH=${PERL_ARCH} \
SITE_PERL=${SITE_PERL_REL}
+SUB_LIST+= PERL_VERSION=${PERL_VERSION} \
+ PERL_VER=${PERL_VER} \
+ PERL_ARCH=${PERL_ARCH} \
+ SITE_PERL=${SITE_PERL_REL}
+
.if defined(PERL_CONFIGURE) || defined(PERL_MODBUILD)
.if !target(do-configure)
More information about the Midnightbsd-cvs
mailing list