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
# 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
}
--- /dev/null
+/* 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