From bf28561109bc1126bb12e7f55de1189d2c1a5ff4 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Thu, 17 Oct 2019 18:32:41 +0000 Subject: [PATCH] sysutils/plasma5-ksysguard: disable libpcap on FreeBSD < 12 * pcap/sll.h is not present on FreeBSD-11. Reported by: pkg-fallout, antoine --- sysutils/plasma5-ksysguard/Makefile | 9 +++++++++ sysutils/plasma5-ksysguard/pkg-plist | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sysutils/plasma5-ksysguard/Makefile b/sysutils/plasma5-ksysguard/Makefile index 5e9ebf39ff95..321d11e82032 100644 --- a/sysutils/plasma5-ksysguard/Makefile +++ b/sysutils/plasma5-ksysguard/Makefile @@ -25,4 +25,13 @@ INOTIFY_DESC= Filesystem alteration notifications using inotify INOTIFY_LIB_DEPENDS= libinotify.so:devel/libinotify INOTIFY_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Inotify +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 +CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_libpcap:BOOL=TRUE +PLIST_SUB+= PCAP="@comment " +.else +PLIST_SUB+= PCAP="" +.endif + .include diff --git a/sysutils/plasma5-ksysguard/pkg-plist b/sysutils/plasma5-ksysguard/pkg-plist index e6fd4f991f19..e8569600bc62 100644 --- a/sysutils/plasma5-ksysguard/pkg-plist +++ b/sysutils/plasma5-ksysguard/pkg-plist @@ -1,9 +1,9 @@ bin/ksysguard bin/ksysguardd etc/ksysguarddrc -lib/libexec/ksysguard/ksgrd_network_helper +%%PCAP%%lib/libexec/ksysguard/ksgrd_network_helper lib/libkdeinit5_ksysguard.so -%%QT_PLUGINDIR%%/ksysguard/process/ksysguard_plugin_network.so +%%PCAP%%%%QT_PLUGINDIR%%/ksysguard/process/ksysguard_plugin_network.so share/applications/org.kde.ksysguard.desktop share/doc/HTML/ca/ksysguard/index.cache.bz2 share/doc/HTML/ca/ksysguard/index.docbook