# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.1

github.setup        3MFConsortium lib3mf 2.3.2 v
github.tarball_from archive
revision            0

categories          print graphics devel
license             BSD
maintainers         {judaew @judaew} openmaintainer

description         \
    lib3mf is an implementation of the 3D Manufacturing Format file standard.
long_description    \
    {*}${description}\nIt provides 3MF reading and writing capabilities, as \
    well as conversion and validation tools for input and output data. lib3mf \
    runs on Windows, Linux and MacOS and offers a clean and easy-to-use API in \
    various programming languages to speed up the development and keep \
    integration costs at a minimum.\nAs 3MF shall become an universal 3D \
    Printing standard, its quick adoption is very important. This library \
    shall lower all barriers of adoption to any possible user, let it be \
    software providers, hardware providers, service providers or middleware \
    tools.
homepage            https://3mf.io

checksums           rmd160  7fc3af6d0e79e0373c62af52bf818f4ff1a50808 \
                    sha256  6e95b05463209425d80ba0e2244fe42f3c761054f6a9e9275a6c81aafea02d05 \
                    size    35247937

depends_build-append \
                    port:pkgconfig

# CMakeLists.txt says it uses libressl, but works with openssl too
depends_lib-append  path:lib/libssl.dylib:openssl \
                    port:libzip \
                    port:zlib

configure.args-append \
                    -DCMAKE_INSTALL_INCLUDEDIR=include/${name} \
                    -DLIB3MF_TESTS=OFF \
                    -DUSE_INCLUDED_LIBZIP=OFF \
                    -DUSE_INCLUDED_SSL=OFF \
                    -DUSE_INCLUDED_ZLIB=OFF

compiler.cxx_standard \
                    2011

github.livecheck.regex  {([0-9.]+)}