CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libgmp: updated to 6.0.0a
authorVictor Martinez <pitillo@ono.com>
Mon, 29 Sep 2014 13:23:32 +0000 (13:23 +0000)
committerVictor Martinez <pitillo@ono.com>
Mon, 29 Sep 2014 13:23:32 +0000 (13:23 +0000)
libgmp/.footprint
libgmp/.md5sum
libgmp/Pkgfile
libgmp/gmp.h [new file with mode: 0644]

index 74ea801aa74cf09431be2b6a3a7168b17dafb02e..4182d088437e1fca7c467cd407daf5f1fd2fdf74 100644 (file)
@@ -1,15 +1,16 @@
 drwxr-xr-x     root/root       usr/
 drwxr-xr-x     root/root       usr/include/
+-rw-r--r--     root/root       usr/include/gmp-32.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/
 -rw-r--r--     root/root       usr/lib/libgmp.a
 -rwxr-xr-x     root/root       usr/lib/libgmp.la
-lrwxrwxrwx     root/root       usr/lib/libgmp.so -> libgmp.so.10.1.2
-lrwxrwxrwx     root/root       usr/lib/libgmp.so.10 -> libgmp.so.10.1.2
--rwxr-xr-x     root/root       usr/lib/libgmp.so.10.1.2
+lrwxrwxrwx     root/root       usr/lib/libgmp.so -> libgmp.so.10.2.0
+lrwxrwxrwx     root/root       usr/lib/libgmp.so.10 -> libgmp.so.10.2.0
+-rwxr-xr-x     root/root       usr/lib/libgmp.so.10.2.0
 -rw-r--r--     root/root       usr/lib/libgmpxx.a
 -rwxr-xr-x     root/root       usr/lib/libgmpxx.la
-lrwxrwxrwx     root/root       usr/lib/libgmpxx.so -> libgmpxx.so.4.3.2
-lrwxrwxrwx     root/root       usr/lib/libgmpxx.so.4 -> libgmpxx.so.4.3.2
--rwxr-xr-x     root/root       usr/lib/libgmpxx.so.4.3.2
+lrwxrwxrwx     root/root       usr/lib/libgmpxx.so -> libgmpxx.so.4.4.0
+lrwxrwxrwx     root/root       usr/lib/libgmpxx.so.4 -> libgmpxx.so.4.4.0
+-rwxr-xr-x     root/root       usr/lib/libgmpxx.so.4.4.0
index f023fc3da566b84134405aaea016313842e14fe0..b232e77c1daf8246a20e9e8f066bf59f8a367626 100644 (file)
@@ -1 +1,2 @@
-06fe2ca164221c59ce74867155cfc1ac  gmp-5.1.2.tar.xz
+1e6da4e434553d2811437aa42c7f7c76  gmp-6.0.0a.tar.xz
+daeab39b836818ac780974b146ea7e4f  gmp.h
index e0ca8e5b02fbb28b37a27e1e7f5639d7db9e914a..124712a32e8c2461e34a76841c52160c342cd3ad 100644 (file)
@@ -5,17 +5,20 @@
 # Depends on:
 
 name=libgmp
-version=5.1.2
+version=6.0.0a
 release=1
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.xz)
+source=(ftp://ftp.gmplib.org/pub/gmp-${version%a}/gmp-$version.tar.xz \
+        gmp.h)
 
 build() {
-  cd gmp-$version
+  cd gmp-${version%a}
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --enable-cxx
   make
   make DESTDIR=$PKG install
+  mv $PKG/usr/include/gmp{,-32}.h
+  install -m 0644 $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 (file)
index 0000000..be48ef6
--- /dev/null
@@ -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