Files

58 lines
1.8 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.1
PortGroup qt5 1.0
PortGroup app 1.0
name zint
platforms darwin macosx
categories textproc
license GPL-3
maintainers {ra1nb0w @ra1nb0w} openmaintainer
description A barcode encoding library
long_description ${name} is 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.
github.setup woo-j zint 2.12.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
checksums rmd160 864d083ba336b3fbe8452712ad88b0cfce53f408 \
sha256 e51e50b4ddd873adcf4e2f1e6343d72e80c6eaf049508442954e46b0a80cce4b \
size 5951303
revision 0
patchfiles-append disable_bundle.patch
#-----------------------------------------------------------------------------------------
# Fix compile error on 10.7 buildot:
#
# zint-2.10.0/frontend_qt/barcodeitem.cpp:26:23: error: expected a class or namespace
# ar = Zint::QZint::AspectRatioMode::IgnoreAspectRatio;
# ~~~~~~~~~~~~~^
#-----------------------------------------------------------------------------------------
compiler.blacklist-append \
{ clang < 500 }
depends_lib-append \
port:libpng \
port:zlib
qt5.depends_component \
qttools
configure.args-append \
-DZINT_USE_PNG=ON \
-DZINT_USE_QT=ON
app.executable zint-qt
app.icon zint-qt.png
app.retina yes
test.run yes
test.cmd zint -h