void-packages/srcpkgs/speed-dreams/template
Roberto Ricci 6faa59aaed speed-dreams: update to 2.2.3
"-Wl,--no-as-needed" is required to avoid a linker error which occurs
when linking with `-lOpenGL`.

"-Wl,-z,stack-size=2097152" is required to avoid a stack overflow on
threads, when running on musl. Without it, overflow happens in the
openalmusicplayer::streambuffer() function, which allocates a sound
buffer on the stack.

Co-authored-by: Érico Nogueira <erico.erc@gmail.com>
2021-08-30 00:33:10 -03:00

30 lines
1.4 KiB
Bash

# Template file for 'speed-dreams'
pkgname=speed-dreams
version=2.2.3
revision=1
archs="i686* x86_64* ppc64le*"
_rev=r7616
create_wrksrc=yes
build_style=cmake
configure_args="-DSD_BINDIR=/usr/bin -DSD_DATADIR=/usr/share/speed-dreams-2
-DSD_LIBDIR=/usr/lib/speed-dreams-2 -DOPTION_OFFICIAL_ONLY=ON -Wno-dev"
hostmakedepends="pkg-config"
makedepends="freealut-devel libenet-devel libfreeglut-devel libjpeg-turbo-devel
libpng-devel libvorbis-devel libXrandr-devel osg-devel plib-devel SDL2-devel
libcurl-devel"
short_desc="Open source motorsport simulation and racing game"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.speed-dreams.org"
distfiles="${SOURCEFORGE_SITE}/speed-dreams/speed-dreams-src-base-${version}-${_rev}.tar.xz
${SOURCEFORGE_SITE}/speed-dreams/speed-dreams-src-wip-cars-and-tracks-${version}-${_rev}.tar.xz
${SOURCEFORGE_SITE}/speed-dreams/speed-dreams-src-hq-cars-and-tracks-${version}-${_rev}.tar.xz
${SOURCEFORGE_SITE}/speed-dreams/speed-dreams-src-more-hq-cars-and-tracks-${version}-${_rev}.tar.xz"
checksum="c67e48a083cd86f6c0062f0b38ed91a5d25274ea8aa656ee182f3f5074e96ff0
aff20e49ff94660d9ef962079f640d0ceeaa414869209be1ec41768d0ee5cb20
06eaf2094bc10fbaca980a4236c4e444dd14275aba3f7b1d62b4b3a53a9d4c77
19208761b252df9db200c733cecb3bb584905f02d057af2bbff5e4c86cbe1a86"
nocross=yes
replaces="speed-dreams-data>=0"
LDFLAGS="-Wl,--no-as-needed -Wl,-z,stack-size=2097152"
lib32disabled=yes