summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-04-19 22:39:33 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-04-19 22:39:33 -0300
commit340366ca7a7dfb2ec14f1159c37470c25c9e5c2b (patch)
tree8f1b25b60e7b173399d7c79b7aeb6af07c7a581e
parentdab69f697bb032151004b67de82021791dee975c (diff)
downloadabslibre-340366ca7a7dfb2ec14f1159c37470c25c9e5c2b.tar.gz
abslibre-340366ca7a7dfb2ec14f1159c37470c25c9e5c2b.tar.bz2
abslibre-340366ca7a7dfb2ec14f1159c37470c25c9e5c2b.zip
yafaray-git-20120420-1: added in artistic repo
-rw-r--r--artistic/yafaray-git/PKGBUILD78
-rw-r--r--artistic/yafaray-git/gcc47.patch10
2 files changed, 88 insertions, 0 deletions
diff --git a/artistic/yafaray-git/PKGBUILD b/artistic/yafaray-git/PKGBUILD
new file mode 100644
index 000000000..0c5d4f6e4
--- /dev/null
+++ b/artistic/yafaray-git/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Maintainer (Parabola): Márcio Silva <coadde@adinet.com.uy>
+pkgname=yafaray-git
+_blendver=2.62
+pkgver=20120420
+pkgrel=1
+pkgdesc="A libre software raytracing engine"
+arch=('i686' 'x86_64')
+url="http://www.yafaray.org/"
+license=('LGPL2.1')
+depends=('libxml2' 'openexr' 'libjpeg')
+optdepends=('qt: QT GUI' 'python: Python bindings, Blender exporter')
+makedepends=('cmake' 'git' 'qt' 'swig' 'python')
+provides=('yafaray')
+conflicts=('yafaray')
+source=('gcc47.patch')
+md5sums=('d99eb7db30885549687a8f7a775a582d')
+
+_gitroot=git://github.com/YafaRay/Core.git
+_gitname=yafaray
+_gitrootexport=git://github.com/YafaRay/Blender-2.5-Exporter.git
+_gitnameexport=exporter
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ # core
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ cd ..
+ msg "The local files are updated."
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
+ # exporter
+ if [[ -d "$_gitnameexport" ]]; then
+ cd "$_gitnameexport" && git pull origin
+ cd ..
+ msg "The local files are updated."
+ else
+ git clone "$_gitrootexport" "$_gitnameexport"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ if [ -e "$srcdir"/$_gitname-build ]; then
+ rm -rf "$srcdir"/$_gitname-build
+ fi
+ mkdir "$srcdir/$_gitname-build"
+
+ patch -Np0 -i "$srcdir/gcc47.patch"
+
+ cd "$srcdir/$_gitname-build"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DYAF_PY_VERSION=3.2 \
+ -DYAF_BINDINGS_PY_DIR=/usr/lib/python3.2 \
+ "../$_gitname"
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="$pkgdir/" install
+
+ # install exporter
+ cd "$srcdir/$_gitnameexport"
+ git checkout-index -a -f --prefix="$pkgdir/usr/share/blender/$_blendver/scripts/addons/yafaray/"
+ # create symlinks to make exporter fully work
+ install -d -m755 "$pkgdir/usr/share/blender/$_blendver/scripts/addons/yafaray/bin"
+ ln -sf "/usr/lib/libyafaraycore.so" "$pkgdir/usr/share/blender/$_blendver/scripts/addons/yafaray/bin/libyafaraycore.so"
+ ln -sf "/usr/lib/libyafarayplugin.so" "$pkgdir/usr/share/blender/$_blendver/scripts/addons/yafaray/bin/libyafarayplugin.so"
+ ln -sf "/usr/lib/yafaray" "$pkgdir/usr/share/blender/$_blendver/scripts/addons/yafaray/bin/plugins"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/artistic/yafaray-git/gcc47.patch b/artistic/yafaray-git/gcc47.patch
new file mode 100644
index 000000000..75775498b
--- /dev/null
+++ b/artistic/yafaray-git/gcc47.patch
@@ -0,0 +1,10 @@
+--- yafaray.orig/src/yafraycore/scene.cc 2012-04-18 00:03:16.508415920 -0300
++++ yafaray/src/yafraycore/scene.cc 2012-04-18 00:29:59.090117108 -0300
+@@ -39,6 +39,7 @@
+ #include <iostream>
+ #include <limits>
+ #include <sstream>
++#include <unistd.h>
+
+ __BEGIN_YAFRAY
+