summaryrefslogtreecommitdiff
path: root/net/mtr/Makefile
diff options
context:
space:
mode:
authortron <tron>2009-09-12 22:07:56 +0000
committertron <tron>2009-09-12 22:07:56 +0000
commit0e1d0a32535adc0e7132f8a1588541840feb9b01 (patch)
tree104f4a71ff540eee944bed4a239a348e77ac2971 /net/mtr/Makefile
parent94e05e062e5afe79a5e94e809dad493bca34e43d (diff)
downloadpkgsrc-0e1d0a32535adc0e7132f8a1588541840feb9b01.tar.gz
Fix build under Mac OS X Snow Leopard.
Diffstat (limited to 'net/mtr/Makefile')
-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