aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-09-11 08:54:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-11 08:54:18 +0000
commitdad0e50ab30e2aeb4d43e353d5b23e2206d17421 (patch)
treea1dd7ef9e9a0e7055c06d1bd144e680cf577892c
parent7f78c2b153e4fb097de0aba13bca5242316f0368 (diff)
downloadaports-dad0e50ab30e2aeb4d43e353d5b23e2206d17421.tar.gz
aports-dad0e50ab30e2aeb4d43e353d5b23e2206d17421.tar.bz2
aports-dad0e50ab30e2aeb4d43e353d5b23e2206d17421.tar.xz
main/mpfr4: new aport
multiple-precision floating-point library http://www.mpfr.org/ We need an additional mpfr package so we can upgrade gcc.
-rw-r--r--main/mpfr4/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/mpfr4/APKBUILD b/main/mpfr4/APKBUILD
new file mode 100644
index 0000000000..f81d040ed1
--- /dev/null
+++ b/main/mpfr4/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mpfr4
+pkgver=4.0.2
+pkgrel=1
+pkgdesc="multiple-precision floating-point library"
+url="http://www.mpfr.org/"
+arch="all"
+license="GPL LGPL"
+makedepends_build="texinfo"
+makedepends_host="gmp-dev"
+makedepends="$makedepends_build $makedepends_host"
+source="http://www.mpfr.org/mpfr-$pkgver/mpfr-$pkgver.tar.xz"
+subpackages="$pkgname-doc mpfr-dev"
+builddir="$srcdir/mpfr-$pkgver"
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --with-sysroot="$CBUILDROOT" \
+ --prefix=/usr \
+ --enable-shared
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+dev() {
+ replaces=mpfr
+ default_dev
+}
+
+sha512sums="d583555d08863bf36c89b289ae26bae353d9a31f08ee3894520992d2c26e5683c4c9c193d7ad139632f71c0a476d85ea76182702a98bf08dde7b6f65a54f8b88 mpfr-4.0.2.tar.xz"