SDL2_net: enable gles for armv[5-6]*
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'SDL2_net'
|
# Template file for 'SDL2_net'
|
||||||
pkgname=SDL2_net
|
pkgname=SDL2_net
|
||||||
version=2.0.1
|
version=2.0.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
@@ -13,6 +13,28 @@ homepage="https://www.libsdl.org/projects/SDL_net/"
|
|||||||
distfiles="https://www.libsdl.org/projects/SDL_net/release/${pkgname}-${version}.tar.gz"
|
distfiles="https://www.libsdl.org/projects/SDL_net/release/${pkgname}-${version}.tar.gz"
|
||||||
checksum=15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21
|
checksum=15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21
|
||||||
|
|
||||||
|
# Package build options
|
||||||
|
build_options="gles"
|
||||||
|
|
||||||
|
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"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING.txt
|
vlicense COPYING.txt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user