Changeset View
Changeset View
Standalone View
Standalone View
head/lang/perl5.22/Makefile
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ | ||||
MAN3=${PERLMANPREFIX_REL}/man/man3 \ | MAN3=${PERLMANPREFIX_REL}/man/man3 \ | ||||
PERLMANPREFIX=${PERLMANPREFIX_REL} \ | PERLMANPREFIX=${PERLMANPREFIX_REL} \ | ||||
SITEMANPREFIX=${SITE_MAN_PREFIX} \ | SITEMANPREFIX=${SITE_MAN_PREFIX} \ | ||||
SITE_PERL=${SITE_PERL_REL} \ | SITE_PERL=${SITE_PERL_REL} \ | ||||
SITE_ARCH=${SITE_ARCH_REL} \ | SITE_ARCH=${SITE_ARCH_REL} \ | ||||
PRIV_LIB=${_PRIV_LIB} \ | PRIV_LIB=${_PRIV_LIB} \ | ||||
ARCH_LIB=${_ARCH_LIB} | ARCH_LIB=${_ARCH_LIB} | ||||
_PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT | |||||
# bsd.default-versions.mk needs to know LOCALBASE for Perl, so | # bsd.default-versions.mk needs to know LOCALBASE for Perl, so | ||||
# bsd.port.options.mk is needed before including it. | # bsd.port.options.mk is needed before including it. | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.sinclude "${_PERL5_DEFAULT_FILE}" | |||||
.include "${.CURDIR}/../../Mk/bsd.default-versions.mk" | .include "${.CURDIR}/../../Mk/bsd.default-versions.mk" | ||||
# if this port is default due PERL5_DEFAULT | # if this port is default due PERL5_DEFAULT | ||||
# change PKGNAME to reflect this | # change PKGNAME to reflect this | ||||
.if ${PERL_VER} == ${PERL5_DEFAULT} | .if ${PERL_VER} == ${PERL5_DEFAULT} | ||||
PKGNAMESUFFIX= 5 | PKGNAMESUFFIX= 5 | ||||
IAMDEFAULTPERL= yes | IAMDEFAULTPERL= yes | ||||
.else | .else | ||||
Show All 30 Lines | pre-everything:: | ||||
@${ECHO_MSG} "" | @${ECHO_MSG} "" | ||||
@${ECHO_MSG} "##################################################" | @${ECHO_MSG} "##################################################" | ||||
. if !(defined(PACKAGE_BUILDING) || defined(BATCH)) | . if !(defined(PACKAGE_BUILDING) || defined(BATCH)) | ||||
@sleep 30 | @sleep 30 | ||||
. endif | . endif | ||||
.endif | .endif | ||||
# Put a symlink to the future libperl.so.x.yy so that -lperl works. | # Put a symlink to the future libperl.so.x.yy so that -lperl works. | ||||
# Also, save PERL5_DEFAULT in case someone is not using the default Perl | |||||
# version whilst not having set DEFAULT_VERSIONS=perl5=blah. While upgrading, | |||||
# portmaster/portupgrade will remove the installed Perl version, and it will | |||||
# remove any way to guess what the default Perl version is needed. | |||||
post-extract: | post-extract: | ||||
${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so | ${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so | ||||
${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so.${PERL_VER} | ${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so.${PERL_VER} | ||||
.if !defined(PACKAGE_BUILDING) | |||||
@${ECHO_CMD} "PERL5_DEFAULT=${PERL5_DEFAULT}" > ${_PERL5_DEFAULT_FILE} | |||||
.endif | |||||
.if !defined(PACKAGE_BUILDING) | |||||
post-clean: | |||||
@${RM} ${_PERL5_DEFAULT_FILE} | |||||
.endif | |||||
.if !defined(MAKING_PATCHES) | .if !defined(MAKING_PATCHES) | ||||
# make clean patch makepatch MAKING_PATCHES= | # make clean patch makepatch MAKING_PATCHES= | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ | ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ | ||||
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh | ${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh | ||||
.if !defined(IAMDEFAULTPERL) | .if !defined(IAMDEFAULTPERL) | ||||
${REINPLACE_CMD} -e '/do_installprivlib = 0 if .versiononly/d; \ | ${REINPLACE_CMD} -e '/do_installprivlib = 0 if .versiononly/d; \ | ||||
Show All 36 Lines |