aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.perl.mk
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2007-09-14 06:10:33 +0800
committerlinimon <linimon@FreeBSD.org>2007-09-14 06:10:33 +0800
commit53d1c37149c1e2acf42f4b92b2d5a7cc9ac6e791 (patch)
treeff32ff4d26dbe2ea17d1cdd77e2dc852c9f1a77f /Mk/bsd.perl.mk
parent1d879f034d2dee69ec14c53e674f78a3ad33c944 (diff)
downloadfreebsd-ports-gnome-53d1c37149c1e2acf42f4b92b2d5a7cc9ac6e791.tar.gz
freebsd-ports-gnome-53d1c37149c1e2acf42f4b92b2d5a7cc9ac6e791.tar.zst
freebsd-ports-gnome-53d1c37149c1e2acf42f4b92b2d5a7cc9ac6e791.zip
Restore the semantics of USE_PERL and friends by moving them back to
the 'post' block from which they originally came. This should fix the remaining few package build errors because of conditional perl inclusion. Pointy hat: linimon
Diffstat (limited to 'Mk/bsd.perl.mk')
-rw-r--r--Mk/bsd.perl.mk25
1 files changed, 15 insertions, 10 deletions
diff --git a/Mk/bsd.perl.mk b/Mk/bsd.perl.mk
index 61b4fd80f16d..543d1088a00a 100644
--- a/Mk/bsd.perl.mk
+++ b/Mk/bsd.perl.mk
@@ -111,11 +111,6 @@ SITE_PERL?= ${LOCALBASE}/${SITE_PERL_REL}
PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION}
PERL= ${LOCALBASE}/bin/perl
-PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
- PERL_VER=${PERL_VER} \
- PERL_ARCH=${PERL_ARCH} \
- SITE_PERL=${SITE_PERL_REL}
-
.endif # defined(_PERL_REFACTORING_COMPLETE)
# Decide where to look for the version string
@@ -172,6 +167,21 @@ IGNORE= improper use of USE_PERL5
.endif
.endif #${USE_PERL5_STRING:L} != "yes"
+.endif # !defined(_POSTMKINCLUDED) && !defined(Perl_Pre_Include)
+
+.if defined(_POSTMKINCLUDED) && !defined(Perl_Post_Include)
+
+Perl_Post_Include= bsd.perl.mk
+
+.if defined(_PERL_REFACTORING_COMPLETE)
+
+PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
+ PERL_VER=${PERL_VER} \
+ PERL_ARCH=${PERL_ARCH} \
+ SITE_PERL=${SITE_PERL_REL}
+
+.endif # defined(_PERL_REFACTORING_COMPLETE)
+
.if defined(PERL_MODBUILD)
PERL_CONFIGURE= yes
CONFIGURE_SCRIPT?= Build.PL
@@ -215,11 +225,6 @@ CONFIGURE_SCRIPT?= Makefile.PL
MAN3PREFIX?= ${PREFIX}/lib/perl5/${PERL_VERSION}
.undef HAS_CONFIGURE
.endif # defined(PERL_CONFIGURE)
-.endif # !defined(_POSTMKINCLUDED) && !defined(Perl_Pre_Include)
-
-.if defined(_POSTMKINCLUDED) && !defined(Perl_Post_Include)
-
-Perl_Post_Include= bsd.perl.mk
.if defined(PERL_CONFIGURE)
.if !target(do-configure)