libffi: update to 3.0.9
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 30 Sep 2014 21:49:51 +0000 (00:49 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 30 Sep 2014 21:49:51 +0000 (00:49 +0300)
recipes/libffi/libffi-native_2.0+gcc4.3.2.bb [deleted file]
recipes/libffi/libffi.inc [new file with mode: 0644]
recipes/libffi/libffi_3.0.9.bb [new file with mode: 0644]

diff --git a/recipes/libffi/libffi-native_2.0+gcc4.3.2.bb b/recipes/libffi/libffi-native_2.0+gcc4.3.2.bb
deleted file mode 100644 (file)
index f0859e9..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-require libffi_${PV}.bb
-
-inherit native
-
-EXTRA_OECONF = "--with-gnu-ld \
-                --enable-shared \
-                --enable-target-optspace \
-                --enable-languages=c,c++,f77 \
-                --enable-threads=posix \
-                --disable-multilib \
-                --enable-c99 \
-                --enable-long-long \
-                --enable-symvers=gnu \
-                --program-prefix=${TARGET_PREFIX} \
-                ${EXTRA_OECONF_PATHS}"
-
-ffi_include = "ffi.h ffitarget.h"
-
-install_libffi_headers() {
-       :
-}
-
-do_stage () {
-       oe_libinstall -so -C .libs libffi ${STAGING_LIBDIR}
-
-       mkdir -p ${STAGING_INCDIR}/
-       for i in ${ffi_include}; do
-               install -m 0644 include/$i ${STAGING_INCDIR}/
-       done
-}
diff --git a/recipes/libffi/libffi.inc b/recipes/libffi/libffi.inc
new file mode 100644 (file)
index 0000000..87c9aea
--- /dev/null
@@ -0,0 +1,12 @@
+SRC_URI = "ftp://sourceware.org/pub/libffi/${BPN}-${PV}.tar.gz"
+LICENSE = "MIT"
+
+inherit autotools
+
+do_install_append() {
+       install -d ${D}${includedir}
+       mv ${D}${libdir}/libffi-${PV}/include/* ${D}${includedir}/ || true
+}
+
+BBCLASSEXTEND = "native"
+
diff --git a/recipes/libffi/libffi_3.0.9.bb b/recipes/libffi/libffi_3.0.9.bb
new file mode 100644 (file)
index 0000000..434dc8b
--- /dev/null
@@ -0,0 +1,5 @@
+require libffi.inc
+
+SRC_URI[md5sum] = "1f300a7a7f975d4046f51c3022fa5ff1"
+SRC_URI[sha256sum] = "589d25152318bc780cd8919b14670793f4971d9838dab46ed38c32b3ee92c452"
+