zbar: make qt a build option default off for mips*

This commit is contained in:
Jürgen Buchmüller 2018-03-10 17:12:22 +01:00
parent c44e8a17c1
commit d8e3ac2e8f
1 changed files with 10 additions and 3 deletions

View File

@ -3,9 +3,10 @@ pkgname=zbar
version=0.10
revision=3
build_style=gnu-configure
configure_args="--with-qt --with-gtk"
hostmakedepends="automake pkg-config libtool gettext-devel python qt-qmake qt-host-tools glib-devel"
makedepends="libmagick-devel libXv-devel pygtk-devel qt-devel v4l-utils-devel"
configure_args="$(vopt_with qt) --with-gtk"
hostmakedepends="automake pkg-config libtool gettext-devel python
$(vopt_if qt 'qt-qmake qt-host-tools') glib-devel"
makedepends="libmagick-devel libXv-devel pygtk-devel $(vopt_if qt qt-devel) v4l-utils-devel"
short_desc="A barcode reading library and application"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2"
@ -14,6 +15,12 @@ distfiles="$SOURCEFORGE_SITE/zbar/${version}/${pkgname}-${version}.tar.bz2"
checksum=234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6
depends="libzbar-${version}_${revision}"
build_options="qt"
case "$XBPS_TARGET_MACHINE" in
mips*) ;; # don't enable qt as it can't be built for mips*
*) build_options_default="qt" ;;
esac
CFLAGS="-DNDEBUG"
pre_configure() {