From 10abf269ca1c3eda8334e515cc7d3f0f92c999dd Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Tue, 2 Sep 2014 23:28:39 -0300 Subject: rename openimageio-parabola to openimageio --- libre/openimageio-parabola/PKGBUILD | 70 ------------------------------------- libre/openimageio/PKGBUILD | 68 +++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 70 deletions(-) delete mode 100644 libre/openimageio-parabola/PKGBUILD create mode 100644 libre/openimageio/PKGBUILD (limited to 'libre') diff --git a/libre/openimageio-parabola/PKGBUILD b/libre/openimageio-parabola/PKGBUILD deleted file mode 100644 index ad8104e89..000000000 --- a/libre/openimageio-parabola/PKGBUILD +++ /dev/null @@ -1,70 +0,0 @@ -# Contributor (Arch): SpepS -# Maintainer (Arch): Sven-Hendrik Haase -# Maintainer: Márcio Silva - -_pkgname=openimageio -pkgname=$_pkgname-parabola -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') -provides=("$_pkgname=$pkgver") -conflicts=("$_pkgname") -replaces=("$_pkgname") -source=("git+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: 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 +# Maintainer (Arch): Sven-Hendrik Haase +# Maintainer: Márcio Silva + +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: -- cgit v1.2.3-54-g00ecf From c82a20c82eb99dacb3e26c3b6e93d2eca47f0ed4 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Tue, 2 Sep 2014 23:33:17 -0300 Subject: rename to opencolorio --- libre/opencolorio-parabola/PKGBUILD | 36 ------------------------------------ libre/opencolorio/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 36 deletions(-) delete mode 100644 libre/opencolorio-parabola/PKGBUILD create mode 100644 libre/opencolorio/PKGBUILD (limited to 'libre') diff --git a/libre/opencolorio-parabola/PKGBUILD b/libre/opencolorio-parabola/PKGBUILD deleted file mode 100644 index 66e74a823..000000000 --- a/libre/opencolorio-parabola/PKGBUILD +++ /dev/null @@ -1,36 +0,0 @@ -# Maintainer (Arch): Sven-Hendrik Haase -# Contributor (Arch): Dumitru Ursu -# Maintainer: Márcio Silva - -_pkgname=opencolorio -pkgname=$_pkgname-parabola -pkgver=1.0.9 -pkgrel=2.6 -pkgdesc='A color management framework for visual effects and animation (built for the blender-parabola package)' -arch=('i686' 'x86_64' 'mips64el') -url="http://$pkgname.org" -license=('BSD') -depends=('freeglut' 'glew' 'lcms2' 'openimageio' 'python') -makedepends=('cmake') -provides=("$_pkgname=$pkgver") -conflicts=("$_pkgname") -replaces=("$_pkgname") -source=("http://github.com/imageworks/OpenColorIO/tarball/v$pkgver") -sha1sums=('a015cb51b9b0ea0cdb3989fc23e1c18ad69511e0') - -build() { - mv imageworks-OpenColorIO-* $_pkgname-$pkgver - cd $_pkgname-$pkgver - cmake . -DCMAKE_INSTALL_PREFIX=/usr -DOCIO_BUILD_DOCS=OFF -DOCIO_PYGLUE_SONAME=ON - make -} - -package() { - cd $_pkgname-$pkgver - - make DESTDIR=$pkgdir install - - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$_pkgname/LICENSE -} - -# vim:set ts=2 sw=2 et: diff --git a/libre/opencolorio/PKGBUILD b/libre/opencolorio/PKGBUILD new file mode 100644 index 000000000..7a3e4fd98 --- /dev/null +++ b/libre/opencolorio/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer (Arch): Sven-Hendrik Haase +# Contributor (Arch): Dumitru Ursu +# Maintainer: Márcio Silva + +pkgname=opencolorio +pkgver=1.0.9 +pkgrel=2.6 +pkgdesc='A color management framework for visual effects and animation (built for the blender package)' +arch=('i686' 'x86_64' 'mips64el') +url="http://$pkgname.org" +license=('BSD') +depends=('freeglut' 'glew' 'lcms2' 'openimageio' 'python') +makedepends=('cmake') +conflicts=("$pkgname-parabola") +replaces=("$pkgname-parabola") +source=("http://github.com/imageworks/OpenColorIO/tarball/v$pkgver") +sha1sums=('a015cb51b9b0ea0cdb3989fc23e1c18ad69511e0') + +build() { + mv imageworks-OpenColorIO-* $pkgname-$pkgver + cd $pkgname-$pkgver + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DOCIO_BUILD_DOCS=OFF -DOCIO_PYGLUE_SONAME=ON + make +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR=$pkgdir install + + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf