diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-02-03 18:59:08 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-02-03 18:59:08 -0200 |
commit | 3f0f90769e94a810869ed33cfe0f30bff6334c50 (patch) | |
tree | 230a7669635045773788a212e291d40a8c82bb92 /libre/openimageio | |
parent | 7a778e8cdf604924dc9bafc47849e0594ae1f85c (diff) | |
parent | 964755f48fefde84fce71781d0744e2158f60814 (diff) | |
download | abslibre-3f0f90769e94a810869ed33cfe0f30bff6334c50.tar.gz abslibre-3f0f90769e94a810869ed33cfe0f30bff6334c50.tar.bz2 abslibre-3f0f90769e94a810869ed33cfe0f30bff6334c50.zip |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/openimageio')
-rw-r--r-- | libre/openimageio/PKGBUILD | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/libre/openimageio/PKGBUILD b/libre/openimageio/PKGBUILD new file mode 100644 index 000000000..992cd1389 --- /dev/null +++ b/libre/openimageio/PKGBUILD @@ -0,0 +1,82 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> +# based of Arch pkg + +pkgname=openimageio +pkgver=1.3.12 +pkgrel=1 +pkgdesc='A library for reading and writing images, including classes, utilities, and applications (built for the blender-libre package)' +arch=( + mips64el + x86_64 + i686 +) +url=http://www.openimageio.org/ +license=custom +depends=( + boost-libs + freetype2 + giflib + glew + libjpeg-turbo + libpng + libtiff + libwebp + opencolorio + openexr + openjpeg + openssl + zlib +) +makedepends=( + boost + cmake + python2 + qt4 +) +optdepends=( + 'qt4: iv image viewer' + 'python2: bindings support' +) +source=https://github.com/OpenImageIO/oiio/archive/Release-$pkgver.tar.gz +sha512sums=SKIP + +prepare() { + cd oiio-Release-$pkgver + + msg 'renaming wrong OS name' + _OS=$(uname -o) + [[ $_OS == GNU ]] &&\ + sed -i 's|linux|GNU|i; + ' src/{cmake/platform.cmake,make/detectplatform.mk} + [[ $_OS == GNU/Linux ]] &&\ + sed -i 's|[{]uname[}][,]linux]|{uname -o},GNU/Linux|;\|platform| s|linux|GNU/Linux|i + ' src/{cmake/platform.cmake,make/detectplatform.mk} + [[ $_OS == GNU/kFreeBSD ]] &&\ + sed -i '\|STREQUAL| s|FreeBSD|kFreeBSD|;\|platform| s|freebsd|GNU/kFreeBSD|i + ' src/cmake/platform.cmake + sed -i 's|[{]uname[}][,]linux]|{uname -o},GNU/kFreeBSD|;\|platform| s|linux|GNU/kFreeBSD|i + ' src/make/detectplatform.mk + + [[ -d build ]] && rm -r build + mkdir build +} + +build() { + cd oiio-Release-$pkgver/build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr\ + -DOIIO_BUILD_TESTS=OFF\ + -DPYLIB_INSTALL_DIR=lib/python2.7/site-packages\ + -DPYLIB_INCLUDE_SONAME=ON\ + -DPYLIB_LIB_PREFIX=OFF\ + -DUSE_EXTERNAL_TBB=OFF + make +} + +package() { + cd oiio-Release-$pkgver/build + make DESTDIR=$pkgdir install + install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |