pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/zint



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Mar 14 12:24:54 UTC 2024

Added Files:
        pkgsrc/graphics/zint: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/graphics/zint/patches: patch-frontend_main.c

Log Message:
graphics/zint: import zint-2.13.0

Zint is a suite of programs to allow easy encoding of data in any
of the wide range of public domain barcode standards and to allow
integration of this capability into your own programs.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/zint/DESCR \
    pkgsrc/graphics/zint/Makefile pkgsrc/graphics/zint/PLIST \
    pkgsrc/graphics/zint/distinfo pkgsrc/graphics/zint/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/zint/patches/patch-frontend_main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/graphics/zint/DESCR
diff -u /dev/null pkgsrc/graphics/zint/DESCR:1.1
--- /dev/null   Thu Mar 14 12:24:54 2024
+++ pkgsrc/graphics/zint/DESCR  Thu Mar 14 12:24:54 2024
@@ -0,0 +1,3 @@
+Zint is a suite of programs to allow easy encoding of data in any
+of the wide range of public domain barcode standards and to allow
+integration of this capability into your own programs.
Index: pkgsrc/graphics/zint/Makefile
diff -u /dev/null pkgsrc/graphics/zint/Makefile:1.1
--- /dev/null   Thu Mar 14 12:24:54 2024
+++ pkgsrc/graphics/zint/Makefile       Thu Mar 14 12:24:54 2024
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2024/03/14 12:24:54 wiz Exp $
+
+DISTNAME=      zint-2.13.0-src
+PKGNAME=       ${DISTNAME:S/-src//}
+CATEGORIES=    graphics
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=zint/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.zint.org.uk/
+COMMENT=       Open source barcode generating solution
+#LICENSE=      BSD and GPL
+
+USE_LANGUAGES= c c++
+
+CMAKE_ARGS+=   -DMAN_INSTALL_DIR=${PREFIX}/${PKGMANDIR}
+
+.include "options.mk"
+.include "../../devel/cmake/build.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/zint/PLIST
diff -u /dev/null pkgsrc/graphics/zint/PLIST:1.1
--- /dev/null   Thu Mar 14 12:24:54 2024
+++ pkgsrc/graphics/zint/PLIST  Thu Mar 14 12:24:54 2024
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2024/03/14 12:24:54 wiz Exp $
+bin/zint
+${PLIST.qt5}bin/zint-qt
+${PLIST.qt5}include/qzint.h
+include/zint.h
+${PLIST.qt5}lib/libQZint.a
+lib/libzint.so
+lib/libzint.so.2.13
+lib/libzint.so.${PKGVERSION}.0
+man/man1/zint.1
+share/apps/cmake/modules/FindZint.cmake
+share/zint/zint-config.cmake
+share/zint/zint-targets-relwithdebinfo.cmake
+share/zint/zint-targets.cmake
Index: pkgsrc/graphics/zint/distinfo
diff -u /dev/null pkgsrc/graphics/zint/distinfo:1.1
--- /dev/null   Thu Mar 14 12:24:54 2024
+++ pkgsrc/graphics/zint/distinfo       Thu Mar 14 12:24:54 2024
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/03/14 12:24:54 wiz Exp $
+
+BLAKE2s (zint-2.13.0-src.tar.gz) = da36bfc5423c9fc6a97a4d8b8b3ab3d34006b5b91ad542267a295f6cf70f2354
+SHA512 (zint-2.13.0-src.tar.gz) = 8dacd8088ab9c99ea64bf1aa49b618251d1e2d49382817d536a824ef25d9e8f0e2d8dbd0baa5dc1b4945dbede83d1af08e9f317107b1356a3ceb382acb6dd8c2
+Size (zint-2.13.0-src.tar.gz) = 6186118 bytes
+SHA1 (patch-frontend_main.c) = 406fe2c97e45f3f34f5f6b2aee8d27f0764592be
Index: pkgsrc/graphics/zint/options.mk
diff -u /dev/null pkgsrc/graphics/zint/options.mk:1.1
--- /dev/null   Thu Mar 14 12:24:54 2024
+++ pkgsrc/graphics/zint/options.mk     Thu Mar 14 12:24:54 2024
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2024/03/14 12:24:54 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.zint
+PKG_SUPPORTED_OPTIONS+=        qt5
+PKG_SUGGESTED_OPTIONS+=        qt5
+
+# TODO: add qt6 support
+#CMAKE_ARGS+=  -DZINT_QT6=ON
+
+PLIST_VARS+=   qt5
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mqt5)
+PLIST.qt5=     yes
+.include "../../x11/qt5-qtsvg/buildlink3.mk"
+.include "../../x11/qt5-qttools/buildlink3.mk"
+.endif

Index: pkgsrc/graphics/zint/patches/patch-frontend_main.c
diff -u /dev/null pkgsrc/graphics/zint/patches/patch-frontend_main.c:1.1
--- /dev/null   Thu Mar 14 12:24:54 2024
+++ pkgsrc/graphics/zint/patches/patch-frontend_main.c  Thu Mar 14 12:24:54 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-frontend_main.c,v 1.1 2024/03/14 12:24:54 wiz Exp $
+
+NetBSD does not support getopt_long_only.
+
+--- frontend/main.c.orig       2024-03-14 12:03:48.639294632 +0000
++++ frontend/main.c
+@@ -1443,7 +1443,7 @@ int main(int argc, char **argv) {
+     win_args(&argc, &argv);
+ #endif
+ 
+-    opterr = 0; /* Disable `getopt_long_only()` printing errors */
++    opterr = 0; /* Disable `getopt_long()` printing errors */
+     while (1) {
+         enum options {
+             OPT_ADDONGAP = 128, OPT_BATCH, OPT_BINARY, OPT_BG, OPT_BIND, OPT_BIND_TOP, OPT_BOLD, OPT_BORDER, OPT_BOX,
+@@ -1542,7 +1542,7 @@ int main(int argc, char **argv) {
+             {"whitesp", 1, NULL, 'w'},
+             {NULL, 0, NULL, 0}
+         };
+-        const int c = getopt_long_only(argc, argv, "b:d:ehi:o:rtvw:", long_options, NULL);
++        const int c = getopt_long(argc, argv, "b:d:ehi:o:rtvw:", long_options, NULL);
+         if (c == -1) break;
+ 
+         switch (c) {



Home | Main Index | Thread Index | Old Index