summaryrefslogtreecommitdiffstats
path: root/main/libmpc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-09-28 08:59:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-09-28 08:59:21 +0000
commit88fc2b618030ea5e180892038ed42405cdb52566 (patch)
tree3fd42cf36a0fb8ea9e83bc8d7698a9c879f08ae5 /main/libmpc
parentb09b7996bd35d720fa81977cd17fd4ec437daf07 (diff)
downloadaports-88fc2b618030ea5e180892038ed42405cdb52566.tar.bz2
aports-88fc2b618030ea5e180892038ed42405cdb52566.tar.xz
main/libmpc: new aport
Multiprecision C library http://www.multiprecision.org Needed for gcc-4.5.x
Diffstat (limited to 'main/libmpc')
-rw-r--r--main/libmpc/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/libmpc/APKBUILD b/main/libmpc/APKBUILD
new file mode 100644
index 000000000..094ed9e3e
--- /dev/null
+++ b/main/libmpc/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libmpc
+pkgver=0.8.2
+pkgrel=0
+pkgdesc="Multiprecision C library"
+url="http://www.multiprecision.org/"
+license="LGPL-2.1"
+depends=
+makedepends="gmp5-dev mpfr-dev"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.multiprecision.org/mpc/download/mpc-$pkgver.tar.gz"
+
+_builddir="$srcdir"/mpc-$pkgver
+
+prepare() {
+ cd "$_builddir"
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="e98267ebd5648a39f881d66797122fb6 mpc-0.8.2.tar.gz"