summaryrefslogtreecommitdiff
path: root/devel/libdnsres/buildlink3.mk
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2006-02-19 17:11:06 +0000
committeradrianp <adrianp@pkgsrc.org>2006-02-19 17:11:06 +0000
commit9b2396034e598a1ecc0558fd87a91497c3c7e85e (patch)
tree4d049d93b78192ad6e182e7b739670fcc74f1094 /devel/libdnsres/buildlink3.mk
parentb70df58b70da11d98d26984e81e43c7aef509efa (diff)
downloadpkgsrc-9b2396034e598a1ecc0558fd87a91497c3c7e85e.tar.gz
Libdnsres provides a non-blocking thread-safe API for resolving DNS names.
It requires that your main application is built on top of libevent. Libdnsres' API essentially mirrors the traditional gethostbyname and getaddrinfo interfaces. All return values have been replaced by callbacks instead. The code borrows heavily from the BSD resolver library. In fact, it is an extremely ugly hack to make the BSD resolver library non-blocking and thread-safe without changing the API too much.
Diffstat (limited to 'devel/libdnsres/buildlink3.mk')
-rw-r--r--devel/libdnsres/buildlink3.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/libdnsres/buildlink3.mk b/devel/libdnsres/buildlink3.mk
new file mode 100644
index 00000000000..f728c3a31e7
--- /dev/null
+++ b/devel/libdnsres/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/02/19 17:11:06 adrianp Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBDNSRES_BUILDLINK3_MK:= ${LIBDNSRES_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= libdnsres
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibdnsres}
+BUILDLINK_PACKAGES+= libdnsres
+
+.if !empty(LIBDNSRES_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libdnsres+= libdnsres>=0.1a
+BUILDLINK_PKGSRCDIR.libdnsres?= ../../devel/libdnsres
+.endif # LIBDNSRES_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}