package/odhcp6c: add optional libubox dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 25 Mar 2019 17:59:33 +0000 (18:59 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 25 Mar 2019 18:25:17 +0000 (19:25 +0100)
libubox dependency has been added in
https://github.com/openwrt/odhcp6c/commit/33a2ba1c14eb5447326945c120e0b64a587ed151

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/odhcp6c/odhcp6c.mk

index 735b47420f4e68eb496599752b60f76d4d9d7132..3b4e7580a296381615284d5e51d00a3d7e5e7827 100644 (file)
@@ -16,4 +16,11 @@ 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))