diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-24 13:57:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-24 14:00:36 +0000 |
commit | ec8ba0add9cdeeaf439af34104d724c01b1592f0 (patch) | |
tree | 6d9fbb9db438b1be449b3e7efbd67c61df8ca67c /main | |
parent | 7de1f0b29b9fde06b9d336e0876193fa3970019c (diff) | |
download | aports-ec8ba0add9cdeeaf439af34104d724c01b1592f0.tar.bz2 aports-ec8ba0add9cdeeaf439af34104d724c01b1592f0.tar.xz |
main/gmp5: add support for libgmpxx and initial crosscompile support
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" |