asterisk-11.x: fix package build
Clean up asterisk-11.x package and fix host-tools (menuselect) similar to how asterisk-13.x is built. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
b99ebb2167
commit
afc3fc752d
1 changed files with 26 additions and 8 deletions
|
@ -272,11 +272,19 @@ CONFIGURE_ARGS+= \
|
||||||
--with-sounds-cache="$(DL_DIR)" \
|
--with-sounds-cache="$(DL_DIR)" \
|
||||||
--disable-xmldoc
|
--disable-xmldoc
|
||||||
|
|
||||||
define Build/Prepare
|
CONFIGURE_VARS += \
|
||||||
$(call Build/Prepare/Default)
|
ac_cv_path_ac_pt_CONFIG_LIBXML2=$(STAGING_DIR)/host/bin/xml2-config
|
||||||
endef
|
|
||||||
|
AST_MENUSELECT_OPTS = \
|
||||||
|
--without-newt \
|
||||||
|
--without-curses \
|
||||||
|
--with-ncurses="$(STAGING_DIR_HOST)/usr" \
|
||||||
|
--with-libxml2="$(STAGING_DIR_HOST)/usr"
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
|
(cd $(PKG_BUILD_DIR); \
|
||||||
|
./bootstrap.sh; \
|
||||||
|
);
|
||||||
echo "export CFLAGS += $(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)"\
|
echo "export CFLAGS += $(FPIC) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)"\
|
||||||
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
||||||
> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
||||||
|
@ -287,16 +295,26 @@ define Build/Configure
|
||||||
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
" $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)"\
|
||||||
>> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
>> $(PKG_BUILD_DIR)/res/pjproject/user.mak;
|
||||||
$(call Build/Configure/Default,,$(SITE_VARS))
|
$(call Build/Configure/Default,,$(SITE_VARS))
|
||||||
|
(cd $(PKG_BUILD_DIR)/menuselect; \
|
||||||
|
./bootstrap.sh; \
|
||||||
|
./configure \
|
||||||
|
$(HOST_CONFIGURE_ARGS) \
|
||||||
|
$(AST_MENUSELECT_OPTS) \
|
||||||
|
LDFLAGS="$(HOST_LDFLAGS) -lxml2" \
|
||||||
|
CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOST)/include/libxml2" \
|
||||||
|
);
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
( retry=""; while [ ! "$$$$retry" ] && ! $(MAKE) -C "$(PKG_BUILD_DIR)" \
|
$(MAKE) -C "$(PKG_BUILD_DIR)/menuselect" \
|
||||||
include/asterisk/version.h \
|
CFLAGS="$(HOST_CFLAGS) -I$(STAGING_DIR_HOST)/include/libxml2" \
|
||||||
|
LDFLAGS="$(HOST_LDFLAGS) -lxml2"
|
||||||
|
$(MAKE) -C "$(PKG_BUILD_DIR)" include/asterisk/version.h \
|
||||||
include/asterisk/buildopts.h defaults.h \
|
include/asterisk/buildopts.h defaults.h \
|
||||||
makeopts.embed_rules; do retry=1; done )
|
makeopts.embed_rules
|
||||||
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY"
|
ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY"
|
||||||
ASTLDFLAGS="$(EXTRA_LDFLAGS)"
|
ASTLDFLAGS="$(EXTRA_LDFLAGS)"
|
||||||
( retry=""; while [ ! "$$$$retry" ] && ! $(MAKE) -C "$(PKG_BUILD_DIR)" \
|
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
||||||
ASTVARLIBDIR="/usr/lib/asterisk" \
|
ASTVARLIBDIR="/usr/lib/asterisk" \
|
||||||
ASTDATADIR="/usr/lib/asterisk" \
|
ASTDATADIR="/usr/lib/asterisk" \
|
||||||
ASTKEYDIR="/usr/lib/asterisk" \
|
ASTKEYDIR="/usr/lib/asterisk" \
|
||||||
|
@ -305,7 +323,7 @@ define Build/Compile
|
||||||
DEBUG="" \
|
DEBUG="" \
|
||||||
OPTIMIZE="" \
|
OPTIMIZE="" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
all install samples; do retry=1; done )
|
all install samples
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
|
Loading…
Reference in a new issue