source: packages/libs/libffi/Makefile @ 20111

Last change on this file since 20111 was 20111, checked in by nico, 6 years ago

[packages] libffi: update to v3.0.9, avr32 is now supported, don't ship dev shlib symlink, cleanup

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.9
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/
16PKG_MD5SUM:=1f300a7a7f975d4046f51c3022fa5ff1
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libffi
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=Foreign Function Interface (FFI) library
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        $(CP) \
49                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
50                $(1)/usr/lib/pkgconfig/
51
52        $(INSTALL_DIR) $(1)/usr/include
53        $(CP) \
54                $(PKG_INSTALL_DIR)/usr/lib/libffi-$(PKG_VERSION)/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.