void-packages/srcpkgs/tachyon/template

28 lines
853 B
Bash

# Template file for 'tachyon'
pkgname=tachyon
version=0.99.5
revision=1
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 <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://mirrors.mit.edu/sage/spkg/upstream/tachyon/index.html"
distfiles="https://mirrors.mit.edu/sage/spkg/upstream/tachyon/tachyon-${version}.tar.bz2"
checksum=09203c102311149f5df5cc367409f96c725742666d19c24db5ba994d5a81a6f5
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
}