2017-05-18 14:42:12 +00:00
|
|
|
# Template build file for 'perl-Socket6'.
|
|
|
|
pkgname=perl-Socket6
|
|
|
|
version=0.28
|
2017-08-19 18:49:07 +00:00
|
|
|
revision=3
|
2017-05-18 14:42:12 +00:00
|
|
|
wrksrc="${pkgname/perl-/}-${version}"
|
|
|
|
build_style=perl-module
|
|
|
|
hostmakedepends="perl"
|
|
|
|
makedepends="${hostmakedepends}"
|
|
|
|
depends="${makedepends}"
|
|
|
|
short_desc="Socket6 - IPv6 related part of the C socket.h defines and structure manipulators"
|
|
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
|
|
homepage="http://search.cpan.org/dist/Socket6"
|
|
|
|
license="Artistic, GPL-1"
|
|
|
|
distfiles="${CPAN_SITE}/${pkgname/perl-/}/${pkgname/perl-/}-${version}.tar.gz"
|
|
|
|
checksum=bfd49ab99f3197c99285fed4683c4edc06277c1e4453f593e694d7bff0974586
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
sed -i '/CFLAGS/d' Makefile.PL
|
|
|
|
}
|
2017-05-20 13:14:43 +00:00
|
|
|
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
|
|
|
|
}
|