From patchwork Tue Oct 27 09:25:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volkov Viacheslav X-Patchwork-Id: 536513 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 6588714136A for ; Tue, 27 Oct 2015 20:35:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=inbox.ru header.i=@inbox.ru header.b=d21Zcc+U; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 61BB18D201; Tue, 27 Oct 2015 09:35:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fhjv38IMLdz7; Tue, 27 Oct 2015 09:35:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E28F08D1DE; Tue, 27 Oct 2015 09:35:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 74DBF1C1036 for ; Tue, 27 Oct 2015 09:35:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6E7CE8ADF2 for ; Tue, 27 Oct 2015 09:35:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OoBHb8v-HBEK for ; Tue, 27 Oct 2015 09:35:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fallback5.mail.ru (fallback5.mail.ru [94.100.181.253]) by hemlock.osuosl.org (Postfix) with ESMTP id CD7D789A47 for ; Tue, 27 Oct 2015 09:35:36 +0000 (UTC) Received: from smtp15.mail.ru (smtp15.mail.ru [94.100.176.133]) by fallback5.mail.ru (mPOP.Fallback_MX) with ESMTP id 02CE595D3409 for ; Tue, 27 Oct 2015 12:27:24 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Message-Id:Date:Subject:Cc:To:From; bh=takB/uAtrrQlqkH6XOYJM589wIskhWL1p2O629Ncasg=; b=d21Zcc+UHq2ZfZx6D0anAvTH5byVrjfve3a3glLsBh1VHfwYEkzigRG5m95jDCqEXqVaL8Um0Yg9lemur2NICNmYXEQkU247lOAxbTxWvgx6idwj49gGEfWweFZOKl9DKe8slLMHrBXWvLbwe5ij7m1GH2WyAWU6NJgeroIE39U=; Received: from tsvr.rost-sp.spb.ru ([91.219.66.11]:58449 helo=br2.rost.lan) by smtp15.mail.ru with esmtpa (envelope-from ) id 1Zr0XC-0004WL-Lf; Tue, 27 Oct 2015 12:27:14 +0300 From: Viacheslav Volkov To: buildroot@buildroot.org Date: Tue, 27 Oct 2015 12:25:09 +0300 Message-Id: <1445937910-26996-1-git-send-email-sv99@inbox.ru> X-Mailer: git-send-email 1.9.1 X-Mras: Ok Cc: Viacheslav Volkov Subject: [Buildroot] [PATCH 1/2] zbar: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" QR and barcode scanner library and gst-plugins-bad. Signed-off-by: Viacheslav Volkov --- package/Config.in | 1 + package/zbar/0001-zbar-autoconf.patch | 16 ++++++++++++++++ package/zbar/Config.in | 4 ++++ package/zbar/zbar.hash | 3 +++ package/zbar/zbar.mk | 22 ++++++++++++++++++++++ 5 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.hash 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@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..cad6e54 --- /dev/null +++ b/package/zbar/Config.in @@ -0,0 +1,4 @@ +config BR2_PACKAGE_ZBAR + bool "zbar" + help + QR and barcode scanner diff --git a/package/zbar/zbar.hash b/package/zbar/zbar.hash new file mode 100644 index 0000000..d466fdf --- /dev/null +++ b/package/zbar/zbar.hash @@ -0,0 +1,3 @@ +# Local computed: +sha256 38f8535a3c4c526ecaa968a992efcbf7392623e68db45dc2f181d4c9d3002d69 zbar-854a5d97059e395807091ac4d80c53f7968abb8f.tar.gz + 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))