summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-13 16:17:44 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 10:22:52 -0300
commit53e40a641da67d90754c02053fd8367eaaea27df (patch)
tree82431ae10658070cffe8ded2cf9508fa1712b21f /libre
parent0a7a56e0e5954a3414e0a7763581949edcc20c8f (diff)
downloadabslibre-53e40a641da67d90754c02053fd8367eaaea27df.tar.gz
abslibre-53e40a641da67d90754c02053fd8367eaaea27df.tar.bz2
abslibre-53e40a641da67d90754c02053fd8367eaaea27df.zip
libffi-static: add new package to [libre]
Diffstat (limited to 'libre')
-rw-r--r--libre/libffi-static/0001-Fix-paths-in-libffi.pc.in.patch41
-rw-r--r--libre/libffi-static/PKGBUILD36
2 files changed, 77 insertions, 0 deletions
diff --git a/libre/libffi-static/0001-Fix-paths-in-libffi.pc.in.patch b/libre/libffi-static/0001-Fix-paths-in-libffi.pc.in.patch
new file mode 100644
index 000000000..a4860a400
--- /dev/null
+++ b/libre/libffi-static/0001-Fix-paths-in-libffi.pc.in.patch
@@ -0,0 +1,41 @@
+From ad0d1d239afc7ad09203847793dcc020856d1035 Mon Sep 17 00:00:00 2001
+From: Samuli Suominen <ssuominen@gentoo.org>
+Date: Thu, 12 Jun 2014 06:30:21 -0400
+Subject: [PATCH] Fix paths in libffi.pc.in
+
+---
+ configure.ac | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 4f7fe3f..bbc1a9d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -590,11 +590,11 @@ AC_ARG_ENABLE(purify-safety,
+ if test "x$GCC" = "xyes"; then
+ if test -n "$with_cross_host" &&
+ test x"$with_cross_host" != x"no"; then
+- toolexecdir='$(exec_prefix)/$(target_alias)'
+- toolexeclibdir='$(toolexecdir)/lib'
++ toolexecdir="${exec_prefix}"/'$(target_alias)'
++ toolexeclibdir="${toolexecdir}"/lib
+ else
+- toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
+- toolexeclibdir='$(libdir)'
++ toolexecdir="${libdir}"/gcc-lib/'$(target_alias)'
++ toolexeclibdir="${libdir}"
+ fi
+ multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
+ case $multi_os_directory in
+@@ -603,7 +603,7 @@ if test "x$GCC" = "xyes"; then
+ esac
+ AC_SUBST(toolexecdir)
+ else
+- toolexeclibdir='$(libdir)'
++ toolexeclibdir="${libdir}"
+ fi
+ AC_SUBST(toolexeclibdir)
+
+--
+2.0.0
+
diff --git a/libre/libffi-static/PKGBUILD b/libre/libffi-static/PKGBUILD
new file mode 100644
index 000000000..895b176d7
--- /dev/null
+++ b/libre/libffi-static/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libffi
+
+_pkgname=libffi
+pkgname=libffi-static
+pkgver=3.2.1
+pkgrel=1
+pkgdesc='Portable foreign function interface library (static libraries only)'
+arch=('i686' 'x86_64' 'armv7h')
+url='http://sourceware.org/libffi/'
+license=('MIT')
+depends=('libffi')
+checkdepends=('dejagnu')
+options=('staticlibs')
+source=(ftp://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
+sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6')
+
+build() {
+ cd $_pkgname-$pkgver
+ ./configure --prefix=/usr --enable-static \
+ --enable-pax_emutramp
+ make
+}
+
+check() {
+ make -C $_pkgname-$pkgver check
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # remove unused files
+ rm -vr ${pkgdir}/usr/{lib/{libffi-${pkgver},pkgconfig},share}
+ rm -v ${pkgdir}/usr/lib/libffi.so*
+}