mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
SDL2_image: enable gles for armv[5-6]*
This commit is contained in:
parent
e43cc792dd
commit
ef9ca11bdc
1 changed files with 21 additions and 0 deletions
|
@ -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"
|
distfiles="http://www.libsdl.org/projects/SDL_image/release/$pkgname-$version.tar.gz"
|
||||||
checksum=3a3eafbceea5125c04be585373bfd8b3a18f259bd7eae3efc4e6d8e60e0d7f64
|
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() {
|
post_install() {
|
||||||
vlicense COPYING.txt COPYING
|
vlicense COPYING.txt COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue