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.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=libffi-sable
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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libffi-sable
28 TITLE
:=Foreign Function Interface library
(for sablevm
)
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
\\\
34 URL
:=http
://sources.redhat.com
/libffi
/
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 mkdir
-p
$(STAGING_DIR
)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ffi
{,target
}.h
$(STAGING_DIR
)/usr
/include/
54 mkdir
-p
$(STAGING_DIR
)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
58 define Build
/UninstallDev
60 $(STAGING_DIR
)/usr
/include/ffi
{,target
}.h \
61 $(STAGING_DIR
)/usr
/lib
/libffi.
{a
,so
*}
64 define Package
/libffi-sable
/install
65 install -d
-m0755
$(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libffi.so.
* $(1)/usr
/lib
/
69 $(eval
$(call BuildPackage
,libffi-sable
))