2015-01-09 01:56:57 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Rémy Oudompheng <remy@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-10-28 01:16:51 +00:00
|
|
|
# - set ARM architectures to use linux-thr profile, AArch64 to linux-64-thr
|
|
|
|
# - sed to remove -m32 and -m64 from CFLAGS
|
2015-01-09 01:56:57 +00:00
|
|
|
|
|
|
|
pkgname=tachyon
|
|
|
|
pkgver=0.98.9
|
2017-07-11 00:21:44 +00:00
|
|
|
pkgrel=4
|
2015-01-09 01:56:57 +00:00
|
|
|
pkgdesc="Multithreaded ray tracing software"
|
2017-07-11 00:21:44 +00:00
|
|
|
arch=(i686 x86_64)
|
2015-01-09 01:56:57 +00:00
|
|
|
url="http://jedi.ks.uiuc.edu/~johns/raytracer/"
|
2017-07-11 00:21:44 +00:00
|
|
|
license=(BSD)
|
|
|
|
depends=(libjpeg-turbo libpng)
|
2015-01-09 01:56:57 +00:00
|
|
|
makedepends=()
|
|
|
|
source=("http://jedi.ks.uiuc.edu/~johns/raytracer/files/$pkgver/$pkgname-$pkgver.tar.gz" 'enable-jpeg-png.patch')
|
2017-07-11 00:21:44 +00:00
|
|
|
sha256sums=('c6a3298ded4dc3e9390447819e1dac59b62c3d2d46d4154312ffe71549ee40d7'
|
|
|
|
'ecd6ab6274879e0f971e2eba17871fffe2e24dcc9a332013a0b100ee4857cc2c')
|
2015-01-09 01:56:57 +00:00
|
|
|
|
|
|
|
case "$CARCH" in
|
|
|
|
arm*) _target=linux-thr ;;
|
2015-10-28 01:16:51 +00:00
|
|
|
"aarch64") _target=linux-64-thr ;;
|
2015-01-09 01:56:57 +00:00
|
|
|
"i686") _target=linux-thr ;;
|
|
|
|
"x86_64") _target=linux-64-thr ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
prepare(){
|
|
|
|
cd $pkgname
|
|
|
|
# enable JPEG and PNG support
|
|
|
|
patch -p0 -i "$srcdir"/enable-jpeg-png.patch
|
|
|
|
|
2015-10-28 01:16:51 +00:00
|
|
|
# remove -m32 and -m64 for ARM
|
2015-01-09 01:56:57 +00:00
|
|
|
sed -i 's/-m32//g' unix/Make-arch
|
2015-10-28 01:16:51 +00:00
|
|
|
sed -i 's/-m64//g' unix/Make-arch
|
2015-01-09 01:56:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname/unix
|
|
|
|
make $_target
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname/compile/$_target
|
|
|
|
install -D -m 755 tachyon $pkgdir/usr/bin/tachyon
|
|
|
|
install -D -m 644 libtachyon.a $pkgdir/usr/lib/libtachyon.a
|
|
|
|
|
|
|
|
cd $srcdir/$pkgname/scenes
|
|
|
|
install -d "$pkgdir"/usr/share/tachyon/scenes/imaps
|
|
|
|
install -m 644 README *.dat *.cam *.ac "$pkgdir"/usr/share/tachyon/scenes
|
|
|
|
install -m 644 imaps/* "$pkgdir"/usr/share/tachyon/scenes/imaps
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/share/licenses/tachyon
|
|
|
|
install $srcdir/$pkgname/Copyright "$pkgdir"/usr/share/licenses/tachyon
|
|
|
|
}
|