asterisk-g72x: add Asterisk 15 variant 208/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Thu, 23 Nov 2017 18:28:13 +0000 (19:28 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Thu, 23 Nov 2017 18:28:16 +0000 (19:28 +0100)
Add a package for Asterisk 15.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/asterisk-g72x/Makefile

index c0567eeeda6f8b70afa630df2cdb57d90c7f84b3..8c1615604a37f9de5ac748954189f34bfa26b47f 100644 (file)
@@ -42,11 +42,18 @@ $(call Package/asterisk-g72x/Default)
   VARIANT:=asterisk13
 endef
 
+define Package/asterisk15-codec-g729
+$(call Package/asterisk-g72x/Default)
+  DEPENDS+=asterisk15
+  VARIANT:=asterisk15
+endef
+
 define Package/description/Default
  Asterisk G.729 codec based on bcg729 implementation.
 endef
 
 Package/asterisk13-codec-g729/description = $(Package/description/Default)
+Package/asterisk15-codec-g729/description = $(Package/description/Default)
 
 CONFIGURE_ARGS+= \
        --with-bcg729 \
@@ -58,6 +65,12 @@ CONFIGURE_ARGS+= \
        --with-asterisk130
 endif
 
+ifeq ($(BUILD_VARIANT),asterisk15)
+CONFIGURE_ARGS+= \
+       --with-asterisk-includes=$(STAGING_DIR)/usr/include/asterisk-15/include \
+       --with-asterisk150
+endif
+
 define Package/Install/Default
        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_g729.so \
@@ -65,5 +78,7 @@ define Package/Install/Default
 endef
 
 Package/asterisk13-codec-g729/install = $(Package/Install/Default)
+Package/asterisk15-codec-g729/install = $(Package/Install/Default)
 
 $(eval $(call BuildPackage,asterisk13-codec-g729))
+$(eval $(call BuildPackage,asterisk15-codec-g729))