# -*- 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 89251 2012-01-22 00:57:30Z ryandesign@macports.org $

PortSystem          1.0

name                iodine
version             0.6.0-rc1
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           md5     a15bb4faba020d217016fde6e231074a \
                    sha1    4fa9a248b8a84df8a727a5d749e669e58136edca \
                    rmd160  6974beac28e07b0c280d7095f15d13699e9cad65

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}
