summaryrefslogtreecommitdiff
path: root/package/libffi
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/libffi
Initial import
Diffstat (limited to 'package/libffi')
-rw-r--r--package/libffi/Config.in12
-rw-r--r--package/libffi/Makefile26
-rw-r--r--package/libffi/ipkg/libffi.control4
-rw-r--r--package/libffi/patches/patch-Makefile_am11
-rw-r--r--package/libffi/patches/patch-include_Makefile_am10
5 files changed, 63 insertions, 0 deletions
diff --git a/package/libffi/Config.in b/package/libffi/Config.in
new file mode 100644
index 000000000..2186062ad
--- /dev/null
+++ b/package/libffi/Config.in
@@ -0,0 +1,12 @@
+config ADK_PACKAGE_LIBFFI
+ prompt "libffi.......................... Foreign Function Interface library"
+ tristate
+ default n
+ help
+ 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.
+
+ http://sources.redhat.com/libffi/
+
diff --git a/package/libffi/Makefile b/package/libffi/Makefile
new file mode 100644
index 000000000..83c03b2d9
--- /dev/null
+++ b/package/libffi/Makefile
@@ -0,0 +1,26 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= libffi
+PKG_VERSION:= 3.0.6
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 8994a7e0e8baeedf63e3d0d94d75ac68
+MASTER_SITES:= ftp://sourceware.org/pub/libffi/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBFFI,libffi,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= autotool gnu
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBFFI}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libffi.so.* ${IDIR_LIBFFI}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libffi/ipkg/libffi.control b/package/libffi/ipkg/libffi.control
new file mode 100644
index 000000000..7e52b9cad
--- /dev/null
+++ b/package/libffi/ipkg/libffi.control
@@ -0,0 +1,4 @@
+Package: libffi
+Priority: optional
+Section: libs
+Description: Foreign Function Interface library
diff --git a/package/libffi/patches/patch-Makefile_am b/package/libffi/patches/patch-Makefile_am
new file mode 100644
index 000000000..d53ba2a76
--- /dev/null
+++ b/package/libffi/patches/patch-Makefile_am
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libffi-3.0.6.orig/Makefile.am 2008-02-21 14:36:18.000000000 +0100
++++ libffi-3.0.6/Makefile.am 2008-12-08 02:27:27.000000000 +0100
+@@ -68,6 +68,7 @@ AM_MAKEFLAGS = \
+ "infodir=$(infodir)" \
+ "libdir=$(libdir)" \
+ "prefix=$(prefix)" \
++ "includesdir=$(prefix)/include" \
+ "AR=$(AR)" \
+ "AS=$(AS)" \
+ "CC=$(CC)" \
diff --git a/package/libffi/patches/patch-include_Makefile_am b/package/libffi/patches/patch-include_Makefile_am
new file mode 100644
index 000000000..0b6ad70ab
--- /dev/null
+++ b/package/libffi/patches/patch-include_Makefile_am
@@ -0,0 +1,10 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- libffi-3.0.6.orig/include/Makefile.am 2008-02-14 16:37:00.000000000 +0100
++++ libffi-3.0.6/include/Makefile.am 2008-12-08 02:20:25.000000000 +0100
+@@ -5,5 +5,5 @@ AUTOMAKE_OPTIONS=foreign
+ DISTCLEANFILES=ffitarget.h
+ EXTRA_DIST=ffi.h.in ffi_common.h
+
+-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
++includesdir = $(includesdir)
+ nodist_includes_HEADERS = ffi.h ffitarget.h