mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
rocksndiamonds: fix arm* build
This commit is contained in:
parent
6688c779dc
commit
064e3dfd7c
1 changed files with 0 additions and 20 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue