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