# Template file for 'gogglesmm'
pkgname=gogglesmm
version=1.2.5
revision=1
archs="x86_64* i686* aarch64* armv7* ppc64*"
build_style=cmake
hostmakedepends="pkg-config desktop-file-utils"
makedepends="libepoxy-devel glu-devel libSM-devel libXcursor-devel libXrandr-devel libXi-devel libXft-devel
 libwebp-devel libjpeg-turbo-devel libpng-devel openssl-devel libvorbis-devel libogg-devel libflac-devel
 faad2-devel opus-devel taglib-devel sqlite-devel dbus-devel alsa-lib-devel pulseaudio-devel libxml2-devel"
depends="hicolor-icon-theme"
short_desc="Music Manager and Player"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gogglesmm.github.io/"
changelog="https://raw.githubusercontent.com/gogglesmm/gogglesmm/master/ChangeLog"
distfiles="https://github.com/gogglesmm/gogglesmm/archive/${version}.tar.gz"
checksum=fb6a33457a815ad650a81f7bad5233f983647977e401c57c6d396f0de4414283
nocross="Tries to execute compiled code"

# this plugin has little endian only code
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
	configure_args+=" -DWITH_MAD=OFF"
else
	makedepends+=" libmad-devel"
fi
