Changeset View
Changeset View
Standalone View
Standalone View
Makefile
Context not available. | |||||
PKGNAMESUFFIX=${PKGNAMESUFFIX} \ | PKGNAMESUFFIX=${PKGNAMESUFFIX} \ | ||||
ARCH_LIB=${_ARCH_LIB} | ARCH_LIB=${_ARCH_LIB} | ||||
_PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT | |||||
# Get the default version, and possibly, overwrite it. | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.sinclude "${_PERL5_DEFAULT_FILE}" | |||||
# 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 | ||||
Context not available. | |||||
.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 | |||||
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 | ||||
Context not available. |