diff options
Diffstat (limited to 'community/openimageio')
-rw-r--r-- | community/openimageio/PKGBUILD | 19 | ||||
-rw-r--r-- | community/openimageio/fix32bit-fail.patch | 13 |
2 files changed, 26 insertions, 6 deletions
diff --git a/community/openimageio/PKGBUILD b/community/openimageio/PKGBUILD index 070f0c8cf..79422ba20 100644 --- a/community/openimageio/PKGBUILD +++ b/community/openimageio/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 78937 2012-10-27 23:45:06Z ebelanger $ +# $Id: PKGBUILD 83263 2013-01-28 16:49:50Z stephane $ # Contributor: SpepS <dreamspepser at yahoo dot it> # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> pkgname=openimageio -pkgver=1.0.9 -pkgrel=4 +pkgver=1.1.2 +pkgrel=2 pkgdesc="A library for reading and writing images, including classes, utilities, and applications." arch=(i686 x86_64) url="http://www.openimageio.org/" @@ -13,14 +13,21 @@ depends=('openexr' 'boost-libs' 'jasper' 'glew') makedepends=('cmake' 'qt' 'python2' 'boost' 'mesa') optdepends=('qt: iv image viewer' 'python2: bindings support') -source=(https://github.com/OpenImageIO/oiio/tarball/Release-$pkgver) -md5sums=('4b98a057515cc95fc954743c987f19ba') +source=(https://github.com/OpenImageIO/oiio/tarball/Release-$pkgver + fix32bit-fail.patch) +md5sums=('8a5fd88f87fbf1826a4782041cf9e7d0' + '64403604d0b74bd6c50fe8638207116a') build() { - cd "$srcdir"/$_pkgname*/src + cd "$srcdir"/$_pkgname* + + patch -Np1 < $srcdir/fix32bit-fail.patch + + cd src [[ -d build ]] && rm -r build mkdir build && cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYLIB_INSTALL_DIR=lib/python2.7/site-packages .. make } 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 |