# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                libenet
version             1.2.1
categories          net
license             MIT
maintainers         openmaintainer \
                    gmail.com:olsner
description         ENet is a library for reliable communication on top of UDP.
long_description    ENet's purpose is to provide a relatively thin, simple and \
                    robust network communication layer on top of UDP. The \
                    primary feature it provides is optional reliable, in-order \
                    delivery of packets. \
                    ENet is NOT intended to be a general purpose high level \
                    networking library that handles authentication, lobbying, \
                    server discovery, compression, encryption and other high \
                    level, often application level or dependent tasks.
homepage            http://enet.bespin.org/
platforms           darwin
master_sites        http://enet.bespin.org/download/
distname            enet-${version}

checksums           md5     892fa7318812658e4485019d55abeea0 \
                    sha1    8ad77779415309b0eb343012b4442a20b418a3ab \
                    rmd160  998a71dfeb6b26d75f5094bf375224eb9fc011b9

use_parallel_build  yes

post-destroot {
    file mkdir ${destroot}${prefix}/lib/pkgconfig
    file copy ${filespath}/enet.pc ${destroot}${prefix}/lib/pkgconfig/enet.pc
    reinplace "s|@@prefix@@|${prefix}|" ${destroot}${prefix}/lib/pkgconfig/enet.pc
}

livecheck.name      enet