Add an anti-foot-shooting measure to detect missing default Perl definition.
This can happen if bsd.perl.mk was not included before or during the inclusion of bsd.port.pre.mk. As of bsd.port.mk 1.586 this can't yet happen, as bsd.perl.mk is included unconditionally, so this checkin should be a no-op. While here, reserve WANT_PERL for ports that conditionally depend on Perl. WANT_PERL will need to be defined before bsd.port.pre.mk is included.
This commit is contained in:
parent
a78edad482
commit
c7735b8048
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200115
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,8 @@
|
|||
# port. The version requirement can be specified
|
||||
# here, as well.
|
||||
#
|
||||
# WANT_PERL5 - Set this is your port conditionally depends on Perl.
|
||||
# This MUST appear before the inclusion of bsd.port.pre.mk.
|
||||
|
||||
.if !defined(_POSTMKINCLUDED) && !defined(Perl_Pre_Include)
|
||||
|
||||
|
@ -182,6 +184,10 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
|
|||
|
||||
.endif # defined(_PERL_REFACTORING_COMPLETE)
|
||||
|
||||
.if !defined(PERL) || !defined(PERL5) || !defined(PERL_PORT) || !defined(PERL_VERSION)
|
||||
IGNORE= missing define for WANT_PERL, USE_PERL5, or similar before bsd.port.pre.mk inclusion
|
||||
.endif
|
||||
|
||||
.if defined(PERL_MODBUILD)
|
||||
PERL_CONFIGURE= yes
|
||||
CONFIGURE_SCRIPT?= Build.PL
|
||||
|
|
Loading…
Reference in a new issue