# -*- 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

name                libmicrohttpd
version             1.0.11
revision            0

categories          www
license             LGPL-2.1+
maintainers         {snc @nerdling} openmaintainer
description         Light HTTP/1.1 server library.
long_description    \
                    GNU libmicrohttpd is a small C library that is \
                    supposed to make it easy to run an HTTP server as \
                    part of another application. GNU libmicrohttpd is \
                    free software and part of the GNU project.
homepage            https://www.gnu.org/software/libmicrohttpd/
master_sites        gnu

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         path:lib/pkgconfig/gnutls.pc:gnutls \
                    port:libgcrypt

checksums           rmd160  c6f629c5065d056f2bf83ad0573e7ca20896176b \
                    sha256  f227a044b75688e449b58ddedf0582255cc562899ff69f173a8ef76439744b4e \
                    size    2626394

configure.args      --enable-build-type=release-compact \
                    --disable-examples \
                    --enable-https \
                    --enable-md5=tlslib \
                    --enable-sha256=tlslib \
                    --enable-shared \
                    --disable-silent-rules \
                    --enable-static \
                    --with-gnutls \
                    --with-threads=posix

# Tests fail to link due to weird weak symbol semantics;
# feel free to take a crack at fixing it if you want.
#
# If you do, remember to add curl as a build and test dependency
# and consider adding the --enable-heavy-tests[={basic,full}] configure flag.
test.run            no
test.target         check
