Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 2/2] gst-plugins-bad: add zbar plugin
@ 2015-10-29  6:45 Viacheslav Volkov
  2015-12-20 12:45 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Viacheslav Volkov @ 2015-10-29  6:45 UTC (permalink / raw)
  To: buildroot

Add gstreamer zbar plugin.
 
Signed-off-by: Viacheslav Volkov <sv99@inbox.ru>
---
 package/gstreamer/gst-plugins-bad/Config.in          | 4 ++++
 package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/package/gstreamer/gst-plugins-bad/Config.in b/package/gstreamer/gst-plugins-bad/Config.in
index 6aa93de..3bfd12b 100644
--- a/package/gstreamer/gst-plugins-bad/Config.in
+++ b/package/gstreamer/gst-plugins-bad/Config.in
@@ -319,4 +319,8 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VP8
 	bool "vp8"
 	select BR2_PACKAGE_LIBVPX
 
+config BR2_PACKAGE_GST_PLUGINS_BAD_ZBAR
+	bool "zbar"
+	select BR2_PACKAGE_ZBAR
+
 endif
diff --git a/package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk b/package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk
index 0a85603..1c80593 100644
--- a/package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk
+++ b/package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk
@@ -585,4 +585,11 @@ else
 GST_PLUGINS_BAD_CONF_OPTS += --disable-vp8
 endif
 
+ifeq ($(BR2_PACKAGE_GST_PLUGINS_BAD_ZBAR),y)
+GST_PLUGINS_BAD_CONF_OPTS += --enable-zbar
+GST_PLUGINS_BAD_DEPENDENCIES += zbar
+else
+GST_PLUGINS_BAD_CONF_OPTS += --disable-zbar
+endif
+
 $(eval $(autotools-package))
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2 1/2] zbar: new package
@ 2015-10-27 10:07 Viacheslav Volkov
  2015-10-27 10:07 ` [Buildroot] [PATCH v2 2/2] gst-plugins-bad: add zbar plugin Viacheslav Volkov
  0 siblings, 1 reply; 3+ messages in thread
From: Viacheslav Volkov @ 2015-10-27 10:07 UTC (permalink / raw)
  To: buildroot

QR and barcode scanner library and gst-plugins-bad.

Signed-off-by: Viacheslav Volkov <sv99@inbox.ru>
---
 package/Config.in                     |  1 +
 package/zbar/0001-zbar-autoconf.patch | 16 ++++++++++++++++
 package/zbar/Config.in                |  7 +++++++
 package/zbar/zbar.mk                  | 22 ++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 100644 package/zbar/0001-zbar-autoconf.patch
 create mode 100644 package/zbar/Config.in
 create mode 100644 package/zbar/zbar.mk

diff --git a/package/Config.in b/package/Config.in
index 10ff94e..778b1e1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -854,6 +854,7 @@ menu "Graphics"
 	source "package/webkit/Config.in"
 	source "package/webkitgtk24/Config.in"
 	source "package/webp/Config.in"
+	source "package/zbar/Config.in"
 	source "package/zxing-cpp/Config.in"
 endmenu
 
diff --git a/package/zbar/0001-zbar-autoconf.patch b/package/zbar/0001-zbar-autoconf.patch
new file mode 100644
index 0000000..159f75e
--- /dev/null
+++ b/package/zbar/0001-zbar-autoconf.patch
@@ -0,0 +1,16 @@
+diff --git a/configure.ac b/configure.ac
+index 256aedb..5aa5689 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,10 +3,11 @@ AC_PREREQ([2.61])
+ AC_INIT([zbar], [0.10], [spadix at users.sourceforge.net])
+ AC_CONFIG_AUX_DIR(config)
+ AC_CONFIG_MACRO_DIR(config)
+-AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign subdir-objects std-options dist-bzip2])
++AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-portability foreign subdir-objects std-options dist-bzip2])
+ AC_CONFIG_HEADERS([include/config.h])
+ AC_CONFIG_SRCDIR(zbar/scanner.c)
+ LT_PREREQ([2.2])
++m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+ LT_INIT([dlopen win32-dll])
+ LT_LANG([Windows Resource])
diff --git a/package/zbar/Config.in b/package/zbar/Config.in
new file mode 100644
index 0000000..98bea66
--- /dev/null
+++ b/package/zbar/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_ZBAR
+	bool "zbar"
+    select BR2_PACKAGE_LIBV4L
+	help
+	    QR and barcode scanner
+
+		http://zbar.sourceforge.net/
diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
new file mode 100644
index 0000000..91527a1
--- /dev/null
+++ b/package/zbar/zbar.mk
@@ -0,0 +1,22 @@
+#############################################################
+#
+# zbar
+#
+#############################################################
+
+#ZBAR_VERSION = 0.10
+#ZBAR_SITE = http://downloads.sourceforge.net/project/zbar/zbar/$(ZBAR_VERSION)
+ZBAR_VERSION = 854a5d97059e395807091ac4d80c53f7968abb8f
+ZBAR_SITE = $(call github,ZBar,Zbar,$(ZBAR_VERSION))
+ZBAR_INSTALL_STAGING = YES
+ZBAR_AUTORECONF = YES
+ZBAR_DEPENDENCIES = libv4l
+ZBAR_CONF_OPTS = --without-imagemagick --without-qt --without-gtk --without-python --without-x --without-jpeg --enable-shared=yes
+
+ZBAR_POST_BUILD_HOOKS += ZBAR_INSTALL_FIXUP
+
+define ZBAR_INSTALL_FIXUP
+	touch $(@D)/doc/man/zbarcam.1
+endef
+
+$(eval $(autotools-package))
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-20 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29  6:45 [Buildroot] [PATCH v2 2/2] gst-plugins-bad: add zbar plugin Viacheslav Volkov
2015-12-20 12:45 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2015-10-27 10:07 [Buildroot] [PATCH v2 1/2] zbar: new package Viacheslav Volkov
2015-10-27 10:07 ` [Buildroot] [PATCH v2 2/2] gst-plugins-bad: add zbar plugin Viacheslav Volkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox