From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Mar 2025 13:17:35 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tusMZ-001S0p-1u for lore@lore.pengutronix.de; Wed, 19 Mar 2025 13:17:35 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tusMY-0000z7-LT; Wed, 19 Mar 2025 13:17:34 +0100 To: Date: Wed, 19 Mar 2025 13:17:01 +0100 MIME-Version: 1.0 Message-ID: List-Id: PTXdist Development Mailing List List-Post: From: Roman Schnider via ptxdist Precedence: list Cc: Roman Schnider X-Mailman-Version: 2.1.29 X-BeenThere: ptxdist@pengutronix.de List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: ptxdist@pengutronix.de List-Help: Subject: [ptxdist] [PATCH] zint: new package Content-Type: message/rfc822 Content-Disposition: inline Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Received: from mail.cab.de ([46.232.229.101]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tusMJ-0000yU-ST for ptxdist@pengutronix.de; Wed, 19 Mar 2025 13:17:20 +0100 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.cab.de 4ZHnlM1KnPzMvVRt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cab.de; s=default; t=1742386639; bh=7g3pWO5dUEL+IBWtSKBt7hiNPI5Qi6lQKQo8PKEmkfA=; h=From:To:CC:Subject:Date:From; b=CGy9F4O+zV/Dw6i0aRcK+z3UWRAar2DwZTftt5nhRNIY0tN2TrP/WnAupHW60dfFi M1JIgI0yyhWMi9m1BPswohBk53bi40jmDpG2c0V3bBWwyCNwyMiCdvcb093q7nYImX lWCA0j4QcTD0zPy75hUOI7VHPEEM0M4DQss4ifmE= X-cab-MailScanner-Watermark: 1742991438.92445@X1fKqnVlaIWVNPq4Zt1J1g X-cab-MailScanner-From: r.schnider@cab.de X-cab-MailScanner: Found to be clean X-cab-MailScanner-ID: 4ZHnlK4s5kzMvVT0 X-cab-MailScanner-Information: Please contact it@cab.de for more information Received: from Adranos.cab.de ([10.10.1.54] [10.10.1.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (no client certificate requested) by hephaistos.cab.de (MailScanner Milter) with SMTP id 4ZHnlK4s5kzMvVT0 for ; Wed, 19 Mar 2025 13:17:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.cab.de 4ZHnlK4s5kzMvVT0 Received: from KAN21-017.cab.de (10.10.3.134) by Adranos.cab.de (10.10.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Wed, 19 Mar 2025 13:17:25 +0100 From: Roman Schnider To: CC: Roman Schnider Date: Wed, 19 Mar 2025 13:17:01 +0100 Message-ID: <20250319121701.170805-1-r.schnider@cab.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.10.3.134] X-ClientProxiedBy: Adranos.cab.de (10.10.1.54) To Adranos.cab.de (10.10.1.54) X-SA-Exim-Connect-IP: 46.232.229.101 X-SA-Exim-Mail-From: r.schnider@cab.de X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [PATCH] zint: new package X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) X-PTX-Original-Recipient: ptxdist@pengutronix.de zint is a barcode encoding library supporting over 50 symbologies. It provides an encoding library (libzint) and a cli tool (zint). I omitted the Qt gui frontend and its backend. The cli tool is optional selectable. License: The library is released under the BSD (3 clause) license whereas the CLI is released under the GNU General Public License version 3 or later. See also README. Signed-off-by: Roman Schnider --- rules/zint.in | 17 ++++++++++++ rules/zint.make | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 rules/zint.in create mode 100644 rules/zint.make diff --git a/rules/zint.in b/rules/zint.in new file mode 100644 index 000000000..7ba8523d2 --- /dev/null +++ b/rules/zint.in @@ -0,0 +1,17 @@ +## SECTION=multimedia_libs + +menuconfig ZINT + tristate + select HOST_CMAKE + select LIBPNG if ZINT_FRONTEND + prompt "zint" + help + A barcode encoding library supporting over 50 symbologies. + +if ZINT + +config ZINT_FRONTEND + bool + prompt "build and install cli frontend" + +endif diff --git a/rules/zint.make b/rules/zint.make new file mode 100644 index 000000000..4a99fdf02 --- /dev/null +++ b/rules/zint.make @@ -0,0 +1,72 @@ +# -*-makefile-*- +# +# Copyright (C) 2025 by Roman Schnider +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_ZINT) += zint + +# +# Paths and names +# +ZINT_VERSION := 2.15.0 +ZINT_MD5 := ea0065f7ea67fca17a443bc064252340 +ZINT := zint-$(ZINT_VERSION) +ZINT_SUFFIX := tar.gz +ZINT_URL := https://sourceforge.net/projects/zint/files/zint/$(ZINT_VERSION)/$(ZINT)-src.$(ZINT_SUFFIX) +ZINT_SOURCE := $(SRCDIR)/$(ZINT).$(ZINT_SUFFIX) +ZINT_DIR := $(BUILDDIR)/$(ZINT) +ZINT_LICENSE := BSD-3-Clause AND GPL-3.0-or-later +ZINT_LICENSE_FILES := file://LICENSE;md5=7a60e5da828a98fbdf48c9a327c7cdfa \ + file://frontend/COPYING;md5=d32239bcb673463ab874e80d47fae504 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +ZINT_CONF_TOOL := cmake +ZINT_CONF_OPT := $(CROSS_CMAKE_USR) \ + -DZINT_COVERAGE=OFF \ + -DZINT_DEBUG=OFF \ + -DZINT_FRONTEND=$(call ptx/onoff,PTXCONF_ZINT_FRONTEND) \ + -DZINT_NOOPT=OFF \ + -DZINT_SANITIZE=OFF \ + -DZINT_SHARED=ON \ + -DZINT_STATIC=OFF \ + -DZINT_TEST=OFF \ + -DZINT_UNINSTALL=OFF \ + -DZINT_USE_PNG=$(call ptx/onoff,PTXCONF_ZINT_FRONTEND) \ + -DZINT_USE_QT=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/zint.targetinstall: + @$(call targetinfo) + + @$(call install_init, zint) + @$(call install_fixup, zint, PRIORITY, optional) + @$(call install_fixup, zint, SECTION, base) + @$(call install_fixup, zint, AUTHOR, "Roman Schnider ") + @$(call install_fixup, zint, DESCRIPTION, missing) + + @$(call install_lib, zint, 0, 0, 0644, libzint) + +ifdef PTXCONF_ZINT_FRONTEND + @$(call install_copy, zint, 0, 0, 0755, -, /usr/bin/zint) +endif + + @$(call install_finish, zint) + + @$(call touch) + +# vim: syntax=make -- 2.43.0