aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openimageio
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-03-28 13:03:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-28 13:11:27 +0000
commit98af2a38e50e6d7e1cc10e448e5472a7a194dad3 (patch)
tree4a98e7141882c77247b9ef352fa85c3b3b608b6c /testing/openimageio
parent2a29c3ffced93103ddce0ae621a43caf8c95ae2d (diff)
downloadaports-98af2a38e50e6d7e1cc10e448e5472a7a194dad3.tar.bz2
aports-98af2a38e50e6d7e1cc10e448e5472a7a194dad3.tar.xz
testing/openimageio: use qt5 and python2
The python3 cmake flags seems to be removed. Use only python2 for now
Diffstat (limited to 'testing/openimageio')
-rw-r--r--testing/openimageio/APKBUILD25
1 files changed, 9 insertions, 16 deletions
diff --git a/testing/openimageio/APKBUILD b/testing/openimageio/APKBUILD
index bc103a6a2b..0e0d3e246d 100644
--- a/testing/openimageio/APKBUILD
+++ b/testing/openimageio/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Mark Riedesel <mark@klowner.com>
pkgname=openimageio
pkgver=1.8.9
-pkgrel=0
+pkgrel=1
pkgdesc="Image I/O library supporting a multitude of image formats"
url="https://sites.google.com/site/openimageio/"
arch="all"
@@ -10,11 +10,11 @@ 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 jpeg-dev libpng-dev tiff-dev
- glew-dev python2-dev>=2.6 python3-dev openexr-dev ffmpeg-dev
- libraw-dev libwebp-dev freetype-dev qt-dev mesa-dev libressl-dev
+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 py3-$pkgname:_python $pkgname-dev $pkgname-doc $pkgname-tools"
+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"
@@ -26,12 +26,10 @@ build() {
cmake .. \
-DUSE_OPENSSL=ON \
-DUSE_PYTHON=ON \
- -DUSE_PYTHON3=ON \
-DUSE_NUKE=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_RPATH=ON \
- -DPYLIB_INSTALL_DIR="$(_pysitepackages python2)" \
- -DPYLIB3_INSTALL_DIR="$(_pysitepackages python3)" \
-DOIIO_BUILD_TESTS=OFF \
-DOIIO_BUILD_TOOLS=ON \
-DINSTALL_FONTS=OFF \
@@ -41,7 +39,7 @@ build() {
package() {
cd "$builddir"/build
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
tools() {
@@ -53,16 +51,11 @@ tools() {
_python() {
local pyver="${subpkgname:2:1}"
- local pypath="$(_pysitepackages python$pyver)"
pkgdesc="Python $pyver bindings for OpenImageIO image I/O library"
depends="python$pyver"
- mkdir -p "$subpkgdir"$pypath
- mv "$pkgdir"$pypath/* "$subpkgdir"$pypath/
-}
-
-_pysitepackages() {
- $1 -c "import site; print(site.getsitepackages()[0])"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python$pyver* "$subpkgdir"/usr/lib/
}
sha512sums="300eab0d2e7277c46550339d72af59b3ab2232d296b4d46808575015075cdbb9dd911e9b335c0d10bf6d95ebde907240af0f4828d422aca091f82491693dfef3 openimageio-1.8.9.tar.gz"