summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Kemper2018-03-09 11:40:07 +0000
committerSebastian Kemper2018-03-09 11:40:09 +0000
commit2184038734019ba5bd513575032b6bb4d3e74820 (patch)
tree005de4d9460f382fbe5cde709d5dfdd4348b6adf
parentedbca3652139943e9edb5b4b3138c21bdf308399 (diff)
downloadtelephony-2184038734019ba5bd513575032b6bb4d3e74820.tar.gz
asterisk-13.x: update compile stage
- define Build/menuselect for reuse - call the default Compile define for menuselect-tree Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
-rw-r--r--net/asterisk-13.x/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/net/asterisk-13.x/Makefile b/net/asterisk-13.x/Makefile
index cc0880f..fbfd69d 100644
--- a/net/asterisk-13.x/Makefile
+++ b/net/asterisk-13.x/Makefile
@@ -372,6 +372,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
@@ -389,11 +396,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"; \