gmp: make this cross-buildable again after 5.1.1 update.
This commit is contained in:
parent
d9cba50ed8
commit
c4dd7a3394
|
@ -2,15 +2,11 @@
|
||||||
pkgname=gmp
|
pkgname=gmp
|
||||||
version=5.1.1
|
version=5.1.1
|
||||||
revision=1
|
revision=1
|
||||||
makedepends="automake"
|
|
||||||
crossmakedepends="zlib-devel"
|
|
||||||
subpackages="gmp-devel"
|
subpackages="gmp-devel"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
# Build with -fexceptions as suggested by ppl.
|
# Build with -fexceptions as suggested by ppl.
|
||||||
CPPFLAGS="-fexceptions"
|
CPPFLAGS="-fexceptions"
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_MACHINE" = "i686" ]; then
|
||||||
configure_args="ABI=64"
|
|
||||||
else
|
|
||||||
cnfigure_args="ABI=32"
|
cnfigure_args="ABI=32"
|
||||||
fi
|
fi
|
||||||
configure_args="${configure_args} --enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
|
configure_args="${configure_args} --enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu"
|
||||||
|
@ -21,7 +17,10 @@ homepage="http://gmplib.org/"
|
||||||
distfiles="ftp://ftp.gmplib.org/pub/gmp-${version}/gmp-${version}.tar.xz"
|
distfiles="ftp://ftp.gmplib.org/pub/gmp-${version}/gmp-${version}.tar.xz"
|
||||||
checksum=4bd64d782fdeb61aeed45b434fca5246d66baa9de76f87cba30c38460d8834c2
|
checksum=4bd64d782fdeb61aeed45b434fca5246d66baa9de76f87cba30c38460d8834c2
|
||||||
|
|
||||||
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||||
|
makedepends="automake"
|
||||||
|
crossmakedepends="zlib-devel"
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue