Fix manual build of Perl modules when Perl has been cross compiled.

PR:		205600
Reported by:	Mark Millard
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2016-04-04 09:48:54 +00:00
parent f99100b982
commit d20edb8e1c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=412502
4 changed files with 28 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= perl
PORTREVISION= 0
PORTREVISION= 1
# XXX Remove second line, uncomment first
#DISTVERSION= ${PERL_VERSION}
DISTVERSION= ${GH_TAGNAME:C/^v//:C/-g[0-9a-f]*$//}
@ -271,6 +271,12 @@ post-patch-PTHREAD-off:
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
${WRKSRC}/hints/freebsd.sh
.if ${CC} == /nxb-bin/usr/bin/cc
post-build:
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
${WRKSRC}/lib/Config.pm ${WRKSRC}/lib/Config_heavy.pl
.endif
post-install:
${MKDIR} ${STAGEDIR}${SITE_MAN1} ${STAGEDIR}${SITE_MAN3}
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto

View File

@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
PORTREVISION= 17
PORTREVISION= 18
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN/../../src/5.0
DIST_SUBDIR= perl
@ -238,6 +238,12 @@ post-patch-PTHREAD-off:
${WRKSRC}/hints/freebsd.sh
.endif
.if ${CC} == /nxb-bin/usr/bin/cc
post-build:
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
${WRKSRC}/lib/Config.pm ${WRKSRC}/lib/Config_heavy.pl
.endif
post-install:
${MKDIR} ${STAGEDIR}${SITE_MAN1} ${STAGEDIR}${SITE_MAN3}
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto

View File

@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN/../../src/5.0
DIST_SUBDIR= perl
@ -233,6 +233,12 @@ post-patch-PTHREAD-off:
${WRKSRC}/hints/freebsd.sh
.endif
.if ${CC} == /nxb-bin/usr/bin/cc
post-build:
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
${WRKSRC}/lib/Config.pm ${WRKSRC}/lib/Config_heavy.pl
.endif
post-install:
${MKDIR} ${STAGEDIR}${SITE_MAN1} ${STAGEDIR}${SITE_MAN3}
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto

View File

@ -3,7 +3,7 @@
PORTNAME= perl
DISTVERSION= ${PERL_VERSION}
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN/../../src/5.0 CPAN/../by-authors/id/S/SH/SHAY
DIST_SUBDIR= perl
@ -231,6 +231,12 @@ post-patch-PTHREAD-off:
${WRKSRC}/hints/freebsd.sh
.endif
.if ${CC} == /nxb-bin/usr/bin/cc
post-build:
@${REINPLACE_CMD} -e 's=/nxb-bin==' \
${WRKSRC}/lib/Config.pm ${WRKSRC}/lib/Config_heavy.pl
.endif
post-install:
${MKDIR} ${STAGEDIR}${SITE_MAN1} ${STAGEDIR}${SITE_MAN3}
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto