0d41be5f6c
Drop libmnl dependency. From the announcement: * netlink: remove libmnl requirement We no longer require libmnl. It turns out that inlining the small subset of libmnl that we actually use results in a smaller binary than the overhead of linking to the external library. pkg-config is still used for the systemd support though, so move the host-pkgconf dependency there. For more details, see the announcement: https://lists.zx2c4.com/pipermail/wireguard/2020-February/004963.html While we are at it, adjust the white space in the .hash file to match the new agreements. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# wireguard-tools
|
|
#
|
|
################################################################################
|
|
|
|
WIREGUARD_TOOLS_VERSION = 1.0.20200206
|
|
WIREGUARD_TOOLS_SITE = https://git.zx2c4.com/wireguard-tools/snapshot
|
|
WIREGUARD_TOOLS_SOURCE = wireguard-tools-$(WIREGUARD_TOOLS_VERSION).tar.xz
|
|
WIREGUARD_TOOLS_LICENSE = GPL-2.0
|
|
WIREGUARD_TOOLS_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
WIREGUARD_TOOLS_MAKE_OPTS += WITH_SYSTEMDUNITS=yes
|
|
WIREGUARD_TOOLS_DEPENDENCIES += host-pkgconf
|
|
else
|
|
WIREGUARD_TOOLS_MAKE_OPTS += WITH_SYSTEMDUNITS=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BASH),y)
|
|
WIREGUARD_TOOLS_MAKE_OPTS += WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes
|
|
else
|
|
WIREGUARD_TOOLS_MAKE_OPTS += WITH_BASHCOMPLETION=no WITH_WGQUICK=no
|
|
endif
|
|
|
|
define WIREGUARD_TOOLS_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(WIREGUARD_TOOLS_MAKE_OPTS) \
|
|
-C $(@D)/src
|
|
endef
|
|
|
|
define WIREGUARD_TOOLS_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(WIREGUARD_TOOLS_MAKE_OPTS) \
|
|
-C $(@D)/src install DESTDIR=$(TARGET_DIR)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|