source: packages/libs/libffi/Makefile @ 15247

Last change on this file since 15247 was 15247, checked in by nico, 8 years ago

[packages] remove 'svn:keywords' property on /packages as well, not needed anymore after [15244]

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libffi
11PKG_VERSION:=3.0.8
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/
16PKG_MD5SUM:=188a4f79fdac2310044b44b7d3918ef9
17PKG_FIXUP:=libtool
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/libffi
23  SECTION:=libs
24  CATEGORY:=Libraries
25  TITLE:=libffi
26  DEPENDS:=@!avr32
27  URL:=http://sourceware.org/libffi/
28endef
29
30define Package/libffi/description
31The libffi library provides a portable, high level programming interface to
32various calling conventions. This allows a programmer to call any function
33specified by a call interface description at run-time.
34
35FFI stands for Foreign Function Interface. A foreign function interface is the
36popular name for the interface that allows code written in one language to call
37code written in another language. The libffi library really only provides the
38lowest, machine dependent layer of a fully featured foreign function interface.
39A layer must exist above libffi that handles type conversions for values passed
40between the two languages.
41endef
42
43define Build/InstallDev
44        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
45        $(CP) \
46                $(PKG_INSTALL_DIR)/usr/lib/libffi.{so*,a,la} \
47                $(1)/usr/lib/
48        $(INSTALL_DATA) \
49                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
50                $(1)/usr/lib/pkgconfig/
51
52        $(INSTALL_DIR) $(1)/usr/include
53        $(INSTALL_DATA) \
54                $(PKG_INSTALL_DIR)/usr/lib/libffi-3.0.8/include/*.h \
55                $(1)/usr/include/
56endef
57
58define Package/libffi/install
59        $(INSTALL_DIR) $(1)/usr/lib
60        $(CP) \
61                $(PKG_INSTALL_DIR)/usr/lib/libffi.so* \
62                $(1)/usr/lib/
63endef
64
65$(eval $(call BuildPackage,libffi))
Note: See TracBrowser for help on using the repository browser.