import zint 2.4.3
Zint is a C library for encoding data in several barcode variants. The bundled command-line utility provides a simple interface to the library. Features of the library: - Over 50 symbologies including all ISO/IEC standards, like QR codes. - Unicode translation for symbologies which support Latin-1 and Kanji character sets. [...] from Kirill Bychkov (MAINTAINER) with tweaks by me and sthen@ ok sthen@
This commit is contained in:
parent
8823bce600
commit
fe8b4a58f7
62
graphics/zint/Makefile
Normal file
62
graphics/zint/Makefile
Normal file
@ -0,0 +1,62 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/12/23 15:08:07 jasper Exp $
|
||||
|
||||
COMMENT-main = library for encoding data in several barcode variants
|
||||
COMMENT-x11 = graphical interface for the zint barcode generator
|
||||
|
||||
V = 2.4.3
|
||||
DISTNAME = zint-${V}
|
||||
PKGNAME-main = ${DISTNAME}
|
||||
PKGNAME-x11 = zint-gui-${V}
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
SHARED_LIBS += QZint 0.0 # 2.4
|
||||
SHARED_LIBS += zint 0.0 # 2.4
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
MAINTAINER = Kirill Bychkov <yason@linklevel.net>
|
||||
|
||||
# GPLv3+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
cWANTLIB = c m png z
|
||||
WANTLIB-main = ${cWANTLIB}
|
||||
WANTLIB-x11 = ${cWANTLIB} QtCore QtGui QtXml pthread stdc++ zint
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=zint/}
|
||||
|
||||
MODULES = devel/cmake
|
||||
|
||||
CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=RELEASE
|
||||
|
||||
LIB_DEPENDS = graphics/png
|
||||
|
||||
MULTI_PACKAGES = -main
|
||||
|
||||
PSEUDO_FLAVORS = no_x11
|
||||
FLAVOR ?=
|
||||
|
||||
REGRESS_DEPENDS = ${BASE_PKGPATH},-main
|
||||
|
||||
.if !${FLAVOR:Mno_x11}
|
||||
MULTI_PACKAGES += -x11
|
||||
MODULES += x11/qt4
|
||||
LIB_DEPENDS-x11 += ${BASE_PKGPATH},-main \
|
||||
${MODQT4_LIB_DEPENDS}
|
||||
RUN_DEPENDS-x11 += devel/desktop-file-utils
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
|
||||
${INSTALL_DATA} ${WRKSRC}/zint-qt.desktop ${PREFIX}/share/applications/
|
||||
${INSTALL_DATA} ${WRKSRC}/zint.png ${PREFIX}/share/pixmaps/
|
||||
.endif
|
||||
|
||||
do-regress:
|
||||
cd ${WRKSRC}/frontend/ && /bin/sh ./test.sh
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/zint/distinfo
Normal file
5
graphics/zint/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (zint-2.4.3.tar.gz) = K0fK/4jLdG8hLWoElxhTWA==
|
||||
RMD160 (zint-2.4.3.tar.gz) = n3bXQjRS+P6QfAEGMwrZhFCKftA=
|
||||
SHA1 (zint-2.4.3.tar.gz) = MAcy0Dx3zPEDHEhaIPCbUUle9aM=
|
||||
SHA256 (zint-2.4.3.tar.gz) = 3i9P0NAIUwUR9d6iz/f5b0XfTAKbV0MbJBG34fOlI+g=
|
||||
SIZE (zint-2.4.3.tar.gz) = 403544
|
12
graphics/zint/patches/patch-backend_CMakeLists_txt
Normal file
12
graphics/zint/patches/patch-backend_CMakeLists_txt
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-backend_CMakeLists_txt,v 1.1.1.1 2011/12/23 15:08:07 jasper Exp $
|
||||
--- backend/CMakeLists.txt.orig Mon Apr 4 14:03:37 2011
|
||||
+++ backend/CMakeLists.txt Mon Apr 4 14:03:58 2011
|
||||
@@ -11,7 +11,7 @@ set(zint_TWODIM_SRCS code16k.c dmatrix.c pdf417.c qr.c
|
||||
set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} )
|
||||
|
||||
if(PNG_FOUND)
|
||||
- include_directories( ${PNG_INCLUDES} )
|
||||
+ include_directories( ${PNG_INCLUDE_DIR} )
|
||||
else(PNG_FOUND)
|
||||
add_definitions (-DNO_PNG)
|
||||
endif(PNG_FOUND)
|
17
graphics/zint/patches/patch-backend_common_c
Normal file
17
graphics/zint/patches/patch-backend_common_c
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-backend_common_c,v 1.1.1.1 2011/12/23 15:08:07 jasper Exp $
|
||||
--- backend/common.c.orig Mon May 16 21:12:46 2011
|
||||
+++ backend/common.c Mon Nov 14 20:01:43 2011
|
||||
@@ -127,6 +127,13 @@ void lookup(char set_string[], char *table[], char dat
|
||||
|
||||
int module_is_set(struct zint_symbol *symbol, int y_coord, int x_coord)
|
||||
{
|
||||
+ /* be sure you have y_coord <= ZINT_ROWS_MAX or (x_coord/7) <= ZINT_COLS_MAX
|
||||
+ without this you will have coredump, be sure module_is_set(symbol, this_row, i + block_width) != module_is_set(symbol, this_row, i) */
|
||||
+ if(y_coord > ZINT_ROWS_MAX)
|
||||
+ return y_coord;
|
||||
+ if((x_coord/7) > ZINT_COLS_MAX)
|
||||
+ return x_coord;
|
||||
+
|
||||
return (symbol->encoded_data[y_coord][x_coord / 7] >> (x_coord % 7)) & 1;
|
||||
#if 0
|
||||
switch(x_sub) {
|
13
graphics/zint/pkg/DESCR-main
Normal file
13
graphics/zint/pkg/DESCR-main
Normal file
@ -0,0 +1,13 @@
|
||||
Zint is a C library for encoding data in several barcode variants. The
|
||||
bundled command-line utility provides a simple interface to the library.
|
||||
Features of the library:
|
||||
- Over 50 symbologies including all ISO/IEC standards, like QR codes.
|
||||
- Unicode translation for symbologies which support Latin-1 and
|
||||
Kanji character sets.
|
||||
- Full GS1 support including data verification and automated insertion
|
||||
of FNC1 characters.
|
||||
- Support for encoding binary data including NULL (ASCII 0) characters.
|
||||
- Health Industry Barcode (HIBC) encoding capabilities.
|
||||
- Output in PNG, EPS and SVG formats with user adjustable sizes and
|
||||
colors.
|
||||
- Verification stage for SBN, ISBN and ISBN-13 data.
|
4
graphics/zint/pkg/DESCR-x11
Normal file
4
graphics/zint/pkg/DESCR-x11
Normal file
@ -0,0 +1,4 @@
|
||||
Zint Barcode Studio is a Qt-based GUI which allows desktop users to
|
||||
generate barcodes which can then be embedded in documents or HTML pages,
|
||||
and a library which can be used to incorporate barcode generation
|
||||
functionality into other software.
|
5
graphics/zint/pkg/PLIST-main
Normal file
5
graphics/zint/pkg/PLIST-main
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2011/12/23 15:08:07 jasper Exp $
|
||||
@bin bin/zint
|
||||
include/zint.h
|
||||
@lib lib/libzint.so.${LIBzint_VERSION}
|
||||
share/cmake/Modules/FindZint.cmake
|
9
graphics/zint/pkg/PLIST-x11
Normal file
9
graphics/zint/pkg/PLIST-x11
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST-x11,v 1.1.1.1 2011/12/23 15:08:07 jasper Exp $
|
||||
@bin bin/zint-qt
|
||||
include/qzint.h
|
||||
@lib lib/libQZint.so.${LIBQZint_VERSION}
|
||||
share/applications/zint-qt.desktop
|
||||
share/pixmaps/
|
||||
share/pixmaps/zint.png
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
Loading…
x
Reference in New Issue
Block a user