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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://sourceware.org
/pub
/libffi
/
17 PKG_MD5SUM
:=188a4f79fdac2310044b44b7d3918ef9
21 include $(INCLUDE_DIR
)/package.mk
28 URL
:=http
://sourceware.org
/libffi
/
31 define Package
/libffi
/description
32 The libffi library provides a portable
, high level programming interface to
33 various calling conventions. This allows a programmer to call any function
34 specified by a call interface description at run-time.
36 FFI stands for Foreign Function Interface. A foreign function interface is the
37 popular name for the interface that allows code written in one language to call
38 code written in another language. The libffi library really only provides the
39 lowest
, machine dependent layer of a fully featured foreign function interface.
40 A layer must exist above libffi that handles type conversions for values passed
41 between the two languages.
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
47 $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.
{so
*,a
,la
} \
50 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
51 $(1)/usr
/lib
/pkgconfig
/
53 $(INSTALL_DIR
) $(1)/usr
/include
55 $(PKG_INSTALL_DIR
)/usr
/lib
/libffi-3.0
.8/include/*.h \
59 define Package
/libffi
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.so
* \
66 $(eval
$(call BuildPackage
,libffi
))