diff options
Diffstat (limited to 'community/luxrender')
-rw-r--r-- | community/luxrender/PKGBUILD | 45 | ||||
-rw-r--r-- | community/luxrender/libpng.patch | 21 |
2 files changed, 66 insertions, 0 deletions
diff --git a/community/luxrender/PKGBUILD b/community/luxrender/PKGBUILD new file mode 100644 index 000000000..200e64475 --- /dev/null +++ b/community/luxrender/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> +# Initial contributor: flixie <69one@gmx.net> +# Contributor: Imanol Celaya <ornitorrincos@archlinux-es.org> +pkgname=luxrender +pkgver=0.7.1 +_pkgver=9206b3ba7011 +_luxblend=f93faf8189c1 +pkgrel=4 +pkgdesc="Rendering system for physically correct, unbiased image synthesis" +arch=('i686' 'x86_64') +url="http://www.luxrender.net/" +license=('GPL') +depends=('boost-libs' 'freeimage') +optdepends=('python2: luxblend' 'qt: Qt GUI' 'wxgtk: wxGTK GUI') +makedepends=('cmake' 'boost' 'mesa' 'wxgtk' 'qt' 'libpng' 'openexr') +source=(http://src.luxrender.net/lux/archive/$_pkgver.tar.bz2 + http://src.luxrender.net/luxblend/archive/$_luxblend.tar.bz2 + libpng.patch) +md5sums=('44b819d37c2cccd8b1a890e6c67061a8' + 'daf70af98123d31303c2c037244c527c' + '4bbd82a31aa3f6ee2644a712bf2bfc05') +build() { + cd "$srcdir"/lux-$_pkgver + + patch -Np1 -i "${srcdir}/libpng.patch" || true + + export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2" + + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd "$srcdir"/lux-$_pkgver + make DESTDIR="$pkgdir" install + + # fix library path on x86_64 + [ "$CARCH" = "x86_64" ] && mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib + + # install blender exporter + install -d -m755 "$pkgdir"/usr/share/blender/scripts + install -m644 "$srcdir"/luxblend-$_luxblend/*.py "$pkgdir"/usr/share/blender/scripts +} + +# vim:set ts=2 sw=2 et: diff --git a/community/luxrender/libpng.patch b/community/luxrender/libpng.patch new file mode 100644 index 000000000..71700a7d2 --- /dev/null +++ b/community/luxrender/libpng.patch @@ -0,0 +1,21 @@ +diff -rupN lux-36533b0843bd/core/cimg.h lux-fixed/core/cimg.h +--- lux-36533b0843bd/core/external/cimg.h 2009-12-19 10:39:59.000000000 +0100 ++++ lux-fixed/core/external/cimg.h 2010-01-22 11:38:06.651814854 +0100 +@@ -25679,7 +25679,7 @@ namespace cimg_library { + png_read_info(png_ptr,info_ptr); + png_uint_32 W, H; + int bit_depth, color_type, interlace_type; +- png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,int_p_NULL,int_p_NULL); ++ png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,(int *) NULL,(int *) NULL); + int new_bit_depth = bit_depth; + int new_color_type = color_type; + +@@ -25690,7 +25690,7 @@ namespace cimg_library { + new_bit_depth = 8; + } + if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){ +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + new_bit_depth = 8; + } + if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) |