diff --git a/testing/libffi/build b/testing/libffi/build new file mode 100755 index 00000000..106ec3c4 --- /dev/null +++ b/testing/libffi/build @@ -0,0 +1,17 @@ +#!/bin/sh -e + +./configure \ + --prefix=/usr \ + --with-pic + +make +make DESTDIR="$1" install + +# Fix location for headers. +mkdir -p "$1/usr/include" +mv "$1/usr/lib/libffi-3.2.1/include/"*.h \ + "$1/usr/include" +rmdir "$1/usr/lib/libffi-3.2.1/include" + +sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \ + "$1/usr/lib/pkgconfig/libffi.pc" diff --git a/testing/libffi/checksums b/testing/libffi/checksums new file mode 100644 index 00000000..f6bb1830 --- /dev/null +++ b/testing/libffi/checksums @@ -0,0 +1 @@ +d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37 libffi-3.2.1.tar.gz diff --git a/testing/libffi/sources b/testing/libffi/sources new file mode 100644 index 00000000..12b6fbd7 --- /dev/null +++ b/testing/libffi/sources @@ -0,0 +1 @@ +ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz diff --git a/testing/libffi/version b/testing/libffi/version new file mode 100644 index 00000000..b7c90c2c --- /dev/null +++ b/testing/libffi/version @@ -0,0 +1 @@ +3.2.1 1