blob: 17abe0b6a09824baa62ec93de8fa81871e0f43a4 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Bruno Pagani <archange@archlinux.org>
_android_arch=x86-64
pkgname=android-${_android_arch}-libfabric
pkgver=1.22.0
pkgrel=1
arch=('any')
pkgdesc="User-space API for OpenFabrics Interfaces (OFI) (Android ${_android_arch})"
url="https://ofiwg.github.io/libfabric/"
license=('GPL2')
groups=('android-libfabric')
depends=("android-${_android_arch}-numactl")
makedepends=("android-configure")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/ofiwg/libfabric/releases/download/v${pkgver}/libfabric-${pkgver}.tar.bz2"
'0001-Use-pthread_kill.patch'
'0002-Remove-macro.patch'
'0003-Remove-shmctl.patch'
'0004-Fix-osd.patch'
'0005-Fix-smr.patch')
sha256sums=('485e6cafa66c9e4f6aa688d2c9526e274c47fda3a783cf1dd8f7c69a07e2d5fe'
'4c9e4afc69b152d97505faeae12a29959ba092bd16e7455b0b624619a54f3368'
'9ddff13b067c035afd252829e53f8488228ae6d42ee6bf7786a572a0af17e690'
'e1592bece8eaec5c8f4fe9f0fb145cd7d8771653ca5cb3f144e6e731d30eb987'
'4c3344485f4971a32f71a7b665a0772e24cf5e653240c12dedd13fe9f9cf447b'
'212ae851eea73b5f1b0f6f560672ec183110481abbf91da6492e43be5b0ed509')
prepare() {
cd "${srcdir}/libfabric-${pkgver}"
source android-env ${_android_arch}
patch -Np1 -i ../0001-Use-pthread_kill.patch
patch -Np1 -i ../0002-Remove-macro.patch
patch -Np1 -i ../0004-Fix-osd.patch
patch -Np1 -i ../0005-Fix-smr.patch
if [ "${ANDROID_MINIMUM_PLATFORM}" -lt 26 ]; then
patch -Np1 -i ../0003-Remove-shmctl.patch
fi
autoreconf -fvi
# Force compile even if shm functions are no available.
sed -i 's|LIBS="-lpthread |LIBS=" |g' configure
sed -i 's|LIBS="-lrt |LIBS=" |g' configure
sed -i '/char shm_open ();/d' configure
sed -i '/char shm_open (void);/d' configure
sed -i '/return shm_open ();/d' configure
}
build() {
cd "${srcdir}/libfabric-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure \
--enable-shm=no
make $MAKEFLAGS
}
package() {
cd "${srcdir}/libfabric-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_BIN}"
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|