summaryrefslogtreecommitdiff
path: root/security/openvas-libraries/Makefile
diff options
context:
space:
mode:
authorobache <obache>2011-01-01 12:13:10 +0000
committerobache <obache>2011-01-01 12:13:10 +0000
commit89a39129b193c78ff747441299757075b504d72e (patch)
treeb18ea522799535a2ec973a56220e24563789a44b /security/openvas-libraries/Makefile
parent5651e31faac79988dcae59e7ddf4385ca732e8a3 (diff)
downloadpkgsrc-89a39129b193c78ff747441299757075b504d72e.tar.gz
Fixes build failure on DragonFly-2.8.2.
* not have libresolv, but required functions in libc. * need to include <sys/socket.h> exactly in some place.
Diffstat (limited to 'security/openvas-libraries/Makefile')
-rw-r--r--security/openvas-libraries/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/security/openvas-libraries/Makefile b/security/openvas-libraries/Makefile
index 9884e09d2bb..1af970146bc 100644
--- a/security/openvas-libraries/Makefile
+++ b/security/openvas-libraries/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2009/12/09 05:22:01 obache Exp $
+# $NetBSD: Makefile,v 1.5 2011/01/01 12:13:10 obache Exp $
#
DISTNAME= openvas-libraries-2.0.0
@@ -20,6 +20,13 @@ USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+.include "../../mk/bsd.prefs.mk"
+
+# DragonFly-2.8.2 has dn_expand(3) in libc, and not have libresolv.
+.if ${OPSYS} == "DragonFly"
+BUILDLINK_TRANSFORM+= rm:-lresolv
+.endif
+
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/gpgme/buildlink3.mk"