kumquat-buildroot/package/odhcp6c/odhcp6c.mk
Fabrice Fontaine 93f7712511 package/odhcp6c: add optional libubox dependency
libubox dependency has been added in
33a2ba1c14

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-03-25 19:25:17 +01:00

27 lines
727 B
Makefile

################################################################################
#
# odhcp6c
#
################################################################################
ODHCP6C_VERSION = d2e247d8d87ecf8c60fcf0acdad05667bd379521
ODHCP6C_SITE = $(call github,sbyx,odhcp6c,$(ODHCP6C_VERSION))
ODHCP6C_LICENSE = GPL-2.0
ODHCP6C_LICENSE_FILES = COPYING
define ODHCP6C_INSTALL_SCRIPT
$(INSTALL) -m 0755 -D $(@D)/odhcp6c-example-script.sh \
$(TARGET_DIR)/usr/sbin/odhcp6c-update
endef
ODHCP6C_POST_INSTALL_TARGET_HOOKS += ODHCP6C_INSTALL_SCRIPT
ifeq ($(BR2_PACKAGE_LIBUBOX),y)
ODHCP6C_CONF_OPTS += -DUSE_LIBUBOX=1
ODHCP6C_DEPENDENCIES += libubox
else
ODHCP6C_CONF_OPTS += -DUSE_LIBUBOX=0
endif
$(eval $(cmake-package))