# -*- 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        libevent libevent 2.1.12 release- -stable
revision            2
checksums           rmd160  1fdb4e00ee9fc1be5e91f61ccaa63dd847e9b341 \
                    sha256  92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb \
                    size    1100847

categories          devel
platforms           darwin
license             BSD
maintainers         {gmail.com:jerryyhom @jerryyhom} openmaintainer

description         An event notification library

long_description    The libevent API provides a mechanism to execute \
                    a callback function when a specific event occurs \
                    on a file descriptor or after a timeout has been \
                    reached. Furthermore, libevent also support \
                    callbacks due to signals or regular timeouts.

homepage            http://libevent.org
github.tarball_from releases
distname            ${name}-${version}${github.tag_suffix}

conflicts           libev-libevent-compat

depends_lib         path:lib/libssl.dylib:openssl

patchfiles          dynamic_lookup-11.patch \
                    patch-libressl-compat.diff

configure.args      --disable-silent-rules

test.run            yes
test.target         verify
