New package: retroarch-20150203

This commit is contained in:
Juan RP 2015-03-09 17:13:22 +01:00
parent 319c04eb0d
commit 5d4cc70b16
1 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,45 @@
# Template file for 'retroarch'
pkgname=retroarch
version=20150203
revision=1
wrksrc="RetroArch-master"
conf_files="/etc/retroarch.cfg"
build_style=configure
build_options="ffmpeg opengl jack pulseaudio sdl2 x11"
configure_args="--prefix=/usr --global-config-dir=/etc --enable-udev
--enable-networking --enable-threads --enable-netplay --disable-vg
$(vopt_enable ffmpeg) $(vopt_enable jack) $(vopt_enable pulseaudio pulse)
$(vopt_enable sdl2) $(vopt_enable x11)"
hostmakedepends="pkg-config python unzip"
makedepends="zlib-devel libxml2-devel freetype-devel libxkbcommon-devel
alsa-lib-devel libudev-devel $(vopt_if opengl MesaLib-devel)
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if jack jack-devel)
$(vopt_if ffmpeg ffmpeg-devel) $(vopt_if sdl2 SDL2-devel)
$(vopt_if x11 'libXext-devel libXinerama-devel libXv-devel libXxf86vm-devel')"
short_desc="Official reference frontend for the libretro API"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.libretro.com/"
distfiles="http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/retroarch/retroarch-${version}.zip"
checksum=55d6480eba8eadcf73c8e4e3eca3179baab35b4406431178d26348be6446833b
build_options_default="ffmpeg"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) build_options_default+=" opengl pulseaudio sdl2 x11";;
armv[67]*) hostmakedepends+=" rpi-firmware"; makedepends+=" rpi-firmware";;
esac
do_configure() {
if [ "$CROSS_BUILD" ]; then
configure_args+=" --host=${XBPS_CROSS_TRIPLET}"
fi
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) configure_args+=" --enable-sse";;
armv6*) configure_args+=" --enable-gles"
LDFLAGS+=" -Wl,-R /opt/vc/lib";;
armv7*) configure_args+=" --enable-neon --enable-gles"
LDFLAGS+=" -Wl,-R /opt/vc/lib";;
esac
./configure ${configure_args}
}