perl: make sure perl${version} bin is generated in cross builds.

This commit is contained in:
Juan RP 2013-03-16 05:48:22 +01:00
parent 7a5994b142
commit c5747cc553
2 changed files with 13 additions and 4 deletions

View file

@ -1017,7 +1017,7 @@ stdio_stream_array=''
strerror_r_proto='REENTRANT_PROTO_B_IBW'
strings='/usr/include/string.h'
submit=''
subversion='2'
subversion='@@PERL_SUBVERSION@@'
sysman='/usr/share/man/man1'
tail=''
tar=''
@ -1107,8 +1107,8 @@ vendorprefix='/usr'
vendorprefixexp='/usr'
vendorscript='/usr/lib/perl5/vendor_perl/bin'
vendorscriptexp='/usr/lib/perl5/vendor_perl/bin'
version='5.16.2'
version_patchlevel_string='version 16 subversion 2'
version='@@PERL_VERSION@@'
version_patchlevel_string='@@PERL_VERSION@@'
versiononly='undef'
vi=''
voidflags='15'

View file

@ -1,7 +1,7 @@
# Template build file for 'perl'.
pkgname=perl
version=5.16.3
revision=1
revision=2
makedepends="which gdbm-devel db-devel less groff"
short_desc="Practical Extraction and Report Language"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -173,8 +173,17 @@ do_configure() {
if [ -n "$XBPS_CROSS_BUILD" ]; then
# Copy target files
if [ ! -d $FILESDIR/$XBPS_CROSS_TRIPLET ]; then
msg_error "$pkgver: cannot be cross built for $XBPS_CROSS_TRIPLET, contact $maintainer.\n"
fi
cp -f ${FILESDIR}/${XBPS_CROSS_TRIPLET}/* .
cp -f ${FILESDIR}/Configure.cross .
# substitute some required strings in generated config.sh
sed -e "s|@@PERL_VERSION@@|${version}|g" \
-e "s|@@PERL_SUBVERSION@@|${version##*.}|g" \
-i config.sh
sh ./Configure.cross
perl -Ilib make_patchnum.pl
else