63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
# Template file for 'zbar'
|
|
pkgname=zbar
|
|
version=0.10
|
|
revision=10
|
|
build_style=gnu-configure
|
|
configure_args="ac_cv_header_wand_MagickWand_h=yes $(vopt_with qt) --with-gtk"
|
|
hostmakedepends="automake pkg-config libtool gettext-devel python
|
|
$(vopt_if qt 'qt5-qmake qt5-host-tools') glib-devel"
|
|
makedepends="libmagick-devel libXv-devel pygtk-devel v4l-utils-devel
|
|
$(vopt_if qt qt5-x11extras-devel)"
|
|
depends="libzbar-${version}_${revision}"
|
|
short_desc="Barcode reading library and application"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://zbar.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/zbar/${version}/${pkgname}-${version}.tar.bz2"
|
|
checksum=234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6
|
|
|
|
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"
|
|
|
|
subpackages="libzbar libzbar-devel"
|
|
|
|
if [ "$build_option_qt" ]; then
|
|
subpackages+=" libzbar-qt"
|
|
fi
|
|
|
|
pre_configure() {
|
|
export PYTHON_CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
|
autoreconf -fi
|
|
}
|
|
|
|
libzbar_package() {
|
|
short_desc+=" - library files"
|
|
pkg_install() {
|
|
vmove "usr/lib/libzbar.so.*"
|
|
vmove "usr/lib/libzbargtk.so.*"
|
|
}
|
|
}
|
|
|
|
libzbar-qt_package() {
|
|
conflicts="libzbar<0.10_10"
|
|
short_desc+=" - Qt bindings"
|
|
pkg_install() {
|
|
vmove "usr/lib/libzbarqt.so.*"
|
|
}
|
|
}
|
|
|
|
libzbar-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libzbar>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|