perl-Socket6: fix cross.
This commit is contained in:
parent
4ba6d5bd58
commit
d2a5783dda
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'perl-Socket6'.
|
||||
pkgname=perl-Socket6
|
||||
version=0.28
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="${pkgname/perl-/}-${version}"
|
||||
build_style=perl-module
|
||||
hostmakedepends="perl"
|
||||
|
@ -13,8 +13,13 @@ homepage="http://search.cpan.org/dist/Socket6"
|
|||
license="Artistic, GPL-1"
|
||||
distfiles="${CPAN_SITE}/${pkgname/perl-/}/${pkgname/perl-/}-${version}.tar.gz"
|
||||
checksum=bfd49ab99f3197c99285fed4683c4edc06277c1e4453f593e694d7bff0974586
|
||||
nocross=yes # XXX fixme later
|
||||
|
||||
post_extract() {
|
||||
sed -i '/CFLAGS/d' Makefile.PL
|
||||
}
|
||||
pre_configure() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
export ipv6_cv_can_inet_ntop=yes
|
||||
sed -i 's:\./configure:& --host='$XBPS_CROSS_TRIPLET':g' Makefile.PL
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue