PortSystem      1.0
PortGroup       github 1.0

name            libsdl2_net
github.setup    libsdl-org SDL_net 2.4.0 release-
categories      devel net
license         zlib
maintainers     {jmr @jmroot} openmaintainer
description     cross-platform networking library

long_description \
    This is a small sample cross-platform networking library, with a sample \
    chat client and server application. The chat client uses the GUIlib GUI \
    framework library.

github.tarball_from releases
distname        SDL2_net-${version}

checksums       rmd160 d58772586679658a4355f6b83b81ddff1a5eb704 \
                sha256 9cbca2527feb3f1a622d48ba65cc7dee9b1e3f2c55ceafb7d7720bb058aafb30

depends_build   path:bin/pkg-config:pkgconfig
depends_lib     port:libsdl2

configure.args  --disable-sdltest

compiler.blacklist *gcc-4.* { clang < 211 }

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \
        ${destroot}${prefix}/share/doc/${name}
}
