Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/perl5.mk
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
SITE_ARCH?= ${LOCALBASE}/${SITE_ARCH_REL} | SITE_ARCH?= ${LOCALBASE}/${SITE_ARCH_REL} | ||||
SITE_MAN3_REL?= ${SITE_PERL_REL}/man/man3 | SITE_MAN3_REL?= ${SITE_PERL_REL}/man/man3 | ||||
SITE_MAN3?= ${PREFIX}/${SITE_MAN3_REL} | SITE_MAN3?= ${PREFIX}/${SITE_MAN3_REL} | ||||
PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION} | PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION} | ||||
PERL= ${LOCALBASE}/bin/perl | PERL= ${LOCALBASE}/bin/perl | ||||
CONFIGURE_ENV+= ac_cv_path_PERL=${PERL} ac_cv_path_PERL_PATH=${PERL} | CONFIGURE_ENV+= ac_cv_path_PERL=${PERL} ac_cv_path_PERL_PATH=${PERL} | ||||
QA_ENV+= SITE_ARCH_REL=${SITE_ARCH_REL} | |||||
# Define the want perl first if defined | # 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_sign= ${USE_PERL5:M5*:C|^[0-9.]+||} | ||||
want_perl_ver= ${USE_PERL5:M5*:S|${want_perl_sign}$||} | want_perl_ver= ${USE_PERL5:M5*:S|${want_perl_sign}$||} | ||||
want_perl_major= ${want_perl_ver:C|\..*||} | want_perl_major= ${want_perl_ver:C|\..*||} | ||||
_want_perl_minor= ${want_perl_ver:S|^${want_perl_major}||:S|^.||:C|\..*||} | _want_perl_minor= ${want_perl_ver:S|^${want_perl_major}||:S|^.||:C|\..*||} | ||||
_want_perl_patch= ${want_perl_ver:S|^${want_perl_major}||:S|^.${_want_perl_minor}||:S|^.||:C|\..*||} | _want_perl_patch= ${want_perl_ver:S|^${want_perl_major}||:S|^.${_want_perl_minor}||:S|^.||:C|\..*||} | ||||
want_perl_minor= ${_want_perl_minor:S|^|000|:C|.*(...)|\1|} | want_perl_minor= ${_want_perl_minor:S|^|000|:C|.*(...)|\1|} | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |