From 95d2cd5caf7665f2e1538bc4c2aea9fa2378a61f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 17 Nov 2009 03:38:03 +0100 Subject: [PATCH] Added libffi-3.0.8 build template. --HG-- extra : convert_revision : 178efce294774a97a1ead92333e62ea1f7850786 --- templates/libffi-devel | 1 + templates/libffi/depends | 2 ++ templates/libffi/devel.template | 18 +++++++++++ .../libffi/patches/fix_includedir_path.diff | 11 +++++++ templates/libffi/template | 30 +++++++++++++++++++ 5 files changed, 62 insertions(+) create mode 120000 templates/libffi-devel create mode 100644 templates/libffi/depends create mode 100644 templates/libffi/devel.template create mode 100644 templates/libffi/patches/fix_includedir_path.diff create mode 100644 templates/libffi/template diff --git a/templates/libffi-devel b/templates/libffi-devel new file mode 120000 index 00000000000..0dc1d097195 --- /dev/null +++ b/templates/libffi-devel @@ -0,0 +1 @@ +libffi \ No newline at end of file diff --git a/templates/libffi/depends b/templates/libffi/depends new file mode 100644 index 00000000000..bd50f167de9 --- /dev/null +++ b/templates/libffi/depends @@ -0,0 +1,2 @@ +abi_depends=">=3.0.8" +api_depends="${abi_depends}" diff --git a/templates/libffi/devel.template b/templates/libffi/devel.template new file mode 100644 index 00000000000..9f01e669216 --- /dev/null +++ b/templates/libffi/devel.template @@ -0,0 +1,18 @@ +# Template file for 'libffi-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libffi + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/templates/libffi/patches/fix_includedir_path.diff b/templates/libffi/patches/fix_includedir_path.diff new file mode 100644 index 00000000000..28314c0896e --- /dev/null +++ b/templates/libffi/patches/fix_includedir_path.diff @@ -0,0 +1,11 @@ +--- include/Makefile.in.orig 2009-11-17 03:20:27.967671016 +0100 ++++ include/Makefile.in 2009-11-17 03:21:20.354047994 +0100 +@@ -185,7 +185,7 @@ top_srcdir = @top_srcdir@ + AUTOMAKE_OPTIONS = foreign + DISTCLEANFILES = ffitarget.h + EXTRA_DIST = ffi.h.in ffi_common.h +-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include ++includesdir = @prefix@/include + nodist_includes_HEADERS = ffi.h ffitarget.h + all: all-am + diff --git a/templates/libffi/template b/templates/libffi/template new file mode 100644 index 00000000000..ebe4d0a737a --- /dev/null +++ b/templates/libffi/template @@ -0,0 +1,30 @@ +# Template file for 'libffi' +pkgname=libffi +version=3.0.8 +distfiles="ftp://sourceware.org/pub/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="Library supporting Foreign Function Interfaces" +maintainer="Juan RP " +checksum=2c7c5b88a68fb362262889ba25ef25dc27864b7bbf03547a8a36b8d567569406 +long_desc=" + 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. + + Some programs may not know at the time of compilation what arguments + are to be passed to a function. For instance, an interpreter may be + told at run-time about the number and types of arguments used to call + a given function. Libffi can be used in such programs to provide a + bridge from the interpreter program to compiled code. + + Ffi stands for Foreign Function Interface. A foreign function + interface is the popular name for the interface that allows code + written in one language to call code written in another language. + The libffi library really only provides the lowest, machine dependent + layer of a fully featured foreign function interface. A layer must + exist above libffi that handles type conversions for values passed + between the two languages." + +subpackages="devel" +Add_dependency full glibc +Add_dependency build texinfo