mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roman Schnider via ptxdist <ptxdist@pengutronix.de>
To: <ptxdist@pengutronix.de>
Cc: Roman Schnider <r.schnider@cab.de>
Subject: [ptxdist] [PATCH] zint: new package
Date: Wed, 19 Mar 2025 13:17:01 +0100	[thread overview]
Message-ID: <mailman.2867.1742386640.466.ptxdist@pengutronix.de> (raw)


[-- Attachment #0: Type: message/rfc822, Size: 5947 bytes --]

From: Roman Schnider <r.schnider@cab.de>
To: <ptxdist@pengutronix.de>
Cc: Roman Schnider <r.schnider@cab.de>
Subject: [PATCH] zint: new package
Date: Wed, 19 Mar 2025 13:17:01 +0100
Message-ID: <20250319121701.170805-1-r.schnider@cab.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 <r.schnider@cab.de>
---
 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 <r.schnider@cab.de>
+#
+# 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 <r.schnider@cab.de>")
+	@$(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





                 reply	other threads:[~2025-03-19 12:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mailman.2867.1742386640.466.ptxdist@pengutronix.de \
    --to=ptxdist@pengutronix.de \
    --cc=r.schnider@cab.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox