mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] zint: new package
@ 2025-03-19 12:17 Roman Schnider via ptxdist
  0 siblings, 0 replies; only message in thread
From: Roman Schnider via ptxdist @ 2025-03-19 12:17 UTC (permalink / raw)
  To: ptxdist; +Cc: Roman Schnider


[-- 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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-19 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-19 12:17 [ptxdist] [PATCH] zint: new package Roman Schnider via ptxdist

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