SDL2_image: enable gles for armv[5-6]*
This commit is contained in:
parent
e43cc792dd
commit
ef9ca11bdc
@ -14,6 +14,27 @@ homepage="http://www.libsdl.org/projects/SDL_image/"
|
||||
distfiles="http://www.libsdl.org/projects/SDL_image/release/$pkgname-$version.tar.gz"
|
||||
checksum=3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64
|
||||
|
||||
# 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() {
|
||||
vlicense COPYING.txt COPYING
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user