# $Id$

PortSystem      1.0

name            libsdl2_net
set my_name     SDL2_net
version         2.0.1
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 58d27e62ddf40068243e68148fdd98cad0f89832 \
                sha256 15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21

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+)*)