Asterisk 13 looks for libsrtp2. Unfortunately it also looks for a header
which libsrtp2 does not make public:
res_srtp.c:44:33: fatal error: srtp2/crypto_types.h: No such file or directory
compilation terminated.
This causes the asterisk build to fail. Fix this by disabling libsrtp2
detection in Asterisk 13.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
dahdi-linux fails to build on aarch64. Disable chan-dahdi for this arch
accordingly, so asterisk can still be built.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
LOW_MEMORY can't be enabled by defining it in ASTCFLAGS. This can be
verified in the headers Asterisk installs: LOW_MEMORY actually is not
defined (it would be if LOW_MEMORY was enabled).
LOW_MEMORY can be enabled successfully with menuselect. This commit
makes menuselect usable and calls it to enable LOW_MEMORY.
This commit also disables BUILD_NATIVE with menuselect. So even if
configure detects that -march=native is available, it won't be used.
This means the configure.ac patch that was added previously can be
dropped.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
menuselect often fails on the buildbots:
menuselect/menuselect: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
This doesn't happen on all builds. The assumption is that on the
particular buildbot where there is no error the buildbots own libxml2.so
is usable (it exists and the version is suitable).
To fix this make the linker add an rpath to the menuselect utility,
pointing to the hostpkg lib dir.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The variable prevents the ifneqs from working on the buildbots. $(SDK)
is set there, so the ifneqs that test for empty will always be true.
libpq for instance doesn't build on aarch64. So the asterisk pgsql
package has a dependency on @!aarch64. An ifneq is used to disable libpq
detection by the configure script, to prevent the build to fail. But
because of $(SDK) being set the ifneq is always true, so libpq detection
is enabled, causing the build to always fail.
There are only two other packages in the tree that actually use the
$(SDK) variable, so it's fair to assume it's not needed for the asterisk
packages and can just be dropped.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- 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>
This adds a new Makefile as this module is out-of-tree. The module
dynamically links against bcg729.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Version bump to 13.17.0
- Remove makeopts.embed_rules as the target got removed.
- Refresh patches.
- $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host
headers not being found. Replace with $(STAGING_DIR_HOSTPGK).
- Prevent Asterisk from adding -march=native when cross-compiling (patch
for configure.ac).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Refresh patches.
- $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host
headers not being found. Replace with $(STAGING_DIR_HOSTPGK).
- Prevent Asterisk from adding -march=native when cross-compiling (patch
for configure.ac).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
When opus is found in staging area it will be linked against, adding a
dep that is not in the Makefile. So explicity disable opus.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
mod_v8 sporadically failed to build due to a segmentation fault when
generating the heap snapshot. This patch adds a switch to FreeSWITCH to
disable the snapshot and a symbol to toggle it.
Default is to not use a heap snapshot.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Replace main COPTS fixes patch with the updated version sent upstream.
- For the above to work we need to update DEFAULT_VARS in modmake.rules
(new patch)
- mod_pocketsphinx and mod_radius_cdr updated, no more extra COPTS fixes
required there.
- Now zeromq gets to use fortify headers and fails (warning about GCC
extension turns into error), so make it drop '-pedantic'.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Add mod_portaudio, mod_portaudio_stream, mod_radius_cdr and mod_v8.
- mod_v8 takes some time to build and it's quite large, so only build it
for x86_64. Users can force it on via a symbol for targets arm, i386
and mipsel as well.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Add missed dependency on libyuv to libvpx.
- Get rid of gratuitous @ in Config.in.
- Clean up Perl and Python deps.
- Fix installation paths for the ESL packages.
- Don't set ac_cv_lib_perl_perl_alloc=yes, it's not needed.
- Get rid of the build dep on erlang. Have the modules (erlang_event and
kazoo) depend on erlang instead; they both require epmd at runtime.
- Force spandsp and pocketsphinx to use fixed point math when soft float
support is enabled for the target device.
- Make libvpx use OpenWrt/LEDE flags, otherwhise it comes up with
optimized flags on its own.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Fix alphabetical sorting.
- Move some of the blocks around, e.g. move everything together that
adds to $(CONFIGURE_ARGS), move Download define upward to the other
defines etc.
- Replace some strings with variables, e.g. $(FIND) and $(FPIC).
- Be consistent and prefix our own variables with "FS_STABLE_".
- Remove the dev package and use Build/InstallDev instead.
- All in all this change is purely cosmetic.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Use lists for the config entries outbound_domain_{name,host,port}.
This permits multiple outbound proxies and fixes:
https://github.com/openwrt/telephony/issues/127
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
An upstream siproxd update was released after ~5 years, with bugfixes
and new features. This package supports the new plugins and their config
options, and updates required patches.
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Use more conventional, clearer naming for config and registration files.
This includes having distinct directories and specific file suffixes.
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Using the append_conf_if_set() function removes much repetitive and
error-prone code, reduces the source size by ~30%, and fixes a typo
previously uncaught.
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
- Rename PYTHON_PKG_DIR to PYTHON_SITE_DIR, otherwise it's confusing.
- Remove the 'sed' hacks; handle the Python setup like the Perl setup is
already done.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- The builds currently fail with "undefined reference" errors. Fix that
by turning off Pulseaudio support. Also turn of Jack support in case
that gets detected in the future.
- aarch64 fails because this arch isn't recognized by the pocketsphinx
build system. Fix that by running autoreconf in the pocketsphinx build
dirs.
- Fix CFLAGS while we're here.
- Add dep on libsamplerate to mod_pocketsphinx. If it gets detected it
will be linked against, there is no switch to prevent that.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- add mod_perl and perl-esl.
- some patching is required to make this work.
- for the modules to find libperl, an rpath is needed, which currently
doesn't work because of an rstrip.sh/patchelf issue. Patch sent to
OpenWrt/LEDE devs (https://patchwork.ozlabs.org/patch/780008/)
- fix some more copts issues that became apparent with Perl enabled.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- add b64, clearmode, cv (broken), dahdi_codec, dialplan_directory,
event_test, event_zmq, pocketsphinx, posix_timer, random, vmd and yuv.
- some of the new modules require extra sources, so add a download
routine for those so we can verify the checksums and prevent FreeSWITCH
build system to download them on its own.
- add two patches to fix some issues with the new modules.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- compile fix for mod_av added, without it the build errors out
(warnings turned to errors). It's still labelled @BROKEN, but once
OpenWrt's ffmpeg maintainers add libavresample to libffmpeg-full
(PR #4490) it should work.
- disable Erlang detection if mod_erlang_event is not selected (build
dep on Erlang unfortunately has to stay)
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- make the use of Python conditional and drop the build dep.
- change Python LDFLAGS to the ones suggested by host python-config.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Pull more packages into the misc group (timezones etc.)
- Change Misc generator to not force the misc handle onto packages
- Add possibility to Misc generator to tag packages as arch agnostic
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>