1 ################################################################################
5 ################################################################################
8 LIBFFI_SITE = ftp://sourceware.org/pub/libffi
10 LIBFFI_LICENSE_FILES = LICENSE
11 LIBFFI_INSTALL_STAGING = YES
12 LIBFFI_AUTORECONF = YES
14 # Move the headers to the usual location, and adjust the .pc file
16 define LIBFFI_MOVE_STAGING_HEADERS
17 mv $(STAGING_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(STAGING_DIR)/usr/include/
18 $(SED) '/^includedir.*/d' -e '/^Cflags:.*/d' \
19 $(STAGING_DIR)/usr/lib/pkgconfig/libffi.pc
20 rm -rf $(TARGET_DIR)/usr/lib/libffi-*
23 LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS
25 # Remove headers that are not at the usual location from the target
26 define LIBFFI_REMOVE_TARGET_HEADERS
27 $(RM) -rf $(TARGET_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)
30 LIBFFI_POST_INSTALL_TARGET_HOOKS += LIBFFI_REMOVE_TARGET_HEADERS
32 $(eval $(autotools-package))
33 $(eval $(host-autotools-package))