Added libffi-3.0.8 build template.
--HG-- extra : convert_revision : 178efce294774a97a1ead92333e62ea1f7850786
This commit is contained in:
parent
de8d9e294f
commit
95d2cd5caf
5 changed files with 62 additions and 0 deletions
1
templates/libffi-devel
Symbolic link
1
templates/libffi-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libffi
|
2
templates/libffi/depends
Normal file
2
templates/libffi/depends
Normal file
|
@ -0,0 +1,2 @@
|
|||
abi_depends=">=3.0.8"
|
||||
api_depends="${abi_depends}"
|
18
templates/libffi/devel.template
Normal file
18
templates/libffi/devel.template
Normal file
|
@ -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
|
||||
}
|
11
templates/libffi/patches/fix_includedir_path.diff
Normal file
11
templates/libffi/patches/fix_includedir_path.diff
Normal file
|
@ -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
|
||||
|
30
templates/libffi/template
Normal file
30
templates/libffi/template
Normal file
|
@ -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 <xtraeme@gmail.com>"
|
||||
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
|
Loading…
Reference in a new issue