2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-03 09:37:19 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libffi-sable
|
|
|
|
PKG_VERSION:=3325
|
|
|
|
PKG_RELEASE:=3
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://sablevm.org/download/snapshot/2005-01-21/
|
|
|
|
PKG_MD5SUM:=0c32eaaea0269c5fbe156fcd0be3e5bd
|
2006-08-03 09:37:19 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libffi-sable
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Foreign Function Interface library (for sablevm)
|
2008-08-05 19:38:58 +00:00
|
|
|
DEPENDS:=@!TARGET_avr32
|
2006-08-03 09:37:19 +00:00
|
|
|
URL:=http://sources.redhat.com/libffi/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libffi-sable/description
|
|
|
|
The libffi library provides a portable, high level programming
|
|
|
|
interface to various calling conventions. This allows a programmer to
|
|
|
|
call any function specified by a call interface description at run
|
|
|
|
time.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-08-03 09:37:19 +00:00
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-debug \
|
|
|
|
)
|
2006-08-03 09:37:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(1)/usr/lib/
|
2006-08-03 09:37:19 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/libffi-sable/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-08-03 09:37:19 +00:00
|
|
|
$(eval $(call BuildPackage,libffi-sable))
|