summaryrefslogtreecommitdiff
path: root/libgmp
diff options
context:
space:
mode:
authorMatt Housh <jaeger@morpheus.net>2013-08-07 07:45:36 -0500
committerMatt Housh <jaeger@morpheus.net>2013-08-07 07:45:36 -0500
commit8645b10c8e68e29f8c19cd725f22ded25406bf8d (patch)
tree1b7b62866ea649744800c0c655e2992a2d57a88c /libgmp
parentc081b07f9de5ac7b8a00f8c85844462ab16e857e (diff)
downloadcore-8645b10c8e68e29f8c19cd725f22ded25406bf8d.tar.gz
core-8645b10c8e68e29f8c19cd725f22ded25406bf8d.tar.xz
libgmp: fix for multilib header installation
Diffstat (limited to 'libgmp')
-rw-r--r--libgmp/.footprint1
-rw-r--r--libgmp/.md5sum1
-rw-r--r--libgmp/Pkgfile7
-rw-r--r--libgmp/gmp.h16
4 files changed, 23 insertions, 2 deletions
diff --git a/libgmp/.footprint b/libgmp/.footprint
index 74ea801a..c59633b1 100644
--- a/libgmp/.footprint
+++ b/libgmp/.footprint
@@ -1,5 +1,6 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/gmp-64.h
-rw-r--r-- root/root usr/include/gmp.h
-rw-r--r-- root/root usr/include/gmpxx.h
drwxr-xr-x root/root usr/lib/
diff --git a/libgmp/.md5sum b/libgmp/.md5sum
index f023fc3d..2c49966f 100644
--- a/libgmp/.md5sum
+++ b/libgmp/.md5sum
@@ -1 +1,2 @@
06fe2ca164221c59ce74867155cfc1ac gmp-5.1.2.tar.xz
+bbf6d30f092c6d302f028679f1f9bfc3 gmp.h
diff --git a/libgmp/Pkgfile b/libgmp/Pkgfile
index 913baebd..7dc42a56 100644
--- a/libgmp/Pkgfile
+++ b/libgmp/Pkgfile
@@ -4,8 +4,9 @@
name=libgmp
version=5.1.2
-release=1
-source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz)
+release=2
+source=(ftp://ftp.gmplib.org/pub/gmp-$version/gmp-$version.tar.xz \
+ gmp.h)
build() {
cd gmp-$version
@@ -14,5 +15,7 @@ build() {
--build=x86_64-unknown-linux-gnu
make
make DESTDIR=$PKG install
+ mv $PKG/usr/include/gmp{,-64}.h
+ cp $SRC/gmp.h $PKG/usr/include/
rm -r $PKG/usr/share
}
diff --git a/libgmp/gmp.h b/libgmp/gmp.h
new file mode 100644
index 00000000..da84168b
--- /dev/null
+++ b/libgmp/gmp.h
@@ -0,0 +1,16 @@
+/* gmp.h stub */
+
+#ifndef __STUB__GMP_H__
+#define __STUB__GMP_H__
+
+#if defined(__x86_64__) || \
+ defined(__sparc64__) || \
+ defined(__arch64__) || \
+ defined(__powerpc64__) || \
+ defined(__s390x__)
+#include "gmp-64.h"
+#else
+#include "gmp-32.h"
+#endif
+
+#endif \ No newline at end of file

Generated by cgit