Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/perl5.mk
Show All 36 Lines | |||||
_INCLUDE_USES_PERL5_MK= yes | _INCLUDE_USES_PERL5_MK= yes | ||||
.if !empty(perl5_ARGS) | .if !empty(perl5_ARGS) | ||||
IGNORE= Incorrect 'USES+=perl5:${perl5_ARGS}' perl5 takes no arguments | IGNORE= Incorrect 'USES+=perl5:${perl5_ARGS}' perl5 takes no arguments | ||||
.endif | .endif | ||||
USE_PERL5?= run build | USE_PERL5?= run build | ||||
.if exists(${LOCALBASE}/bin/perl5) | # remove when 5.20 goes away. | ||||
.sinclude "${LOCALBASE}/etc/perl5_version" | .sinclude "${LOCALBASE}/etc/perl5_version" | ||||
.if !defined(PERL_VERSION) | .if !defined(PERL_VERSION) | ||||
PERL_VERSION!= perl -e 'printf "%vd\n", $$^V;' | # end of remove | ||||
.endif | |||||
.else | |||||
.include "${PORTSDIR}/Mk/bsd.default-versions.mk" | .include "${PORTSDIR}/Mk/bsd.default-versions.mk" | ||||
.if ${PERL5_DEFAULT} == 5.16 | .if ${PERL5_DEFAULT} == 5.16 | ||||
.include "${PORTSDIR}/lang/perl5.16/version.mk" | .include "${PORTSDIR}/lang/perl5.16/version.mk" | ||||
.elif ${PERL5_DEFAULT} == 5.18 | .elif ${PERL5_DEFAULT} == 5.18 | ||||
.include "${PORTSDIR}/lang/perl5.18/version.mk" | .include "${PORTSDIR}/lang/perl5.18/version.mk" | ||||
.elif ${PERL5_DEFAULT} == 5.20 | .elif ${PERL5_DEFAULT} == 5.20 | ||||
.include "${PORTSDIR}/lang/perl5.20/version.mk" | .include "${PORTSDIR}/lang/perl5.20/version.mk" | ||||
.elif ${PERL5_DEFAULT} == 5.22 | .elif ${PERL5_DEFAULT} == 5.22 | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |