# -*- 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        btzy nativefiledialog-extended 1.4.1 v
github.tarball_from archive
revision            0

categories          devel aqua
platforms           macosx
license             zlib
maintainers         {@herbygillot gmail.com:herby.gillot} openmaintainer

description         Native file dialogs for C and C++ applications
long_description    Native File Dialog Extended provides a small C library for \
                    native file open, folder selection and file save dialogs, \
                    with optional C++ wrappers. It uses AppKit on macOS.

checksums           rmd160  11f60541214ddf18c54a1d1e6de58df0d5a35f2a \
                    sha256  4a01eafa921169f009f3e83bea8e287d9e5d0b94ca9064cf7f0a546652d7c884 \
                    size    438898

compiler.cxx_standard 2011

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DCMAKE_CXX_STANDARD=11 \
                    -DNFD_BUILD_TESTS=OFF \
                    -DNFD_BUILD_SDL2_TESTS=OFF \
                    -DNFD_BUILD_SDL3_TESTS=OFF \
                    -DNFD_BUILD_GLFW3_TESTS=OFF \
                    -DNFD_INSTALL=ON

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${docdir}
}
