# $Id$

PortSystem      1.0

name            libsdl_net
set my_name     SDL_net
version         1.2.8
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/${my_name}/release-1.2.html
master_sites    http://www.libsdl.org/projects/${my_name}/release/
distname        ${my_name}-${version}

checksums       rmd160 44262f5d4c68c9b525fce04ebe83e03cd7e005a4 \
                sha256 5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4

depends_build   port: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  regex
livecheck.url   ${homepage}
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)