2 # Copyright (C) 2006 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
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/libffi-sable
23 TITLE
:=Foreign Function Interface library
(for sablevm
)
24 DEPENDS
:=@
!TARGET_avr32
25 URL
:=http
://sources.redhat.com
/libffi
/
28 define Package
/libffi-sable
/description
29 The libffi library provides a portable
, high level programming
30 interface to various calling conventions. This allows a programmer to
31 call any function specified by a call interface description at run
35 TARGET_CFLAGS
+= $(FPIC
)
37 define Build
/Configure
38 $(call Build
/Configure
/Default
, \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ffi
{,target
}.h
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.
{a
,so
*} $(1)/usr
/lib
/
58 define Package
/libffi-sable
/install
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.so.
* $(1)/usr
/lib
/
63 $(eval
$(call BuildPackage
,libffi-sable
))