retroarch: enable features on ppc64 targets

[ci skip]
This commit is contained in:
q66 2019-01-27 03:10:27 +01:00 committed by maxice8
parent b92bb17eb1
commit 1c8c0ce6ee

View file

@ -3,11 +3,10 @@ pkgname=retroarch
version=1.7.5
revision=1
wrksrc="RetroArch-$version"
conf_files="/etc/retroarch.cfg"
build_style=configure
build_options="ffmpeg opengl jack pulseaudio sdl2 x11 vulkan"
configure_args="--prefix=/usr --global-config-dir=/etc --enable-udev
--enable-networking
conf_files="/etc/retroarch.cfg"
$(vopt_enable ffmpeg) $(vopt_enable jack) $(vopt_enable pulseaudio pulse)
$(vopt_enable sdl2) $(vopt_enable x11) $(vopt_enable vulkan)"
hostmakedepends="pkg-config python unzip"
@ -24,11 +23,12 @@ license="GPL-3.0-or-later"
homepage="http://www.libretro.com/"
distfiles="https://github.com/libretro/RetroArch/archive/v$version.tar.gz"
checksum=89dae3646e4979b8685cae987eaa09816ac94bfb10d2636a2e7a8eede5fcbfa3
build_options="ffmpeg opengl jack pulseaudio sdl2 x11 vulkan"
build_options_default="ffmpeg"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) build_options_default+=" opengl pulseaudio sdl2 x11 vulkan";;
i686*|x86_64*|ppc64*) build_options_default+=" opengl pulseaudio sdl2 x11 vulkan";;
armv[67]*) makedepends+=" rpi-userland-devel"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib -lbcm_host"
;;
@ -42,6 +42,7 @@ do_configure() {
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" --enable-sse --enable-threads";;
ppc64*) configure_args+=" --enable-threads";;
armv6*)
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include"
LDFLAGS+=" -L${XBPS_CROSS_BASE}/opt/vc/lib -Wl,-R /opt/vc/lib";;