# -*- 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                iodine
version             0.8.0
categories          net
platforms           darwin
maintainers         gmail.com:tomhennigan
license             ISC

description         IPv4 over DNS

long_description    iodine lets you tunnel IPv4 data through a DNS server. \
                    This can be usable in different situations where \
                    internet access is firewalled, but DNS queries are allowed.

homepage            http://code.kryo.se/iodine/
master_sites        http://code.kryo.se/iodine/

checksums           sha1    c1c51c56f7df005dd89a7daafbaa3e4294ad6ebf \
                    rmd160  6be1dfd1fec731903e59e4c3b6212ad74009b930 \
                    sha256  546e92cf8617f7970ea81c850b1063eb189c68c406d0c6a67e02c55e72e714c6 \
                    size    100577

patchfiles          patch-Makefile.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
}

use_configure       no

variant universal {}

build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" \
                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
                    CPP=${configure.cpp}

livecheck.type      regex
livecheck.regex     ${name}-(.+?)${extract.suffix}
