2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=libffi-sable
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
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libffi-sable
26 TITLE
:=Foreign Function Interface library
(for sablevm
)
27 DEPENDS
:=@
!TARGET_avr32
28 URL
:=http
://sources.redhat.com
/libffi
/
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
38 TARGET_CFLAGS
+= $(FPIC
)
40 define Build
/Configure
41 $(call Build
/Configure
/Default
, \
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
/
55 define Package
/libffi-sable
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.so.
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,libffi-sable
))