asterisk-15.x: update compile stage
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 9 Mar 2018 11:57:45 +0000 (12:57 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 9 Mar 2018 11:57:47 +0000 (12:57 +0100)
- define Build/menuselect for reuse
- call the default Compile define for menuselect-tree

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

index 3a50ae8a6da2bd2e72f149def0332a0a5c5b9f8a..6ba714f74798def75900a86e3b8cf1f40ce8da1e 100644 (file)
@@ -379,6 +379,13 @@ AST_MENUSELECT_OPTS = \
        --without-curses \
        --with-libxml2="$(STAGING_DIR_HOSTPKG)/usr"
 
+define Build/menuselect
+       CC="$(HOSTCC)" \
+       CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \
+       LDFLAGS="$(HOST_LDFLAGS) -Wl,-rpath,$(STAGING_DIR_HOSTPKG)/lib" \
+       $(MAKE) -C "$(PKG_BUILD_DIR)/menuselect"
+endef
+
 define Build/Configure
        cd $(PKG_BUILD_DIR); \
                ./bootstrap.sh
@@ -396,11 +403,9 @@ define Build/Configure
 endef
 
 define Build/Compile
-       CC="$(HOSTCC)" \
-       CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOSTPKG)/include/libxml2" \
-       LDFLAGS="$(HOST_LDFLAGS) -Wl,-rpath,$(STAGING_DIR_HOSTPKG)/lib" \
-       $(MAKE) -C "$(PKG_BUILD_DIR)/menuselect"
-       $(MAKE) -C "$(PKG_BUILD_DIR)" menuselect-tree
+       $(call Build/menuselect)
+       $(call Build/Compile/Default,menuselect-tree)
+
        cd "$(PKG_BUILD_DIR)" && MENUSELECT_ARGS= && \
                for cat in $(MENUSELECT_CATEGORIES); do \
                        MENUSELECT_ARGS="$$$$MENUSELECT_ARGS --disable-category $$$$cat"; \