diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/openimageio | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/openimageio')
-rw-r--r-- | community/openimageio/PKGBUILD | 44 | ||||
-rw-r--r-- | community/openimageio/fix32bit-fail.patch | 13 |
2 files changed, 57 insertions, 0 deletions
diff --git a/community/openimageio/PKGBUILD b/community/openimageio/PKGBUILD new file mode 100644 index 000000000..fb8d89490 --- /dev/null +++ b/community/openimageio/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 94899 2013-08-01 06:55:22Z bpiotrowski $ +# Contributor: SpepS <dreamspepser at yahoo dot it> +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> + +pkgname=openimageio +pkgver=1.2.0 +pkgrel=2 +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 |