ece98763f4
I adapted the patches to enable cross compiling to the new file hierarchy and line numbers: + configure and libltdl/configure have just different line numbers + libltdl/config/ltmain.m4sh was replaced with build-aux/ltmain.{in,sh} + tests/cdemo does no longer exist + patched tests/testsuite and tests/sysroot.at instead + had to add --force to ./bootstrap + gmp now needs to run autoreconf -if for cross compile case + libarchive -"- I successfully built for x86_64 and cross built for armv[67]hf e.g. `alsa-lib` for a test. However, this pr needs to be scrutinized before merge.
51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
# Template build file for 'gmp'
|
|
pkgname=gmp
|
|
version=6.0.0
|
|
revision=4
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
configure_args="--enable-cxx"
|
|
hostmakedepends="m4"
|
|
makedepends="zlib-devel"
|
|
short_desc="Library for arbitrary precision arithmetic"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="LGPL-3"
|
|
homepage="http://gmplib.org/"
|
|
distfiles="https://gmplib.org/download/gmp/gmp-${version}a.tar.xz"
|
|
checksum=9156d32edac6955bc53b0218f5f3763facb890b73a835d5e1b901dcf8eb8b764
|
|
|
|
subpackages="gmpxx gmpxx-devel gmp-devel"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" automake libtool"
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
fi
|
|
|
|
gmpxx_package() {
|
|
short_desc+=" - C++ support"
|
|
replaces="gmp<6.0.0_2"
|
|
pkg_install() {
|
|
vmove usr/lib/libgmpxx.so.*
|
|
}
|
|
}
|
|
gmpxx-devel_package() {
|
|
depends="gmpxx-${version}_${revision}"
|
|
short_desc+=" - C++ development files"
|
|
pkg_install() {
|
|
vmove usr/include/gmpxx.h
|
|
vmove usr/lib/libgmpxx.a
|
|
vmove usr/lib/libgmpxx.so
|
|
}
|
|
}
|
|
gmp-devel_package() {
|
|
depends="gmp-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|