pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libpcap Under Mac OS X Snow Leopard "pcap.h" is a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aa10598e5f90
branches:  trunk
changeset: 399113:aa10598e5f90
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Sep 13 13:07:11 2009 +0000

description:
Under Mac OS X Snow Leopard "pcap.h" is a wrapper that only includes
"pcap/pcap.h". We must therfore use "pcap/pcap.h" to detect the version
of the "pcap" library on this platform.

diffstat:

 net/libpcap/builtin.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 40dcff496fd0 -r aa10598e5f90 net/libpcap/builtin.mk
--- a/net/libpcap/builtin.mk    Sun Sep 13 12:19:26 2009 +0000
+++ b/net/libpcap/builtin.mk    Sun Sep 13 13:07:11 2009 +0000
@@ -1,9 +1,15 @@
-# $NetBSD: builtin.mk,v 1.14 2006/04/06 06:22:33 reed Exp $
+# $NetBSD: builtin.mk,v 1.15 2009/09/13 13:07:11 tron Exp $
 
 BUILTIN_PKG:=  libpcap
 
+.include "../../mk/bsd.fast.prefs.mk"
+
 BUILTIN_FIND_FILES_VAR:=       H_LIBPCAP
+.if empty(MACHINE_PLATFORM:MDarwin-??.*-*)
 BUILTIN_FIND_FILES.H_LIBPCAP=  /usr/include/pcap.h
+.else
+BUILTIN_FIND_FILES.H_LIBPCAP=  /usr/include/pcap/pcap.h
+.endif
 
 .include "../../mk/buildlink3/bsd.builtin.mk"
 



Home | Main Index | Thread Index | Old Index