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.
This commit is contained in:
parent
8b6c9ea487
commit
f7b1168402
|
@ -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.
|
|
@ -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
|
||||
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"
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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) {
|
Loading…
Reference in New Issue