diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/gmp5/APKBUILD | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/main/gmp5/APKBUILD b/main/gmp5/APKBUILD index d8d8b7e430..1cc86d74cd 100644 --- a/main/gmp5/APKBUILD +++ b/main/gmp5/APKBUILD @@ -9,7 +9,7 @@ url="http://gmplib.org/" license="LGPL3" makedepends="m4 texinfo" depends= -subpackages="$pkgname-doc gmp-dev" +subpackages="$pkgname-doc gmp-dev libgmpxx" source="ftp://ftp.gnu.org/gnu/gmp/gmp-$pkgver.tar.bz2 gmp-4.1.4-noexecstack.patch " @@ -20,13 +20,14 @@ build() { patch -p1 < "$srcdir"/gmp-4.1.4-noexecstack.patch || return 1 ./configure --prefix=/usr \ - --build=${CHOST} \ + --build=${CBUILD} \ + --host=${CHOST} \ + --target=${CTARGET:-$CHOST} \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --localstatedir=/var/state/gmp \ - --disable-mpfr \ - --disable-mpbsd \ - --disable-cxx \ + --enable-mpbsd \ + --enable-cxx \ --with-pic \ || return 1 @@ -43,5 +44,11 @@ dev() { default_dev } +libgmpxx() { + pkgdesc="C++ support for gmp" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libgmpxx.so.* "$subpkgdir"/usr/lib/ +} + md5sums="6bac6df75c192a13419dfd71d19240a7 gmp-5.0.1.tar.bz2 13c34f00e77ded6673270cfea06c35c3 gmp-4.1.4-noexecstack.patch" |