2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/
16 PKG_MD5SUM:=188a4f79fdac2310044b44b7d3918ef9
20 include $(INCLUDE_DIR)/package.mk
27 URL:=http://sourceware.org/libffi/
30 define Package/libffi/description
31 The libffi library provides a portable, high level programming interface to
32 various calling conventions. This allows a programmer to call any function
33 specified by a call interface description at run-time.
35 FFI stands for Foreign Function Interface. A foreign function interface is the
36 popular name for the interface that allows code written in one language to call
37 code written in another language. The libffi library really only provides the
38 lowest, machine dependent layer of a fully featured foreign function interface.
39 A layer must exist above libffi that handles type conversions for values passed
40 between the two languages.
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
46 $(PKG_INSTALL_DIR)/usr/lib/libffi.{so*,a,la} \
49 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
50 $(1)/usr/lib/pkgconfig/
52 $(INSTALL_DIR) $(1)/usr/include
54 $(PKG_INSTALL_DIR)/usr/lib/libffi-3.0.8/include/*.h \
58 define Package/libffi/install
59 $(INSTALL_DIR) $(1)/usr/lib
61 $(PKG_INSTALL_DIR)/usr/lib/libffi.so* \
65 $(eval $(call BuildPackage,libffi))