From 06c059760738998212a625feec4432fb104d9752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 22 Nov 2021 00:16:52 -0300 Subject: [PATCH] New package: tachyon-0.99~b6+dsx --- srcpkgs/tachyon/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/tachyon/template diff --git a/srcpkgs/tachyon/template b/srcpkgs/tachyon/template new file mode 100644 index 0000000000..92eb2bbac7 --- /dev/null +++ b/srcpkgs/tachyon/template @@ -0,0 +1,28 @@ +# Template file for 'tachyon' +pkgname=tachyon +version=0.99~b6+dsx +revision=1 +wrksrc=${pkgname}-${version}.orig +build_wrksrc=unix +build_style=gnu-makefile +make_build_target=all +makedepends="libpng-devel libjpeg-turbo-devel" +short_desc="Multithreaded ray tracing software" +maintainer="Gonzalo TornarĂ­a " +license="BSD-3-Clause" +homepage="http://jedi.ks.uiuc.edu/~johns/raytracer/" +distfiles="${DEBIAN_SITE}/main/t/tachyon/tachyon_${version}.orig.tar.xz" +checksum=ec90074f569d6d797576611527caa6b1aac96125aea1ec89a31b2867f1cdf7ff + +pre_build() { + export LIBS+=" -ltachyon -ljpeg -lpng -lm -lpthread" + CFLAGS+=" -Wno-unused-result -DUSEPNG -DUSEJPEG" + CFLAGS+=" -DLinux -DTHR -DUSEATOMICBARRIERS -D_REENTRANT" +} + +do_install() { + vlicense ../Copyright + vbin ../compile/tachyon + vmkdir usr/share/tachyon + vcopy ../scenes usr/share/tachyon +}