Sat Mar 16 19:41:01 2024 UTC (71d)
libpcap: Fix building on Mac OS X 10.4


(nia)
diff -r1.69 -r1.70 pkgsrc/net/libpcap/Makefile

cvs diff -r1.69 -r1.70 pkgsrc/net/libpcap/Makefile (expand / switch to unified diff)

--- pkgsrc/net/libpcap/Makefile 2023/04/18 07:59:11 1.69
+++ pkgsrc/net/libpcap/Makefile 2024/03/16 19:41:01 1.70
@@ -1,28 +1,35 @@ @@ -1,28 +1,35 @@
1# $NetBSD: Makefile,v 1.69 2023/04/18 07:59:11 adam Exp $ 1# $NetBSD: Makefile,v 1.70 2024/03/16 19:41:01 nia Exp $
2 2
3DISTNAME= libpcap-1.10.4 3DISTNAME= libpcap-1.10.4
4CATEGORIES= net 4CATEGORIES= net
5MASTER_SITES= https://www.tcpdump.org/release/ 5MASTER_SITES= https://www.tcpdump.org/release/
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://www.tcpdump.org/ 8HOMEPAGE= https://www.tcpdump.org/
9COMMENT= System-independent interface for user-level packet capture 9COMMENT= System-independent interface for user-level packet capture
10LICENSE= modified-bsd 10LICENSE= modified-bsd
11 11
12NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access 12NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access
13 13
14USE_LIBTOOL= yes 14USE_LIBTOOL= yes
15USE_TOOLS+= bison flex gm4 15USE_TOOLS+= bison flex gm4
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17CONFIGURE_ARGS.Darwin+= --disable-universal 17CONFIGURE_ARGS.Darwin+= --disable-universal
18PKGCONFIG_OVERRIDE= libpcap.pc.in 18PKGCONFIG_OVERRIDE= libpcap.pc.in
19 19
20# Versions of SunOS which include getifaddrs confuse the configure script, 20# Versions of SunOS which include getifaddrs confuse the configure script,
21# and result in dlpi stubs not being enabled. 21# and result in dlpi stubs not being enabled.
22CONFIGURE_ARGS.SunOS+= --with-pcap=dlpi 22CONFIGURE_ARGS.SunOS+= --with-pcap=dlpi
23CONFIGURE_ENV.SunOS+= ac_cv_func_getifaddrs=no 23CONFIGURE_ENV.SunOS+= ac_cv_func_getifaddrs=no
24 24
 25.include "../../mk/bsd.prefs.mk"
 26
 27# Requires Availability.h, which debuted with 10.5.
 28.if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 100500
 29. include "../../devel/macports-legacy-support/buildlink3.mk"
 30.endif
 31
25post-install: 32post-install:
26 ${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${DESTDIR}${PREFIX}/include 33 ${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${DESTDIR}${PREFIX}/include
27 34
28.include "../../mk/bsd.pkg.mk" 35.include "../../mk/bsd.pkg.mk"