rocksndiamonds: use makejobs; unbreak cross

This commit is contained in:
Juan RP 2020-01-06 18:48:41 +01:00
parent 9d92a2f2e5
commit 27f0b00745
1 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'rocksndiamonds'
pkgname=rocksndiamonds
version=4.1.4.0
revision=1
revision=2
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="SDL2_image-devel SDL2_mixer-devel SDL2_net-devel"
@ -14,9 +14,6 @@ distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}
checksum=40658f923b9efa9116476abe8427fb65596b2015cf845dd83a4d8c3de1a32e5b
LDFLAGS="-lz"
case "$XBPS_TARGET_MACHINE" in
arm*) broken="https://build.voidlinux.org/builders/armv6l-musl_builder/builds/23388/steps/shell_3/logs/stdio";;
esac
do_build() {
CFLAGS+=" -DTARGET_SDL2"
@ -24,7 +21,7 @@ do_build() {
CFLAGS+=" -DRW_GAME_DIR='\"/var/lib/${pkgname}\"'"
CFLAGS+=" $(sdl2-config --cflags)"
LDFLAGS+=" $(sdl2-config --libs) -lSDL2_image -lSDL2_mixer -lSDL2_net -lm"
make CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" sdl2
make ${makejobs} CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" sdl2
}
do_install() {