diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-03 01:37:40 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-03 01:37:40 -0300 |
commit | 4ae5aae85842d364d28b0ae2ac0ad40bec3a778a (patch) | |
tree | 7f443201306b80f62fd23f067f9c24752dd86699 /libre/openimageio/PKGBUILD | |
parent | 5156402fd563b6078c36e081860bccadc77a72a0 (diff) | |
parent | c82a20c82eb99dacb3e26c3b6e93d2eca47f0ed4 (diff) | |
download | abslibre-4ae5aae85842d364d28b0ae2ac0ad40bec3a778a.tar.gz abslibre-4ae5aae85842d364d28b0ae2ac0ad40bec3a778a.tar.bz2 abslibre-4ae5aae85842d364d28b0ae2ac0ad40bec3a778a.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/openimageio/PKGBUILD')
-rw-r--r-- | libre/openimageio/PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/libre/openimageio/PKGBUILD b/libre/openimageio/PKGBUILD new file mode 100644 index 000000000..84ec3570b --- /dev/null +++ b/libre/openimageio/PKGBUILD @@ -0,0 +1,68 @@ +# Contributor (Arch): SpepS <dreamspepser at yahoo dot it> +# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com> +# Maintainer: Márcio Silva <coadde@parabola.nu> + +pkgname=openimageio +pkgver=1.4.12 +pkgrel=3.2 +pkgdesc='A library for reading and writing images, including classes, utilities, and applications (built for the blender-parabola package)' +arch=('i686' 'x86_64' 'mips64el') +url="http://www.$pkgname.org/" +license=('custom') +depends=('boost-libs' 'freetype2' 'glew' 'libtiff' 'libwebp' 'openjpeg' 'opencolorio' 'openexr' 'giflib-lts') # add giflib-lts to build pkg +makedepends=('boost' 'cmake' 'git' 'python2' 'qt4') +optdepends=('qt4: iv image viewer' + 'python2: bindings support') +conflicts=("$pkgname-parabola") +replaces=("$pkgname-parabola") +source=("git://github.com/OpenImageIO/oiio.git#tag=Release-$pkgver") +md5sums=('SKIP') + +prepare() { + cd oiio + + 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 + + # gif lts + sed -i 's|gif_lib[.]h|gif_lib-lts.h| + ' src/gif.imageio/gifinput.cpp +} + +build() { + cd oiio + + [[ -d build ]] && rm -r build + mkdir build && cd 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 + make +} + +package() { + cd oiio/build + + make DESTDIR=$pkgdir install + + # license + cd .. + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: |