Date: Friday, November 9, 2018 @ 22:42:21 Author: foutrelis Revision: 405051
archrelease: copy trunk to community-staging-x86_64 Added: tachyon/repos/community-staging-x86_64/ tachyon/repos/community-staging-x86_64/PKGBUILD (from rev 405050, tachyon/trunk/PKGBUILD) tachyon/repos/community-staging-x86_64/enable-jpeg-png.patch (from rev 405050, tachyon/trunk/enable-jpeg-png.patch) -----------------------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ enable-jpeg-png.patch | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) Copied: tachyon/repos/community-staging-x86_64/PKGBUILD (from rev 405050, tachyon/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-11-09 22:42:21 UTC (rev 405051) @@ -0,0 +1,45 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Rémy Oudompheng <r...@archlinux.org> + +pkgname=tachyon +pkgver=0.98.9 +pkgrel=5 +pkgdesc="Multithreaded ray tracing software" +arch=(x86_64) +url="http://jedi.ks.uiuc.edu/~johns/raytracer/" +license=(BSD) +depends=(libjpeg-turbo libpng) +makedepends=() +source=("http://jedi.ks.uiuc.edu/~johns/raytracer/files/$pkgver/$pkgname-$pkgver.tar.gz" 'enable-jpeg-png.patch') +sha256sums=('c6a3298ded4dc3e9390447819e1dac59b62c3d2d46d4154312ffe71549ee40d7' + 'ecd6ab6274879e0f971e2eba17871fffe2e24dcc9a332013a0b100ee4857cc2c') + +case "$CARCH" in + "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 +} + +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 +} Copied: tachyon/repos/community-staging-x86_64/enable-jpeg-png.patch (from rev 405050, tachyon/trunk/enable-jpeg-png.patch) =================================================================== --- community-staging-x86_64/enable-jpeg-png.patch (rev 0) +++ community-staging-x86_64/enable-jpeg-png.patch 2018-11-09 22:42:21 UTC (rev 405051) @@ -0,0 +1,44 @@ +--- unix/Make-config.orig 2015-01-08 20:45:17.968890865 +0100 ++++ unix/Make-config 2015-01-08 20:46:16.223075085 +0100 +@@ -108,14 +108,14 @@ + # http://www.ijg.org/files/ + ########################################################################## + # Uncomment the following lines to disable JPEG support +-USEJPEG= +-JPEGINC= +-JPEGLIB= ++#USEJPEG= ++#JPEGINC= ++#JPEGLIB= + + # Uncomment the following lines to enable JPEG support +-#USEJPEG= -DUSEJPEG +-#JPEGINC= -I/usr/local/include +-#JPEGLIB= -L/usr/local/lib -ljpeg ++USEJPEG= -DUSEJPEG ++JPEGINC= -I/usr/include ++JPEGLIB= -L/usr/lib -ljpeg + + + ########################################################################## +@@ -128,14 +128,14 @@ + # http://www.libpng.org/ + ########################################################################## + # Uncomment the following lines to disable PNG support +-USEPNG= +-PNGINC= +-PNGLIB= ++#USEPNG= ++#PNGINC= ++#PNGLIB= + + # Uncomment the following lines to enable PNG support +-#USEPNG= -DUSEPNG +-#PNGINC= -I/usr/local/include +-#PNGLIB= -L/usr/local/lib -lpng -lz ++USEPNG= -DUSEPNG ++PNGINC= -I/usr/include ++PNGLIB= -L/usr/lib -lpng -lz + + + ##########################################################################