aboutsummaryrefslogtreecommitdiff
path: root/package/libffi/libffi.mk
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-11-09 19:00:04 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-09 22:16:09 +0100
commit57cf454c61b67681a9bbae456e558c880006bf67 (patch)
treee27276eb5042c3aaf7846965bca9ec8c5c5bf9d4 /package/libffi/libffi.mk
parentca17e0c7a02298b0250cdc121bcacef0b58fffe1 (diff)
downloadbuildroot-57cf454c61b67681a9bbae456e558c880006bf67.tar.gz
buildroot-57cf454c61b67681a9bbae456e558c880006bf67.tar.bz2
libffi: bump to version 3.3-rc0
- Update site to github (for the time being, as 3.3-rc0 is a release candidate, it is not published on the official ftp) - Update third patch - Remove fourth and fifth patches (already in version) - Remove uneeded hooks, as public headers are now installed in the standard path since https://github.com/libffi/libffi/commit/982b89c01aca99c7bc229914fc1521f96930919b - New risc-v support: https://github.com/libffi/libffi/commit/3840d49aaa831d649b1597518a2903dfed0d57f3 Fixes: - http://autobuild.buildroot.org/results/3edf66362ea5a83291f19373e4b6f2e5cce98d7b Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/libffi/libffi.mk')
-rw-r--r--package/libffi/libffi.mk26
1 files changed, 2 insertions, 24 deletions
diff --git a/package/libffi/libffi.mk b/package/libffi/libffi.mk
index 32e01e9cd1..b21d12cbd4 100644
--- a/package/libffi/libffi.mk
+++ b/package/libffi/libffi.mk
@@ -4,34 +4,12 @@
#
################################################################################
-LIBFFI_VERSION = 3.2.1
-LIBFFI_SITE = ftp://sourceware.org/pub/libffi
+LIBFFI_VERSION = v3.3-rc0
+LIBFFI_SITE = $(call github,libffi,libffi,$(LIBFFI_VERSION))
LIBFFI_LICENSE = MIT
LIBFFI_LICENSE_FILES = LICENSE
LIBFFI_INSTALL_STAGING = YES
LIBFFI_AUTORECONF = YES
-# Move the headers to the usual location, and adjust the .pc file
-# accordingly.
-define LIBFFI_MOVE_HEADERS
- mv $(1)/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(1)/include/
- $(SED) '/^includedir.*/d' -e '/^Cflags:.*/d' \
- $(1)/lib/pkgconfig/libffi.pc
- rm -rf $(1)/lib/libffi-*
-endef
-
-LIBFFI_MOVE_STAGING_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(STAGING_DIR)/usr)
-LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS
-
-HOST_LIBFFI_MOVE_HOST_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(HOST_DIR))
-HOST_LIBFFI_POST_INSTALL_HOOKS += HOST_LIBFFI_MOVE_HOST_HEADERS
-
-# Remove headers that are not at the usual location from the target
-define LIBFFI_REMOVE_TARGET_HEADERS
- $(RM) -rf $(TARGET_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)
-endef
-
-LIBFFI_POST_INSTALL_TARGET_HOOKS += LIBFFI_REMOVE_TARGET_HEADERS
-
$(eval $(autotools-package))
$(eval $(host-autotools-package))