blob: 7fe7178fed034a5cfd579302c433b67a459e91ef (
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
|
# Contributor: Mark Riedesel <mark@klowner.com>
# Maintainer: Mark Riedesel <mark@klowner.com>
pkgname=openimageio
pkgver=1.8.9
pkgrel=2
pkgdesc="Image I/O library supporting a multitude of image formats"
url="https://sites.google.com/site/openimageio/"
arch="all"
license="BSD"
depends=""
# NOTE: OpenColorIO and OpenImageIO are cross dependent. If an ABI incompatible
# update is done in one, the other also needs to be rebuilt.
makedepends="cmake giflib-dev zlib-dev boost-dev libjpeg-turbo-dev libpng-dev tiff-dev
glew-dev python2-dev>=2.6 openexr-dev ffmpeg-dev
libraw-dev libwebp-dev freetype-dev qt5-qtbase-dev mesa-dev libressl-dev
jasper-dev opencolorio-dev"
subpackages="py2-$pkgname:_python $pkgname-dev $pkgname-doc $pkgname-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/Release-${pkgver}.tar.gz
"
builddir="$srcdir/oiio-Release-$pkgver"
build() {
cd "$builddir"
mkdir build && cd build
cmake .. \
-DUSE_OPENSSL=ON \
-DUSE_PYTHON=ON \
-DUSE_NUKE=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_RPATH=ON \
-DOIIO_BUILD_TESTS=OFF \
-DOIIO_BUILD_TOOLS=ON \
-DINSTALL_FONTS=OFF \
|| return 1
make
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
}
tools() {
pkgdesc="Tools for manipulating a multitude of image formats"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
_python() {
local pyver="${subpkgname:2:1}"
pkgdesc="Python $pyver bindings for OpenImageIO image I/O library"
depends="python$pyver"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python$pyver* "$subpkgdir"/usr/lib/
}
sha512sums="300eab0d2e7277c46550339d72af59b3ab2232d296b4d46808575015075cdbb9dd911e9b335c0d10bf6d95ebde907240af0f4828d422aca091f82491693dfef3 openimageio-1.8.9.tar.gz"
|