mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
libffi: update to 3.3
Remove autoreconf. autotools files are no longer patched. Add PKG_BUILD_PARALLEL for faster compilation. Removed upstreamed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
+21
-17
@@ -8,18 +8,18 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libffi
|
||||
PKG_VERSION:=3.2.1
|
||||
PKG_RELEASE:=4
|
||||
PKG_VERSION:=3.3
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/
|
||||
PKG_HASH:=d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
|
||||
PKG_SOURCE_URL:=https://sourceware.org/pub/libffi/
|
||||
PKG_HASH:=72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
@@ -46,6 +46,20 @@ A layer must exist above libffi that handles type conversions for values passed
|
||||
between the two languages.
|
||||
endef
|
||||
|
||||
HOST_CONFIGURE_ARGS += \
|
||||
--disable-debug \
|
||||
--disable-docs \
|
||||
--disable-multi-os-directory \
|
||||
--disable-raw-api \
|
||||
--disable-structs
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-debug \
|
||||
--disable-docs \
|
||||
--disable-multi-os-directory \
|
||||
--disable-raw-api \
|
||||
--disable-structs
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(CP) \
|
||||
@@ -54,11 +68,11 @@ define Build/InstallDev
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
||||
$(1)/usr/lib/pkgconfig/
|
||||
sed -i -e 's,includedir=.*,includedir=$$$${prefix}/include,' $(1)/usr/lib/pkgconfig/libffi.pc
|
||||
$(SED) 's,includedir=.*,includedir=$$$${prefix}/include,' $(1)/usr/lib/pkgconfig/libffi.pc
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)-$(PKG_VERSION)/include/*.h \
|
||||
$(PKG_INSTALL_DIR)/usr/include/*.h \
|
||||
$(1)/usr/include/
|
||||
endef
|
||||
|
||||
@@ -69,15 +83,5 @@ define Package/libffi/install
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
$(call Host/Install/Default)
|
||||
# Adjust host libffi headers ; the default rule does
|
||||
# not seem to install them to the proper include folder
|
||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
|
||||
$(CP) \
|
||||
$(STAGING_DIR_HOSTPKG)/lib/libffi-$(PKG_VERSION)/include/*.h \
|
||||
$(STAGING_DIR_HOSTPKG)/include
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
$(eval $(call BuildPackage,libffi))
|
||||
|
||||
Reference in New Issue
Block a user