summaryrefslogtreecommitdiff
path: root/community-staging/openimageio
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-10 00:01:37 +0000
committerroot <root@rshg054.dnsready.net>2012-07-10 00:01:37 +0000
commit0615a909b089a81d068ae10517ceff31dabfece1 (patch)
tree6e5d23671bbee08a27827c126237a47ff9d9c0da /community-staging/openimageio
parent78eac58df0ec18da4bfd73868668dcaea99fd008 (diff)
Tue Jul 10 00:01:37 UTC 2012
Diffstat (limited to 'community-staging/openimageio')
-rw-r--r--community-staging/openimageio/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community-staging/openimageio/PKGBUILD b/community-staging/openimageio/PKGBUILD
new file mode 100644
index 000000000..ea6bbd54a
--- /dev/null
+++ b/community-staging/openimageio/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 73518 2012-07-09 01:05:28Z svenstaro $
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=openimageio
+pkgver=1.0.6
+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')
+makedepends=('cmake' 'qt' 'python2' 'boost')
+optdepends=('qt: iv image viewer'
+ 'python2: bindings support')
+source=(https://github.com/OpenImageIO/oiio/tarball/Release-$pkgver)
+md5sums=('fa6e3f4be98d8e1868b389410b56563a')
+
+build() {
+ cd "$srcdir"/$_pkgname*/src
+
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$srcdir"/$_pkgname*/src/build
+
+ make DESTDIR=$pkgdir install
+
+ mv $pkgdir/usr/lib/python $pkgdir/usr/lib/python2.7
+
+ # license
+ cd ../..
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}