blob: ee21f1844bd30f0d8fb61469caf902c7cb4dfd54 (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-openexr
pkgver=3.2.4
pkgrel=2
arch=('any')
pkgdesc="A high dynamic-range image file format library (Android ${_android_arch})"
url='https://www.openexr.com/'
license=('BSD-3-Clause')
groups=(android-openexr)
depends=("android-${_android_arch}-imath"
"android-${_android_arch}-libdeflate")
makedepends=('android-cmake')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/openexr/openexr/archive/v${pkgver}/openexr-${pkgver}.tar.gz")
sha256sums=('81e6518f2c4656fdeaf18a018f135e96a96e7f66dbe1c1f05860dd94772176cc')
build() {
cd "${srcdir}/openexr-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DOPENEXR_TEST_LIBRARIES=OFF \
-DOPENEXR_TEST_PYTHON=OFF \
-DOPENEXR_TEST_TOOLS=OFF \
-DOPENEXR_BUILD_EXAMPLES=OFF \
-DOPENEXR_BUILD_TOOLS=OFF \
-DImath_DIR="${ANDROID_PREFIX_LIB}/cmake/Imath" \
-Dlibdeflate_DIR="${ANDROID_PREFIX_LIB}/cmake/libdeflate"
make -C build-shared $MAKEFLAGS
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DOPENEXR_TEST_LIBRARIES=OFF \
-DOPENEXR_TEST_PYTHON=OFF \
-DOPENEXR_TEST_TOOLS=OFF \
-DOPENEXR_BUILD_EXAMPLES=OFF \
-DOPENEXR_BUILD_TOOLS=OFF \
-DImath_DIR="${ANDROID_PREFIX_LIB}/cmake/Imath" \
-Dlibdeflate_DIR="${ANDROID_PREFIX_LIB}/cmake/libdeflate"
make -C build-static $MAKEFLAGS
}
package() {
cd "${srcdir}/openexr-${pkgver}"
source android-env ${_android_arch}
make -C build-shared DESTDIR="${pkgdir}" install
make -C build-static DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|