# -*- 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 120242 2014-05-20 08:01:21Z stromnov@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           muniversal 1.0

github.setup        jedisct1 libsodium 0.5.0

categories          devel security
platforms           darwin
license             MIT

maintainers         stromnov openmaintainer

description         Portable and packageable NaCl-based crypto library

long_description    libsodium is a library for network communication, \
                    encryption, decryption, signatures, etc.

checksums           rmd160  49be4f0fd1f58dd7f1383dc40f6da78c15914c4a \
                    sha256  cd5b36d572f241b09a01d596768e4fcdda80c131a77f062f234d9d3525ee89aa

depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:libtool

pre-configure {
    system -W ${worksrcpath} "./autogen.sh"
}

test.run            yes
test.target         check
