aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2017-01-31 16:21:18 +0000
committerMathieu Arnold <mat@FreeBSD.org>2017-01-31 16:21:18 +0000
commit4645dcd3e04a81e0cc7d11e5040cfde85c313ba8 (patch)
treef8a76d1ae3589cc066709c48b612aa5038553a98 /Mk
parent00bc04885966869ac7681aca45ba867ff5ecdeb7 (diff)
downloadports-4645dcd3e04a81e0cc7d11e5040cfde85c313ba8.tar.gz
ports-4645dcd3e04a81e0cc7d11e5040cfde85c313ba8.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/perl5.mk182
1 files changed, 91 insertions, 91 deletions
diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk
index fb885b6521dc..3649ec73a8b4 100644
--- a/Mk/Uses/perl5.mk
+++ b/Mk/Uses/perl5.mk
@@ -36,53 +36,53 @@
.if !defined(_INCLUDE_USES_PERL5_MK)
_INCLUDE_USES_PERL5_MK= yes
-.if !empty(perl5_ARGS)
+. if !empty(perl5_ARGS)
IGNORE= Incorrect 'USES+=perl5:${perl5_ARGS}' perl5 takes no arguments
-.endif
+. endif
USE_PERL5?= run build
# remove when 5.20 goes away.
.sinclude "${LOCALBASE}/etc/perl5_version"
-.if defined(PERL_VERSION)
+. if defined(PERL_VERSION)
PERL5_DEPEND= ${PERL5}
THIS_IS_OLD_PERL= yes
-.else
+. else
# end of remove
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
-.if ${PERL5_DEFAULT} == 5.20
+. if ${PERL5_DEFAULT} == 5.20
.include "${PORTSDIR}/lang/perl5.20/version.mk"
-.elif ${PERL5_DEFAULT} == 5.22
+. elif ${PERL5_DEFAULT} == 5.22
.include "${PORTSDIR}/lang/perl5.22/version.mk"
-.elif ${PERL5_DEFAULT} == 5.24
+. elif ${PERL5_DEFAULT} == 5.24
.include "${PORTSDIR}/lang/perl5.24/version.mk"
-.elif ${PERL5_DEFAULT} == devel
+. elif ${PERL5_DEFAULT} == devel
.include "${PORTSDIR}/lang/perl5-devel/version.mk"
# Force PERL_PORT here in case two identical PERL_VERSION.
PERL_PORT?= perl5-devel
-.else
+. else
IGNORE= Invalid perl5 version ${PERL5_DEFAULT}
-.endif
-.endif
+. endif
+. endif
PERL_VER?= ${PERL_VERSION:C/\.[0-9]+$//}
-.if !defined(PERL_LEVEL) && defined(PERL_VERSION)
+. if !defined(PERL_LEVEL) && defined(PERL_VERSION)
perl_major= ${PERL_VERSION:C|^([1-9]+).*|\1|}
_perl_minor= 00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|}
perl_minor= ${_perl_minor:C|^.*(...)|\1|}
-.if ${perl_minor} >= 100
+. if ${perl_minor} >= 100
perl_minor= ${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|}
perl_patch= ${PERL_VERSION:C|^.*(..)|\1|}
-.else # ${perl_minor} < 100
+. else # ${perl_minor} < 100
_perl_patch= 0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|}
perl_patch= ${_perl_patch:C|^.*(..)|\1|}
-.endif # ${perl_minor} < 100
+. endif # ${perl_minor} < 100
PERL_LEVEL= ${perl_major}${perl_minor}${perl_patch}
-.else
+. else
PERL_LEVEL=0
-.endif # !defined(PERL_LEVEL) && defined(PERL_VERSION)
+. endif # !defined(PERL_LEVEL) && defined(PERL_VERSION)
PERL_ARCH?= mach
@@ -91,13 +91,13 @@ PERL_ARCH?= mach
# perl5_default file, or up there in the default versions selection.
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
-.if ${PERL_LEVEL} >= 502400
+. if ${PERL_LEVEL} >= 502400
PERL_PORT?= perl5.24
-.elif ${PERL_LEVEL} >= 502200
+. elif ${PERL_LEVEL} >= 502200
PERL_PORT?= perl5.22
-.else # ${PERL_LEVEL} < 502200
+. else # ${PERL_LEVEL} < 502200
PERL_PORT?= perl5.20
-.endif
+. endif
SITE_PERL_REL?= lib/perl5/site_perl
SITE_PERL?= ${LOCALBASE}/${SITE_PERL_REL}
@@ -105,11 +105,11 @@ SITE_ARCH_REL?= ${SITE_PERL_REL}/${PERL_ARCH}/${PERL_VER}
SITE_ARCH?= ${LOCALBASE}/${SITE_ARCH_REL}
SITE_MAN3_REL?= ${SITE_PERL_REL}/man/man3
SITE_MAN3?= ${PREFIX}/${SITE_MAN3_REL}
-.if defined(THIS_IS_OLD_PERL)
+. if defined(THIS_IS_OLD_PERL)
SITE_MAN1_REL?= share/man/man1
-.else
+. else
SITE_MAN1_REL?= ${SITE_PERL_REL}/man/man1
-.endif
+. endif
SITE_MAN1?= ${PREFIX}/${SITE_MAN1_REL}
PERL5?= ${LOCALBASE}/bin/perl${PERL_VERSION}
@@ -119,7 +119,7 @@ CONFIGURE_ENV+= ac_cv_path_PERL=${PERL} ac_cv_path_PERL_PATH=${PERL}
QA_ENV+= SITE_ARCH_REL=${SITE_ARCH_REL} LIBPERL=libperl.so.${PERL_VER}
# Define the want perl first if defined
-.if ${USE_PERL5:M5*}
+. if ${USE_PERL5:M5*}
want_perl_sign= ${USE_PERL5:M5*:C|^[0-9.]+||}
want_perl_ver= ${USE_PERL5:M5*:S|${want_perl_sign}$||}
want_perl_major= ${want_perl_ver:C|\..*||}
@@ -128,40 +128,40 @@ _want_perl_patch= ${want_perl_ver:S|^${want_perl_major}||:S|^.${_want_perl_minor
want_perl_minor= ${_want_perl_minor:S|^|000|:C|.*(...)|\1|}
want_perl_patch= ${_want_perl_patch:S|^|00|:C|.*(..)|\1|}
USE_PERL5_LEVEL= ${want_perl_major}${want_perl_minor}${want_perl_patch}
-.endif
+. endif
# All but version
_USE_PERL5= ${USE_PERL5:N5*}
# Mask unspecified components. E.g. this way "5" will match any "5.x.x".
-.if empty(_want_perl_minor)
+. if empty(_want_perl_minor)
masked_PERL_LEVEL= ${PERL_LEVEL:C|(.....)$|00000|}
-.elif empty(_want_perl_patch)
+. elif empty(_want_perl_patch)
masked_PERL_LEVEL= ${PERL_LEVEL:C|(..)$|00|}
-.else
+. else
masked_PERL_LEVEL= ${PERL_LEVEL}
-.endif
+. endif
-.if defined(want_perl_sign)
-.if ${want_perl_sign} == "+"
-.if ${USE_PERL5_LEVEL} > ${masked_PERL_LEVEL}
+. if defined(want_perl_sign)
+. if ${want_perl_sign} == "+"
+. if ${USE_PERL5_LEVEL} > ${masked_PERL_LEVEL}
USE_PERL5_REASON?= requires Perl ${want_perl_ver} or later, install lang/perl${want_perl_major}.${want_perl_minor:C|^0||} and try again
IGNORE= ${USE_PERL5_REASON}
-.endif # ${USE_PERL5_LEVEL} > ${masked_PERL_LEVEL}
-.elif ${want_perl_sign} == ""
-.if ${USE_PERL5_LEVEL} != ${masked_PERL_LEVEL}
+. endif # ${USE_PERL5_LEVEL} > ${masked_PERL_LEVEL}
+. elif ${want_perl_sign} == ""
+. if ${USE_PERL5_LEVEL} != ${masked_PERL_LEVEL}
USE_PERL5_REASON?= requires Perl ${want_perl_ver} exactly
IGNORE= ${USE_PERL5_REASON}
-.endif # ${USE_PERL5_LEVEL} != ${masked_PERL_LEVEL}
-.elif ${want_perl_sign} == "-"
-.if ${USE_PERL5_LEVEL} <= ${masked_PERL_LEVEL}
+. endif # ${USE_PERL5_LEVEL} != ${masked_PERL_LEVEL}
+. elif ${want_perl_sign} == "-"
+. if ${USE_PERL5_LEVEL} <= ${masked_PERL_LEVEL}
USE_PERL5_REASON?= requires a Perl version earlier than ${want_perl_ver}
IGNORE= ${USE_PERL5_REASON}
-.endif # ${USE_PERL5_LEVEL} <= ${masked_PERL_LEVEL}
-.else # wrong suffix
+. endif # ${USE_PERL5_LEVEL} <= ${masked_PERL_LEVEL}
+. else # wrong suffix
IGNORE= improper use of USE_PERL5
-.endif
-.endif
+. endif
+. endif
_USES_POST+= perl5
.endif
@@ -177,14 +177,14 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
SITE_ARCH=${SITE_ARCH_REL}
# handle perl5 specific manpages
-.for sect in 3
-.if defined(P5MAN${sect})
+. for sect in 3
+. if defined(P5MAN${sect})
_MANPAGES+= ${P5MAN${sect}:S%^%${PREFIX}/lib/perl5/${PERL_VER}/man/man${sect}/%}
-.endif
-.endfor
+. endif
+. endfor
MANDIRS+= ${PREFIX}/${SITE_PERL_REL}/man
-.if ${_USE_PERL5:Mmodbuild} || ${_USE_PERL5:Mmodbuildtiny}
+. if ${_USE_PERL5:Mmodbuild} || ${_USE_PERL5:Mmodbuildtiny}
_USE_PERL5+= configure
ALL_TARGET?= # empty
CONFIGURE_ARGS+=--install_path lib="${PREFIX}/${SITE_PERL_REL}" \
@@ -197,60 +197,60 @@ CONFIGURE_SCRIPT?= Build.PL
PL_BUILD?= Build
CONFIGURE_ARGS+=--destdir ${STAGEDIR}
DESTDIRNAME= --destdir
-.if ${_USE_PERL5:Mmodbuild}
-.if ${PORTNAME} != Module-Build
+. if ${_USE_PERL5:Mmodbuild}
+. if ${PORTNAME} != Module-Build
BUILD_DEPENDS+= p5-Module-Build>=0.4206:devel/p5-Module-Build
-.endif
+. endif
CONFIGURE_ARGS+=--create_packlist 1
-.endif
-.if ${_USE_PERL5:Mmodbuildtiny}
-.if ${PORTNAME} != Module-Build-Tiny
+. endif
+. if ${_USE_PERL5:Mmodbuildtiny}
+. if ${PORTNAME} != Module-Build-Tiny
BUILD_DEPENDS+= p5-Module-Build-Tiny>=0.039:devel/p5-Module-Build-Tiny
-.endif
+. endif
CONFIGURE_ARGS+=--create_packlist 1
-.endif
-.elif ${_USE_PERL5:Mconfigure}
+. endif
+. elif ${_USE_PERL5:Mconfigure}
CONFIGURE_ARGS+=INSTALLDIRS="site"
-.endif # modbuild
+. endif # modbuild
-.if ${_USE_PERL5:Mconfigure}
+. if ${_USE_PERL5:Mconfigure}
_USE_PERL5+= build run
# Disable AutoInstall from attempting to install from CPAN directly in
# the case of missing dependencies. This causes the build to loop on
# the build cluster asking for interactive input.
CONFIGURE_ENV+= PERL_EXTUTILS_AUTOINSTALL="--skipdeps"
-.if defined(BATCH) && !defined(IS_INTERACTIVE)
+. if defined(BATCH) && !defined(IS_INTERACTIVE)
CONFIGURE_ENV+= PERL_MM_USE_DEFAULT="YES"
-.endif # defined(BATCH) && !defined(IS_INTERACTIVE)
-.endif # configure
+. endif # defined(BATCH) && !defined(IS_INTERACTIVE)
+. endif # configure
-.if ${_USE_PERL5:Mextract}
+. if ${_USE_PERL5:Mextract}
EXTRACT_DEPENDS+= ${PERL5_DEPEND}:lang/${PERL_PORT}
-.endif
+. endif
-.if ${_USE_PERL5:Mpatch}
+. if ${_USE_PERL5:Mpatch}
PATCH_DEPENDS+= ${PERL5_DEPEND}:lang/${PERL_PORT}
-.endif
+. endif
-.if ${_USE_PERL5:Mbuild}
+. if ${_USE_PERL5:Mbuild}
BUILD_DEPENDS+= ${PERL5_DEPEND}:lang/${PERL_PORT}
-.endif
+. endif
-.if ${_USE_PERL5:Mrun}
+. if ${_USE_PERL5:Mrun}
RUN_DEPENDS+= ${PERL5_DEPEND}:lang/${PERL_PORT}
-.endif
+. endif
-.if ${_USE_PERL5:Mconfigure}
+. if ${_USE_PERL5:Mconfigure}
CONFIGURE_ARGS+= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib"
CONFIGURE_SCRIPT?= Makefile.PL
MAN3PREFIX?= ${PREFIX}/${SITE_PERL_REL}
-.if !defined(THIS_IS_OLD_PERL)
+. if !defined(THIS_IS_OLD_PERL)
MAN1PREFIX?= ${PREFIX}/${SITE_PERL_REL}
-.endif
+. endif
.undef HAS_CONFIGURE
-.if !target(do-configure)
+. if !target(do-configure)
do-configure:
@if [ -f ${SCRIPTDIR}/configure ]; then \
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \
@@ -259,26 +259,26 @@ do-configure:
@cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} \
${PERL5} ${CONFIGURE_CMD} ${CONFIGURE_ARGS}
-.if !${_USE_PERL5:Mmodbuild*}
+. if !${_USE_PERL5:Mmodbuild*}
@cd ${CONFIGURE_WRKSRC} && \
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
-.endif # ! modbuild
-.endif # !target(do-configure)
-.endif # configure
+. endif # ! modbuild
+. endif # !target(do-configure)
+. endif # configure
-.if ${_USE_PERL5:Mmodbuild*}
-.if !target(do-build)
+. if ${_USE_PERL5:Mmodbuild*}
+. if !target(do-build)
do-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} ${PL_BUILD} ${ALL_TARGET} ${MAKE_ARGS})
-.endif # !target(do-build)
+. endif # !target(do-build)
-.if !${USES:Mgmake}
-.if !target(do-install)
+. if !${USES:Mgmake}
+. if !target(do-install)
do-install:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} ${PL_BUILD} ${INSTALL_TARGET} ${MAKE_ARGS})
-.endif # !target(do-install)
-.endif # ! USES=gmake
-.endif # modbuild
+. endif # !target(do-install)
+. endif # ! USES=gmake
+. endif # modbuild
PACKLIST_DIR?= ${PREFIX}/${SITE_ARCH_REL}/auto
@@ -312,14 +312,14 @@ fix-perl-things:
@[ -d "${STAGEDIR}${SITE_MAN3}" ] && \
${FIND} ${STAGEDIR}${SITE_MAN3} -name '*::README.3' -delete || :
-.if !target(do-test) && (!empty(USE_PERL5:Mmodbuild*) || !empty(USE_PERL5:Mconfigure))
+. if !target(do-test) && (!empty(USE_PERL5:Mmodbuild*) || !empty(USE_PERL5:Mconfigure))
TEST_TARGET?= test
TEST_WRKSRC?= ${BUILD_WRKSRC}
do-test:
-.if ${USE_PERL5:Mmodbuild*}
+. if ${USE_PERL5:Mmodbuild*}
cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${PERL5} ${PL_BUILD} ${TEST_TARGET} ${TEST_ARGS}
-.elif ${USE_PERL5:Mconfigure}
+. elif ${USE_PERL5:Mconfigure}
cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${TEST_ARGS} ${TEST_TARGET}
-.endif # USE_PERL5:Mmodbuild*
-.endif # do-test
+. endif # USE_PERL5:Mmodbuild*
+. endif # do-test
.endif # defined(_POSTMKINCLUDED)