PortSystem      1.0
PortGroup       github 1.0

github.setup    libsdl-org SDL_net a226428f2d8c041ed1b280b1558e4ee3e03762fb
name            libsdl_net
version         1.2.8-20220916
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.

homepage        https://web.archive.org/web/20220113201851/https://www.libsdl.org/projects/SDL_net/release-1.2.html

github.tarball_from archive
checksums       rmd160 0d0b664247e8bf84c6cdd7467a922d5d22d98120 \
                sha256 d3498f41682ef28f93a45e8487f14d583e7c4af002e9e21d77ce169ca6476537

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

configure.args  --disable-sdltest

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

livecheck.type  none
