f87914387d0065d1fbff5f899ecfe0cd43737e9e
[openwrt/svn-archive/archive.git] / libs / libffi-sable / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libffi-sable
11 PKG_VERSION:=3325
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://sablevm.org/download/snapshot/2005-01-21/
16 PKG_MD5SUM:=0c32eaaea0269c5fbe156fcd0be3e5bd
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libffi-sable
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Foreign Function Interface library (for sablevm)
27 DEPENDS:=@!TARGET_avr32
28 URL:=http://sources.redhat.com/libffi/
29 endef
30
31 define Package/libffi-sable/description
32 The libffi library provides a portable, high level programming
33 interface to various calling conventions. This allows a programmer to
34 call any function specified by a call interface description at run
35 time.
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --enable-shared \
43 --enable-static \
44 --disable-debug \
45 )
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(1)/usr/lib/
53 endef
54
55 define Package/libffi-sable/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libffi-sable))