aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/tachyon/template
blob: 297082466a6cf7d77d28728fbc9b1cdca59d336e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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
}