From: Yann E. MORIN Date: Sat, 9 Sep 2017 21:39:42 +0000 (+0200) Subject: package/asterisk: add optional netsnmp dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d597d70ec20d48b9a73d8987854bb0ff8f2e0d6;p=buildroot.git package/asterisk: add optional netsnmp dependency Signed-off-by: "Yann E. MORIN" Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk index 02d0f2947d..a6801a006d 100644 --- a/package/asterisk/asterisk.mk +++ b/package/asterisk/asterisk.mk @@ -73,7 +73,6 @@ ASTERISK_CONF_OPTS = \ --without-mysqlclient \ --without-nbs \ --without-neon29 \ - --without-netsnmp \ --without-newt \ --without-openr2 \ --without-osptk \ @@ -164,6 +163,13 @@ else ASTERISK_CONF_OPTS += --without-neon endif +ifeq ($(BR2_PACKAGE_NETSNMP),y) +ASTERISK_DEPENDENCIES += netsnmp +ASTERISK_CONF_OPTS += --with-netsnmp=$(STAGING_DIR)/usr +else +ASTERISK_CONF_OPTS += --without-netsnmp +endif + ifeq ($(BR2_PACKAGE_LIBOGG),y) ASTERISK_DEPENDENCIES += libogg ASTERISK_CONF_OPTS += --with-ogg