libffi-3.2.1.recipe revision ab5bcc9b
1SUMMARY="A portable, high level programming interface"
2DESCRIPTION="Libffi is a foreign function interface library which gives its \
3user a C programming language interface used to call natively compiled \
4functions. Libffi is typically used as a bridging technology between compiled \
5and interpreted language implementations. It can also be used to implement \
6plugins."
7HOMEPAGE="http://sourceware.org/libffi"
8COPYRIGHT="1996-2013 Anthony Green, Red Hat, Inc and others."
9LICENSE="MIT"
10REVISION="4"
11SOURCE_URI="ftp://sourceware.org/pub/libffi/libffi-$portVersion.tar.gz"
12CHECKSUM_SHA256="d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37"
13PATCHES="libffi-$portVersion.patchset"
14
15ARCHITECTURES="!x86_gcc2 x86 x86_64 sparc"
16SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
17
18PROVIDES="
19	libffi$secondaryArchSuffix = $portVersion compat >= 3
20	lib:libffi$secondaryArchSuffix = 6.0.4 compat >= 6
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	"
25
26PROVIDES_devel="
27	libffi${secondaryArchSuffix}_devel = $portVersion
28	devel:libffi$secondaryArchSuffix = 6.0.4 compat >= 6
29	"
30REQUIRES_devel="
31	libffi$secondaryArchSuffix == $portVersion base
32	"
33
34BUILD_REQUIRES="
35	haiku${secondaryArchSuffix}_devel
36	"
37BUILD_PREREQUIRES="
38	cmd:awk
39	cmd:gcc$secondaryArchSuffix
40	cmd:make
41	"
42
43BUILD()
44{
45	runConfigure ./configure
46	make $jobArgs
47}
48
49INSTALL()
50{
51	make install
52
53	rm $libDir/libffi.la
54	mkdir -p $includeDir
55	mv -f $libDir/libffi-$portVersion/include/*.h* $includeDir
56	rm -rf $libDir/libffi-$portVersion
57
58	prepareInstalledDevelLibs libffi
59	fixPkgconfig
60
61	# devel package
62	packageEntries devel \
63		$developDir \
64		$documentationDir
65}
66