# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        jmcnamara libxlsxwriter 1.1.9 v
revision            0

categories          textproc devel
license             FreeBSD
maintainers         nomaintainer
description         Library for creating Excel XLSX files
long_description    ${name} is a C library that can be used to write text, \
                    numbers, formulas and hyperlinks to multiple worksheets \
                    in an Excel 2007+ XLSX file.
homepage            https://libxlsxwriter.github.io
checksums           rmd160  5c242e063d6beb3942a80e41e15c81115680ccea \
                    sha256  03ae330d50f74c8a70be0b06b52bd50868f7cd1251ed040fe3b68d1ad6fd11dc \
                    size    21840995
github.tarball_from archive

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:minizip \
                    port:zlib

configure.args-append \
                    -DBUILD_EXAMPLES=OFF \
                    -DBUILD_SHARED_LIBS=ON \
                    -DBUILD_TESTS=OFF \
                    -DIOAPI_NO_64=OFF \
                    -DUSE_DTOA_LIBRARY=OFF \
                    -DUSE_NO_MD5=OFF \
                    -DUSE_OPENSSL_MD5=OFF \
                    -DUSE_SYSTEM_MINIZIP=ON \
                    -DZLIB_ROOT=${prefix}
