fdb823a6ed00576aac360297e8783724f31313c6
[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:=4
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_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libffi-sable
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Foreign Function Interface library (for sablevm)
26 DEPENDS:=@!TARGET_avr32
27 URL:=http://sources.redhat.com/libffi/
28 endef
29
30 define Package/libffi-sable/description
31 The libffi library provides a portable, high level programming
32 interface to various calling conventions. This allows a programmer to
33 call any function specified by a call interface description at run
34 time.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --enable-shared \
42 --enable-static \
43 --disable-debug \
44 )
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/libffi-sable/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libffi-sable))