blob: 313af2e56db01dc288938f9ea04caf28ae69b46d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libffi
pkgver=3.2.1
pkgrel=4
pkgdesc="A portable, high level programming interface to various calling conventions."
url="http://sourceware.org/libffi"
arch="all"
license="MIT"
depends=
makedepends="texinfo"
# linux-headers is needed for MIPS atleast
makedepends_host="linux-headers"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://sourceware.org/pub/$pkgname/$pkgname-$pkgver.tar.gz
gnu-linux-define.patch
pax-dlmmap.patch
"
builddir="$srcdir"/$pkgname-$pkgver
build () {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-pax_emutramp \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR=""$pkgdir"" install || return 1
install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname"
install -m644 LICENSE ""$pkgdir"/usr/share/licenses/$pkgname/" || return 1
# fix location for headers
# see also: https://github.com/libffi/libffi/issues/24
mkdir -p "$pkgdir"/usr/include/
mv "$pkgdir"/usr/lib/libffi-$pkgver/include/*.h \
"$pkgdir"/usr/include/ || return 1
rmdir "$pkgdir"/usr/lib/libffi-$pkgver/include || true
sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \
"$pkgdir"/usr/lib/pkgconfig/libffi.pc
}
sha512sums="980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 libffi-3.2.1.tar.gz
264af568ae5388d50f647f891a406945c73cc358692266f65ad341787c0bf5f6bf31203b86c39fa1b338101c1a6d2f4fec60f95a90d379951ff5153f8f9e178f gnu-linux-define.patch
72486b389db16055ae4d7d33ba0cb05840537e28fe7a86aa89e2cb922592125d99c18c26c5df7ffde6282742e79f2b9126353e58b58f091f0486589e14dd6474 pax-dlmmap.patch"
|