libdnet: fix compilation under macOS
authorRosen Penev <redacted>
Mon, 4 Oct 2021 23:20:34 +0000 (16:20 -0700)
committerRosen Penev <redacted>
Wed, 6 Oct 2021 00:33:14 +0000 (17:33 -0700)
configure checks the host system not the target one. Override these
variables.

Signed-off-by: Rosen Penev <redacted>
libs/libdnet/Makefile

index 5b77b04495672871900008877411530f9d15d5e0..52f179751fc683c43e18466bc883381a400eebb0 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libdnet
 PKG_VERSION:=1.14
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/ofalk/libdnet/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
@@ -42,6 +42,10 @@ CONFIGURE_ARGS += \
        --without-python \
        --without-wpdpack
 
+CONFIGURE_VARS += \
+       ac_cv_dnet_bsd_bpf=no \
+       ac_cv_dnet_linux_pf_packet=yes
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(1)/usr/bin/
git clone https://git.99rst.org/PROJECT