ssr: fix cross compile

Closes: #12056 [via git-merge-pr]
This commit is contained in:
Andrew Benson 2018-03-02 17:14:19 -05:00 committed by Jürgen Buchmüller
parent 2e74b30af9
commit 60a9f6f5eb

View file

@ -1,7 +1,7 @@
# Template file for 'ssr'
pkgname=ssr
version=0.3.9
revision=1
revision=2
build_style=cmake
configure_args="-DWITH_QT5=ON"
hostmakedepends="pkg-config"
@ -16,4 +16,11 @@ homepage="http://www.maartenbaert.be/simplescreenrecorder/"
distfiles="https://github.com/MaartenBaert/${pkgname}/archive/${version}.tar.gz"
checksum=f3820eadaf9ecfe9aaf0940bf868cedd828c6e75b6a860195ecc091c174fcebe
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel"
fi
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) ;;
*) configure_args+=" -DENABLE_X86_ASM=no -DWITH_GLINJECT=no" ;;
esac