libffi has not been ported to avr32 yet
[openwrt/svn-archive/archive.git] / libs / libffi-sable / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libffi-sable
12 PKG_VERSION:=3325
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://sablevm.org/download/snapshot/2005-01-21/
17 PKG_MD5SUM:=0c32eaaea0269c5fbe156fcd0be3e5bd
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libffi-sable
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Foreign Function Interface library (for sablevm)
28 DEPENDS:=@!TARGET_avr32
29 URL:=http://sources.redhat.com/libffi/
30 endef
31
32 define Package/libffi-sable/description
33 The libffi library provides a portable, high level programming
34 interface to various calling conventions. This allows a programmer to
35 call any function specified by a call interface description at run
36 time.
37 endef
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/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Build/InstallDev
54 mkdir -p $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(1)/usr/include/
56 mkdir -p $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(1)/usr/lib/
58 endef
59
60 define Package/libffi-sable/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libffi-sable))