PKGBUILDs/extra/yafray/PKGBUILD

29 lines
997 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>
pkgname=yafray
pkgver=0.0.9
pkgrel=4
pkgdesc="Yet another Free Ray Tracer"
2009-10-11 04:11:32 +00:00
arch=('arm')
2009-10-10 02:23:22 +00:00
depends=('openexr>=1.6' 'libjpeg>=7')
makedepends=('scons')
2009-10-11 04:11:32 +00:00
source=(http://www.yafray.org/sec/2/downloads/${pkgname}-${pkgver}.tar.gz
2009-10-10 02:23:22 +00:00
'gcc4.3_missing_includes.patch')
url="http://www.yafray.org"
license=('GPL')
md5sums=('7365122e0ca6f439988f51e8b4db935c'
'6ec90b491fb47b39139b2b2eae3b0028')
build() {
cd ${startdir}/src/${pkgname}
patch -p1 -i $srcdir/gcc4.3_missing_includes.patch || return 1
sed -i "s|flags+=.*$|flags+=' ${CFLAGS} -ffast-math -fomit-frame-pointer'|" linux-settings.py
sed -i 's|return prefix+"/etc"|return "/etc"|' linux-settings.py
scons prefix=/usr
# fool the build system
sed -i 's|return "/etc"|return "'${startdir}/pkg'/etc"|' linux-settings.py
scons prefix=${startdir}/pkg/usr install
find ${startdir}/pkg -name '.sconsign' -exec rm -f {} \;
}