# -*- 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
# $Id: Portfile 54392 2009-07-26 12:08:51Z ryandesign@macports.org $

PortSystem          1.0

name                libenet
version             1.2
categories          net
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 e0d9f468d8c6f6bfd07083b3b40f5e69 \
                    sha1 8da3d1665e64b9f037a3e4d48d3477a846ba44e7 \
                    rmd160 1b68ceb791eecfeebb99762f334eacac2461eb19

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
}
