summaryrefslogtreecommitdiff
path: root/artistic
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-05-06 21:39:39 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-05-06 21:39:39 -0400
commit38dbfc58450f5064f8534435ccc7b4c005bbfa68 (patch)
tree829e9c277a024cf520db2b7bfaf7d5cb4fe5ba45 /artistic
parente1f7b97ab1603aea664ee3f392f6263fd7812b3c (diff)
parentd48da3adb2e5eaab66403aa3f0fce2d78f3ecd12 (diff)
downloadabslibre-38dbfc58450f5064f8534435ccc7b4c005bbfa68.tar.gz
abslibre-38dbfc58450f5064f8534435ccc7b4c005bbfa68.tar.bz2
abslibre-38dbfc58450f5064f8534435ccc7b4c005bbfa68.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'artistic')
-rw-r--r--artistic/aqsis/PKGBUILD33
-rw-r--r--artistic/aqsis/aqsis.install14
-rw-r--r--artistic/yafaray-git/PKGBUILD78
-rw-r--r--artistic/yafaray-git/gcc47.patch10
4 files changed, 135 insertions, 0 deletions
diff --git a/artistic/aqsis/PKGBUILD b/artistic/aqsis/PKGBUILD
new file mode 100644
index 000000000..ed04e585e
--- /dev/null
+++ b/artistic/aqsis/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Former contributor: Gino Pezzin <pezzin@gmail.com>
+# Maintainer (Parabola): Márcio Silva <coadde@adinet.com.uy>
+pkgname=aqsis
+pkgver=1.8.1
+pkgrel=1
+pkgdesc="A high quality, photorealistic, 3D rendering solution"
+arch=('i686' 'x86_64')
+url="http://www.aqsis.org"
+license=('GPL2')
+optdepends=('qt: graphical interface' 'libgl: ptview')
+depends=('boost-libs' 'openexr' 'hicolor-icon-theme' 'shared-mime-info' 'desktop-file-utils')
+makedepends=('cmake' 'boost' 'openexr' 'libpng' 'qt' 'mesa')
+options=('!libtool')
+install=aqsis.install
+source=(http://downloads.sourceforge.net/project/aqsis/aqsis-source/1.8.1/$pkgname-$pkgver.tar.gz)
+md5sums=('1fb9b07c6d3c5195ad72e308fb584598')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ mkdir -p "$srcdir"/$pkgname-build
+ cd "$srcdir"/$pkgname-build
+
+ cmake "$srcdir"/$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc/aqsis
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-build
+ make DESTDIR="$pkgdir" install
+}
diff --git a/artistic/aqsis/aqsis.install b/artistic/aqsis/aqsis.install
new file mode 100644
index 000000000..b2086e07b
--- /dev/null
+++ b/artistic/aqsis/aqsis.install
@@ -0,0 +1,14 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor/
+ update-mime-database usr/share/mime > /dev/null
+ update-desktop-database -q
+}
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et:
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
+