diff options
author | wen <wen@FreeBSD.org> | 2010-03-26 15:21:07 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-03-26 15:21:07 +0800 |
commit | e2e19ff2fc49d5bdf4ab80551ca158092f0c2efd (patch) | |
tree | 649c0fb0bbd7613af9043bdbe0775ba61424119e /graphics | |
parent | b43578bbe8950d67d8731bdb5cd234b45d0e1aa2 (diff) | |
download | freebsd-ports-graphics-e2e19ff2fc49d5bdf4ab80551ca158092f0c2efd.tar.gz freebsd-ports-graphics-e2e19ff2fc49d5bdf4ab80551ca158092f0c2efd.tar.zst freebsd-ports-graphics-e2e19ff2fc49d5bdf4ab80551ca158092f0c2efd.zip |
A barcode encoding library supporting over 50 symbologies including Code 128,
Data Matrix, USPS OneCode, EAN-128, UPC/EAN, ITF, QR Code, Code 16k, PDF417,
MicroPDF417, LOGMARS, Maxicode, GS1 DataBar, Aztec, Composite Symbols and more.
WWW: http://www.zint.org.uk/
PR: ports/144958
Submitted by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/zint/Makefile | 27 | ||||
-rw-r--r-- | graphics/zint/distinfo | 3 | ||||
-rw-r--r-- | graphics/zint/files/patch-backend_CMakeLists.txt | 24 | ||||
-rw-r--r-- | graphics/zint/files/patch-backend_code1.c | 13 | ||||
-rw-r--r-- | graphics/zint/files/patch-backend_maxicode.c | 13 | ||||
-rw-r--r-- | graphics/zint/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/zint/pkg-plist | 11 |
8 files changed, 97 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 79131093efb..b20ec97dbed 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -988,6 +988,7 @@ SUBDIR += yukon SUBDIR += zgv SUBDIR += zimg + SUBDIR += zint SUBDIR += zphoto .include <bsd.port.subdir.mk> diff --git a/graphics/zint/Makefile b/graphics/zint/Makefile new file mode 100644 index 00000000000..6e5a19633c7 --- /dev/null +++ b/graphics/zint/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: zint +# Date created: 2010-03-13 +# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com> +# +# $FreeBSD$ +# + +PORTNAME= zint +PORTVERSION= 2.3.1 +CATEGORIES= graphics +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/ +DISTNAME= ${PORTNAME}-${PORTVERSION}.src + +MAINTAINER= g.veniamin@googlemail.com +COMMENT= Zint Barcode Generator + +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png + +USE_CMAKE= yes +CMAKE_USE_PTHREAD= yes +USE_LDCONFIG= yes +USE_QT_VER= 4 +QT_COMPONENTS= gui xml qmake_build uic_build moc_build rcc_build designer + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +.include <bsd.port.mk> diff --git a/graphics/zint/distinfo b/graphics/zint/distinfo new file mode 100644 index 00000000000..b51c6e68b3f --- /dev/null +++ b/graphics/zint/distinfo @@ -0,0 +1,3 @@ +MD5 (zint-2.3.1.src.tar.gz) = d8e12cc60505e3e89b99fc16ff6b38b8 +SHA256 (zint-2.3.1.src.tar.gz) = 2d997a9fb825370adedd2c0ad8491d79460635f707b9878d0e39f07b2a164388 +SIZE (zint-2.3.1.src.tar.gz) = 490520 diff --git a/graphics/zint/files/patch-backend_CMakeLists.txt b/graphics/zint/files/patch-backend_CMakeLists.txt new file mode 100644 index 00000000000..e8d354cddcb --- /dev/null +++ b/graphics/zint/files/patch-backend_CMakeLists.txt @@ -0,0 +1,24 @@ + +$FreeBSD$ + +--- backend/CMakeLists.txt.orig ++++ backend/CMakeLists.txt +@@ -2,7 +2,8 @@ + + project(zint) + +-find_package(PNG) ++find_package(PNG REQUIRED) ++include_directories(${PNG_INCLUDE_DIR}) + + set(zint_COMMON_SRCS common.c library.c ps.c large.c reedsol.c gs1.c svg.c png.c) + set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c) +@@ -21,7 +22,7 @@ + set_target_properties(zint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}" + VERSION ${ZINT_VERSION}) + +-target_link_libraries(zint ${PNG_LIBRARIES} ) ++target_link_libraries(zint ${PNG_LIBRARY} ) + + install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS} ) + install(FILES zint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel) diff --git a/graphics/zint/files/patch-backend_code1.c b/graphics/zint/files/patch-backend_code1.c new file mode 100644 index 00000000000..f6a225480d6 --- /dev/null +++ b/graphics/zint/files/patch-backend_code1.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- backend/code1.c.orig ++++ backend/code1.c +@@ -28,7 +28,6 @@ + #ifdef __APPLE__ + #include <sys/malloc.h> + #else +-#include <malloc.h> + #endif + + void horiz(struct zint_symbol *symbol, int row_no, int full) diff --git a/graphics/zint/files/patch-backend_maxicode.c b/graphics/zint/files/patch-backend_maxicode.c new file mode 100644 index 00000000000..f6b242d32e5 --- /dev/null +++ b/graphics/zint/files/patch-backend_maxicode.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- backend/maxicode.c.orig ++++ backend/maxicode.c +@@ -29,7 +29,6 @@ + #ifdef __APPLE__ + #include <sys/malloc.h> + #else +-#include <malloc.h> + #endif + + int maxi_codeword[144]; diff --git a/graphics/zint/pkg-descr b/graphics/zint/pkg-descr new file mode 100644 index 00000000000..f35d8ac1e17 --- /dev/null +++ b/graphics/zint/pkg-descr @@ -0,0 +1,5 @@ +A barcode encoding library supporting over 50 symbologies including Code 128, +Data Matrix, USPS OneCode, EAN-128, UPC/EAN, ITF, QR Code, Code 16k, PDF417, +MicroPDF417, LOGMARS, Maxicode, GS1 DataBar, Aztec, Composite Symbols and more. + +WWW: http://www.zint.org.uk/ diff --git a/graphics/zint/pkg-plist b/graphics/zint/pkg-plist new file mode 100644 index 00000000000..baff23a4888 --- /dev/null +++ b/graphics/zint/pkg-plist @@ -0,0 +1,11 @@ +bin/zint +bin/zint-qt +include/qzint.h +include/zint.h +lib/libQZint.so +lib/libQZint.so.2.3 +lib/libQZint.so.2.3.1 +lib/libzint.so +lib/libzint.so.2.3 +lib/libzint.so.2.3.1 +share/cmake/Modules/FindZint.cmake |