void-packages/srcpkgs/dolphin-emu/template
q66 3238b47501 dolphin-emu: add patch for soundtouch 2.1.2 and enable ppc64le
Technically this should also work on aarch64 but I haven't tested
that, so I'm not enabling it. Building for ppc64le as well as any
other little endian architecture requires a generic (architecture
independent) build to be enabled.

Also, add a patch to fix compilation with soundtouch 2.1.2. Also,
fix lint issues, and appropriately bump revision.

[ci skip]
2019-04-10 23:43:59 -03:00

32 lines
1 KiB
Bash

# Template file for 'dolphin-emu'
pkgname=dolphin-emu
version=5.0
revision=18
archs="x86_64* ppc64le*"
wrksrc="dolphin-${version}"
build_style=cmake
configure_args="-DUSE_X11=1 -DUSE_EGL=0
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-3.0"
hostmakedepends="pkg-config"
makedepends="
zlib-devel glew-devel libusb-devel gtk+-devel miniupnpc-devel libevdev-devel
SDL2-devel pulseaudio-devel alsa-lib-devel ffmpeg-devel libgomp-devel libcurl-devel
portaudio-devel libopenal-devel soundtouch-devel lzo-devel wxWidgets-devel
mbedtls-devel SFML-devel libenet-devel"
depends="desktop-file-utils"
short_desc="Gamecube / Wii / Triforce emulator"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://dolphin-emu.org"
distfiles="https://github.com/dolphin-emu/dolphin/archive/${version}.tar.gz"
checksum=62c4602055767ab314ff50a3b94ea57f792832aa1629e6b1117ebce10518dc0b
nopie=yes
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*) ;;
*) configure_args+=" -DENABLE_GENERIC=ON" ;;
esac
post_install() {
rm -f ${DESTDIR}/usr/lib/*.a
}