net/asterisk-11.x and net/asterisk-13.x: fix menuselect build
authorSebastian Kemper <sebastian_ml@gmx.net>
Mon, 24 Jul 2017 21:31:06 +0000 (23:31 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Mon, 24 Jul 2017 21:36:46 +0000 (23:36 +0200)
commitdb6a13f8a0accb5822aaa62221a014e183451af0
treef0e7c27b1eb2db11eea16aac1eccc96ea9e9854e
parent8dce744b5d6ea90ef0e9431ceb31d0300e1e3a52
net/asterisk-11.x and net/asterisk-13.x: fix menuselect build

- Include host-build.mk, otherwise $HOST_CONFIGURE_ARGS will be empty.
- Remove --with-ncurses=PATH as the PATH is wrong. The ncurses host
  package does not install anything but 'tic'.
- Use $HOSTCC to compile menuselect. This has the added bonus of using
  ccache (if selected).
- Run configure with an unset $CONFIG_SITE so that it doesn't pick a
  cross-compile site-script, e.g. for mips.
- Drop '-lxml2' from $LDFLAGS as the menuselect Makefile will add it
  anyway.
- Move the variables in front of 'make' as they're not arguments.

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