diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template index 45624b623b6..3e3b5cd4604 100644 --- a/srcpkgs/zbar/template +++ b/srcpkgs/zbar/template @@ -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 " 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() {