summaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-09-12 22:07:56 +0000
committertron <tron@pkgsrc.org>2009-09-12 22:07:56 +0000
commit542fffc4a15b016db683f5404b635034505f26cf (patch)
tree104f4a71ff540eee944bed4a239a348e77ac2971 /net/mtr
parent04ee13db2f0817862b05c3df0a295452bd8ebed2 (diff)
downloadpkgsrc-542fffc4a15b016db683f5404b635034505f26cf.tar.gz
Fix build under Mac OS X Snow Leopard.
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 375dadfb264..4d626d0fd68 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2009/08/26 19:58:45 sno Exp $
+# $NetBSD: Makefile,v 1.56 2009/09/12 22:07:56 tron Exp $
DISTNAME= mtr-0.75
CATEGORIES= net
@@ -31,6 +31,10 @@ SPECIAL_PERMS= sbin/mtr ${SETUID_ROOT_PERMS}
BUILDLINK_TRANSFORM+= rm:-Wno-pointer-sign
.endif
+.if !empty(MACHINE_PLATFORM:MDarwin-??.*-*)
+LIBS+= -lresolv
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mtr ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/mtr.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8