# $Id: Portfile,v 1.3 2006/02/26 06:37:20 markd Exp $
PortSystem        1.0
name              libdnsres
version           0.1a
categories        net
maintainers       markd@opendarwin.org
description       A non-blocking DNS resolver library
long_description  A non-blocking thread-safe API for resolving DNS names

homepage          http://www.monkey.org/~provos/libdnsres/
master_sites      http://www.monkey.org/~provos/
platforms         darwin
checksums         md5 069cc39d7ddf85c9be9ada679d5363c2

patchfiles	patch-res_comp.c \
		patch-res_debug.c \
		patch-res_mkquery.c \
		patch-res_init.c \
		patch-res_query.c \
		patch-res_send.c \
		patch-gethostnamadr.c \
		patch-getaddrinfo.c \
		patch-test-simple_test.c

depends_lib     port:libevent

variant darwin powerpc {
        configure.args-append   --build=powerpc-apple-darwin
}

variant darwin intel {
        configure.args-append   --build=intel-unknown-darwin
}


configure.args	CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" \
		--disable-shared

