# -*- 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
PortGroup           github 1.0

github.setup        dugsong libdnet 1.12 libdnet-
revision            2
categories          net
license             BSD
maintainers         nomaintainer

description         portable low-level networking library
long_description    libdnet provides a simplified, portable interface to \
                    several low-level networking routines, including: \
                    network address manipulation, kernel arp(4) cache and \
                    route(4) table lookup and manipulation, network \
                    firewalling (IP filter, ipfw, ipchains, pf, ...), \
                    network interface lookup and manipulation, raw IP packet \
                    and Ethernet frame transmission.
platforms           darwin

checksums           rmd160  02345c0d0d3a734e5d09985e0f04c40eab0c6136 \
                    sha256  65524a1aba379005995aabdccac27d92698507aac0af7e9fa005c136f6be1b46

post-extract {
    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
}

patchfiles          patch-automake-1.13.diff

# build shared libraries for the correct suffix; use archflags; fix mandir
use_autoreconf      yes
# simplify once MacPorts 2.3 is released
autoreconf.pre_args
autoreconf.args     --install --verbose
autoreconf.args-append  -I config