Changeset View
Changeset View
Standalone View
Standalone View
lang/perl5.16/Makefile
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
BSDPAN_DEST= ${PREFIX}/${_PRIV_LIB}/BSDPAN | BSDPAN_DEST= ${PREFIX}/${_PRIV_LIB}/BSDPAN | ||||
BSDPAN_FILES= BSDPAN.pm BSDPAN/Override.pm Config.pm \ | BSDPAN_FILES= BSDPAN.pm BSDPAN/Override.pm Config.pm \ | ||||
ExtUtils/MM_Unix.pm \ | ExtUtils/MM_Unix.pm \ | ||||
ExtUtils/MakeMaker.pm \ | ExtUtils/MakeMaker.pm \ | ||||
ExtUtils/Packlist.pm | ExtUtils/Packlist.pm | ||||
BSDPAN_VERSION= 20111107 | BSDPAN_VERSION= 20111107 | ||||
BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${BSDPAN_VERSION} | BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${BSDPAN_VERSION} | ||||
# Put a symlink to the future libperl.so.x.yy so that -lperl works. | |||||
post-extract: | |||||
${LN} -s libperl.so.${PERL_VER} ${WRKSRC}/libperl.so | |||||
post-patch: | post-patch: | ||||
${SED} -i '' -e 's|%%PERL_PKGNAME%%|${PKGNAME}|g; s|%%PERL_VER%%|${PERL_VER}|g;' \ | ${SED} -i '' -e 's|%%PERL_PKGNAME%%|${PKGNAME}|g; s|%%PERL_VER%%|${PERL_VER}|g;' \ | ||||
-e 's!%%BSDPAN_VERSION%%!${BSDPAN_VERSION}!g;' \ | -e 's!%%BSDPAN_VERSION%%!${BSDPAN_VERSION}!g;' \ | ||||
${BSDPAN_WRKSRC}/ExtUtils/*.pm | ${BSDPAN_WRKSRC}/ExtUtils/*.pm | ||||
${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 | ||||
${REINPLACE_CMD} -e 's|lddlflags="-shared "|lddlflags="-shared -L${WRKSRC} -L${PREFIX}/${_ARCH_LIB}/CORE -Wl,-rpath=${PREFIX}/${_ARCH_LIB}/CORE -lperl "|' \ | |||||
${WRKSRC}/hints/freebsd.sh | |||||
.if ${PORT_OPTIONS:MPTHREAD} | .if ${PORT_OPTIONS:MPTHREAD} | ||||
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \ | ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \ | ||||
-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \ | -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \ | ||||
${WRKSRC}/hints/freebsd.sh | ${WRKSRC}/hints/freebsd.sh | ||||
.else | .else | ||||
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \ | ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \ | ||||
-e 's|%%PTHREAD_CFLAGS%%||g;' \ | -e 's|%%PTHREAD_CFLAGS%%||g;' \ | ||||
${WRKSRC}/hints/freebsd.sh | ${WRKSRC}/hints/freebsd.sh | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
${MKDIR} ${STAGEDIR}${SITE_MAN3} | ${MKDIR} ${STAGEDIR}${SITE_MAN3} | ||||
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto | ${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto | ||||
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto | ${MKDIR} ${STAGEDIR}${SITE_PERL}/auto | ||||
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5 | ${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5 | ||||
${LN} -s libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so | ${LN} -sf libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so | ||||
${LN} -s libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so.${PERL_VERSION} | ${LN} -sf libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so.${PERL_VERSION} | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} | ||||
${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc | ${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc | ||||
${FIND} ${STAGEDIR} -name '*.bs' -size 0 -delete | ${FIND} ${STAGEDIR} -name '*.bs' -size 0 -delete | ||||
${MKDIR} ${STAGEDIR}${SITE_ARCH}/machine | ${MKDIR} ${STAGEDIR}${SITE_ARCH}/machine | ||||
${MKDIR} ${STAGEDIR}${SITE_ARCH}/sys | ${MKDIR} ${STAGEDIR}${SITE_ARCH}/sys | ||||
# h2ph needs perl, but perl is not installed, it's only | # h2ph needs perl, but perl is not installed, it's only | ||||
# staged, so, use the one in WRKDIR | # staged, so, use the one in WRKDIR | ||||
(cd /usr/include && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \ | (cd /usr/include && ${SETENV} LD_LIBRARY_PATH=${WRKSRC} \ | ||||
Show All 24 Lines |