From 16abf7e150c64d999b94a1b987cee7129cbe47c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 4 May 2017 10:34:43 +0200 Subject: [PATCH] New package: zbar-0.10 --- common/shlibs | 3 +++ srcpkgs/libzbar | 1 + srcpkgs/libzbar-devel | 1 + srcpkgs/zbar/patches/v4l1.patch | 24 ++++++++++++++++++++++ srcpkgs/zbar/template | 35 +++++++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 120000 srcpkgs/libzbar create mode 120000 srcpkgs/libzbar-devel create mode 100644 srcpkgs/zbar/patches/v4l1.patch create mode 100644 srcpkgs/zbar/template diff --git a/common/shlibs b/common/shlibs index 62d56b82ccf..cdbbc33fe29 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2795,6 +2795,9 @@ libgeoclue-2.so.0 geoclue2-2.4.4_1 libgepub.so.0 libgepub-0.4_1 libslopy.so.0.1.0 slop-5.3.37_1 libbcunit.so.1 bcunit-3.0_1 +libzbar.so.0 libzbar-0.10_1 +libzbargtk.so.0 libzbar-0.10_1 +libzbarqt.so.0 libzbar-0.10_1 libomxil-bellagio.so.0 libomxil-bellagio-0.9.3_1 libomxdynamicloader.so.0 libomxil-bellagio-0.9.3_1 libomxaudio_effects.so.0 libomxil-bellagio-0.9.3_1 diff --git a/srcpkgs/libzbar b/srcpkgs/libzbar new file mode 120000 index 00000000000..8660d16a458 --- /dev/null +++ b/srcpkgs/libzbar @@ -0,0 +1 @@ +zbar \ No newline at end of file diff --git a/srcpkgs/libzbar-devel b/srcpkgs/libzbar-devel new file mode 120000 index 00000000000..8660d16a458 --- /dev/null +++ b/srcpkgs/libzbar-devel @@ -0,0 +1 @@ +zbar \ No newline at end of file diff --git a/srcpkgs/zbar/patches/v4l1.patch b/srcpkgs/zbar/patches/v4l1.patch new file mode 100644 index 00000000000..150b0e69520 --- /dev/null +++ b/srcpkgs/zbar/patches/v4l1.patch @@ -0,0 +1,24 @@ +Thanks to Andy Weidenbaum for providing this patch! + +--- ./zbar/video/v4l1.c 2013-03-06 23:24:22.996336417 -0800 ++++ ./zbar/video/v4l1.c 2013-03-06 23:29:29.789662369 -0800 +@@ -41,7 +41,7 @@ + #ifdef HAVE_SYS_MMAN_H + # include + #endif +-#include ++#include + + #include "video.h" + #include "image.h" +--- ./configure 2009-10-23 11:17:24.000000000 -0700 ++++ ./configure 2013-03-06 23:47:33.902966990 -0800 +@@ -18709,7 +18709,7 @@ + if test "x$enable_video" != "xno"; then + if test "x$win32" = "xno"; then + +-for ac_header in linux/videodev.h ++for ac_header in libv4l1-videodev.h + do + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then diff --git a/srcpkgs/zbar/template b/srcpkgs/zbar/template new file mode 100644 index 00000000000..b608a208146 --- /dev/null +++ b/srcpkgs/zbar/template @@ -0,0 +1,35 @@ +# Template file for 'zbar' +pkgname=zbar +version=0.10 +revision=1 +build_style=gnu-configure +configure_args="--with-qt --with-gtk" +hostmakedepends="pkg-config qt-qmake qt-host-tools glib-devel" +makedepends="libmagick-devel libXv-devel pygtk-devel qt-devel v4l-utils-devel" +short_desc="A barcode reading library and application" +maintainer="Jürgen Buchmüller " +license="LGPL-2" +homepage="https://zbar.sourceforge.net/" +distfiles="$SOURCEFORGE_SITE/zbar/${version}/${pkgname}-${version}.tar.bz2" +checksum=234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6 +depends="libzbar-${version}_${revision}" + +CFLAGS="-DNDEBUG" + +libzbar_package() { + short_desc+=" - library files" + pkg_install() { + vmove "usr/lib/*.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" + } +}