summaryrefslogtreecommitdiff
path: root/community/openimageio
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/openimageio
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/openimageio')
-rw-r--r--community/openimageio/PKGBUILD44
-rw-r--r--community/openimageio/fix32bit-fail.patch13
2 files changed, 57 insertions, 0 deletions
diff --git a/community/openimageio/PKGBUILD b/community/openimageio/PKGBUILD
new file mode 100644
index 000000000..4a8953754
--- /dev/null
+++ b/community/openimageio/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 94036 2013-07-13 12:34:57Z svenstaro $
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=openimageio
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="A library for reading and writing images, including classes, utilities, and applications"
+arch=(i686 x86_64)
+url="http://www.openimageio.org/"
+license=('custom')
+depends=('openexr' 'boost-libs' 'jasper' 'glew' 'libtiff' 'opencolorio' 'intel-tbb')
+makedepends=('cmake' 'qt4' 'python2' 'boost' 'mesa')
+optdepends=('qt4: iv image viewer'
+ 'python2: bindings support')
+source=(https://github.com/OpenImageIO/oiio/tarball/Release-$pkgver)
+md5sums=('8738dd9b24fc4f0cb3eebb094347104a')
+
+build() {
+ cd "$srcdir"/$_pkgname*
+
+ cd src
+
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPYLIB_INSTALL_DIR=lib/python2.7/site-packages \
+ -DUSE_EXTERNAL_TBB=ON \
+ -DOIIO_BUILD_TESTS=OFF \
+ ..
+ make
+}
+
+package() {
+ cd "$srcdir"/$_pkgname*/src/build
+
+ make DESTDIR="$pkgdir" install
+
+ # license
+ cd ../..
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/community/openimageio/fix32bit-fail.patch b/community/openimageio/fix32bit-fail.patch
new file mode 100644
index 000000000..5d9bbbe36
--- /dev/null
+++ b/community/openimageio/fix32bit-fail.patch
@@ -0,0 +1,13 @@
+--- orig/src/libutil/SHA1.cpp 2012-11-17 01:02:42.000000000 +0200
++++ fixed/src/libutil/SHA1.cpp 2012-12-14 14:37:37.552042793 +0200
+@@ -8,9 +8,9 @@
+
+ // If compiling with MFC, you might want to add #include "StdAfx.h"
+
++#include "SHA1.h"
+ #include "hash.h"
+ #include "dassert.h"
+-#include "SHA1.h"
+
+ #ifdef SHA1_UTILITY_FUNCTIONS
+ #define SHA1_MAX_FILE_BUFFER 8000