# $Id: Portfile 109344 2013-08-13 18:34:27Z jmr@macports.org $

PortSystem      1.0

name            libsdl2_net
set my_name     SDL2_net
version         2.0.0
platforms       darwin
categories      devel net
license         zlib
maintainers     jmr 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        http://www.libsdl.org/projects/SDL_net/
master_sites    ${homepage}release/
distname        ${my_name}-${version}

checksums       rmd160 dab3e92b2995903c79d5800369690ea0bd9b8b50 \
                sha256 d715be30783cc99e541626da52079e308060b21d4f7b95f0224b1d06c1faacab

depends_build   port:pkgconfig
depends_lib     port:libsdl2

configure.args  --disable-sdltest

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

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
