blob: cfd469979300de5a8913f306f142fe34a15d79ea (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Daniel Bermond <dbermond@archlinux.org>
_android_arch=x86
pkgname=android-${_android_arch}-libvpl
pkgver=2.13.0
pkgrel=1
arch=('any')
pkgdesc="Intel Video Processing Library (Android ${_android_arch})"
url='https://intel.github.io/libvpl/'
license=('MIT')
depends=("android-${_android_arch}-libdrm"
"android-${_android_arch}-libva"
"android-${_android_arch}-libx11")
makedepends=('android-cmake'
"android-${_android_arch}-libpciaccess")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/intel/libvpl/archive/v${pkgver}/libvpl-${pkgver}.tar.gz")
md5sums=('c423c877260dba129772d4e2059386e4')
build() {
cd "${srcdir}/libvpl-${pkgver}"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -DNDEBUG"
export CXXFLAGS="${CXXFLAGS} -DNDEBUG"
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DCMAKE_INSTALL_SYSCONFDIR="${ANDROID_PREFIX_ETC}" \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TOOLS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DINSTALL_EXAMPLE_CODE=OFF \
-DTOOLS_ENABLE_OPENCL=OFF \
-Wno-dev
make -C build-shared $MAKEFLAGS
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DCMAKE_INSTALL_SYSCONFDIR="${ANDROID_PREFIX_ETC}" \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TOOLS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DINSTALL_EXAMPLE_CODE=OFF \
-DTOOLS_ENABLE_OPENCL=OFF \
-Wno-dev
make -C build-static $MAKEFLAGS
}
package() {
cd "${srcdir}/libvpl-${pkgver}"
source android-env ${_android_arch}
make -C build-shared DESTDIR="${pkgdir}" install
make -C build-static DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|