aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Riedesel <mark@klowner.com>2016-08-10 16:57:47 -0500
committerJakub Jirutka <jakub@jirutka.cz>2016-08-19 18:15:35 +0200
commit28e56bd5739b423156af7277f4e16190b376fbd9 (patch)
treeeb755f84cf1880bab2efd85990122bca303cc879
parent31a12917d27c848400f13bb7da2907823a583f52 (diff)
downloadaports-28e56bd5739b423156af7277f4e16190b376fbd9.tar.bz2
aports-28e56bd5739b423156af7277f4e16190b376fbd9.tar.xz
testing/openimageio: new aport
https://sites.google.com/site/openimageio/ Image I/O library supporting a multitude of image formats
-rw-r--r--testing/openimageio/APKBUILD73
-rw-r--r--testing/openimageio/nocpp-error.patch10
2 files changed, 83 insertions, 0 deletions
diff --git a/testing/openimageio/APKBUILD b/testing/openimageio/APKBUILD
new file mode 100644
index 0000000000..acfdd25db1
--- /dev/null
+++ b/testing/openimageio/APKBUILD
@@ -0,0 +1,73 @@
+# Contributor: Mark Riedesel <mark@klowner.com>
+# Maintainer: Mark Riedesel <mark@klowner.com>
+pkgname=openimageio
+pkgver=1.6.14
+pkgrel=0
+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 jpeg-dev libpng-dev tiff-dev
+ glew-dev python-dev>=2.6 python3-dev openexr-dev ffmpeg2.8-dev
+ libraw-dev libwebp-dev freetype-dev qt-dev mesa-dev openssl-dev
+ jasper-dev opencolorio-dev"
+subpackages="py2-$pkgname:_python py3-$pkgname:_python $pkgname-dev $pkgname-doc $pkgname-tools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/Release-${pkgver}.tar.gz
+ nocpp-error.patch"
+builddir="$srcdir/oiio-Release-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ mkdir build && cd build
+ cmake .. \
+ -DUSE_OPENSSL=ON \
+ -DUSE_PYTHON=ON \
+ -DUSE_PYTHON3=ON \
+ -DUSE_NUKE=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -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 \
+ || return 1
+ make
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+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}"
+ 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])"
+}
+
+md5sums="cd8af592f3c4223b3ac0d67d116beda9 openimageio-1.6.14.tar.gz
+6b8a08ac4de51207b43cf64d40ffff0f nocpp-error.patch"
+sha256sums="40a477a88426838d8ac8a2303b92861e39665ca4b00d4f4e40a31143c7ba2097 openimageio-1.6.14.tar.gz
+3278c66a99bc5aa8ef2d9811fc5f0f6803568b9554f6af057d322469ca60d10d nocpp-error.patch"
+sha512sums="2f4f219e7fa372fe6e41dfb4d4938ee990f99c1788856adfdd4e752393bd6f0d6928f72162d6147bcbe02df705fe96078ec790c7886f8513c82257e6264309e5 openimageio-1.6.14.tar.gz
+fc27840bc37d01badc81d6a1c49216f44370805f3f43184646a5d12879706a6358a41868d7938c13611f43a4bfc695fd1ef4d1baee3e9a926dc4629e4675fe68 nocpp-error.patch"
diff --git a/testing/openimageio/nocpp-error.patch b/testing/openimageio/nocpp-error.patch
new file mode 100644
index 0000000000..9101322186
--- /dev/null
+++ b/testing/openimageio/nocpp-error.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -55,6 +55,8 @@
+ endif ()
+ endif ()
+
++add_definitions("-Wno-error=cpp")
++
+ message (STATUS "CMAKE_CXX_COMPILER is ${CMAKE_CXX_COMPILER}")
+ message (STATUS "CMAKE_CXX_COMPILER_ID is ${CMAKE_CXX_COMPILER_ID}")