rocksndiamonds: fix arm* build

This commit is contained in:
Jürgen Buchmüller 2020-01-06 18:31:42 +01:00
parent 6688c779dc
commit 064e3dfd7c

View file

@ -13,27 +13,7 @@ homepage="http://www.artsoft.org/rocksndiamonds"
distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=40658f923b9efa9116476abe8427fb65596b2015cf845dd83a4d8c3de1a32e5b
# Package build options
build_options="gles"
LDFLAGS="-lz"
case "$XBPS_TARGET_MACHINE" in
arm*)
# Enable OpenGL/ES on rpi platforms
build_options_default="gles"
;;
esac
if [ "$build_option_gles" ]; then
case "$XBPS_TARGET_MACHINE" in
armv[67]*)
# RaspberryPi, use Videocore IV
makedepends+=" rpi-userland-devel"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib -lbcm_host -lz"
;;
esac
fi
do_build() {
CFLAGS+=" -DTARGET_SDL2"