| @@ -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 | |
3 | DISTNAME= libpcap-1.10.4 | | 3 | DISTNAME= libpcap-1.10.4 |
4 | CATEGORIES= net | | 4 | CATEGORIES= net |
5 | MASTER_SITES= https://www.tcpdump.org/release/ | | 5 | MASTER_SITES= https://www.tcpdump.org/release/ |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= https://www.tcpdump.org/ | | 8 | HOMEPAGE= https://www.tcpdump.org/ |
9 | COMMENT= System-independent interface for user-level packet capture | | 9 | COMMENT= System-independent interface for user-level packet capture |
10 | LICENSE= modified-bsd | | 10 | LICENSE= modified-bsd |
11 | | | 11 | |
12 | NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access | | 12 | NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access |
13 | | | 13 | |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= bison flex gm4 | | 15 | USE_TOOLS+= bison flex gm4 |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | CONFIGURE_ARGS.Darwin+= --disable-universal | | 17 | CONFIGURE_ARGS.Darwin+= --disable-universal |
18 | PKGCONFIG_OVERRIDE= libpcap.pc.in | | 18 | PKGCONFIG_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. |
22 | CONFIGURE_ARGS.SunOS+= --with-pcap=dlpi | | 22 | CONFIGURE_ARGS.SunOS+= --with-pcap=dlpi |
23 | CONFIGURE_ENV.SunOS+= ac_cv_func_getifaddrs=no | | 23 | CONFIGURE_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 | |
25 | post-install: | | 32 | post-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" |