aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-04-07 21:58:33 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-10 19:31:55 +0200
commit67ab484206c991174a59601fa978a620d35a9d9a (patch)
treef4402152dd21d5168ad3f741d7d68c567f474af2
parent260056ea220533ea7224d79fcdff12b18fc3a4ab (diff)
downloadbuildroot-67ab484206c991174a59601fa978a620d35a9d9a.tar.gz
buildroot-67ab484206c991174a59601fa978a620d35a9d9a.tar.bz2
package/lldpd: add libcap optional dependency
libcap optional dependency has been added in version 1.0.2 with https://github.com/vincentbernat/lldpd/commit/f6933edaf2edea12ef72ef7c70958c2a617f6a1f Also refactor check and valgrind optional dependencies to put them on a single line Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/lldpd/lldpd.mk15
1 files changed, 6 insertions, 9 deletions
diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk
index 99de40d498..86c825c4e1 100644
--- a/package/lldpd/lldpd.mk
+++ b/package/lldpd/lldpd.mk
@@ -6,18 +6,15 @@
LLDPD_VERSION = 1.0.3
LLDPD_SITE = http://media.luffy.cx/files/lldpd
-LLDPD_DEPENDENCIES = host-pkgconf libevent
+LLDPD_DEPENDENCIES = \
+ $(if $(BR2_PACKAGE_CHECK),check) \
+ host-pkgconf \
+ $(if $(BR2_PACKAGE_LIBCAP),libcap) \
+ libevent \
+ $(if $(BR2_PACKAGE_VALGRIND),valgrind)
LLDPD_LICENSE = ISC
LLDPD_LICENSE_FILES = LICENSE
-ifeq ($(BR2_PACKAGE_CHECK),y)
-LLDPD_DEPENDENCIES += check
-endif
-
-ifeq ($(BR2_PACKAGE_VALGRIND),y)
-LLDPD_DEPENDENCIES += valgrind
-endif
-
# Detection of c99 support in configure fails without WCHAR. To enable
# automatic detection of c99 support by configure, we need to enable
# WCHAR in toolchain. But actually we do not need WCHAR at lldpd