Commit graph

1014 commits

Author SHA1 Message Date
Sebastian Kemper
e1ce116eea net/chan-sccp-b: version bump and fixes
- Bump to revision 6728.
- Remove '-fi' from PKG_FIXUP. Trust in the build system to do the right
  thing.
- Set PKG_INSTALL:=1 so "make install" doesn't need to be called
  manually anymore. This also drops LOW_MEMORY from CFLAGS, which is not
  needed as chan-sccp-b looks into asterisk's headers to find out if
  LOW_MEMORY is enabled or not.
  The build output actually looks much more pleasant afterward.
- Disable chan-sccp-b's optimization which it enables by default. It
  sets -O3 and all that jazz. To make it simply use the OpenWrt/LEDE
  flags optimization needs to be disabled.
- With optimization disabled chan-sccp-b still adds -Og to the end of
  the CFLAGS. Add a small patch to prevent that.
- Disable debug which is enabled by default. This brings down the size
  of the installed binary from 14 MByte (!) to a little over 2 MByte
  (checked on ARM).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-28 22:01:51 +02:00
Sebastian Kemper
0a193b2af4 net/asterisk-13.x: prevent libsrtp2 detection
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>
2017-07-28 21:51:21 +02:00
Sebastian Kemper
c6e069a488 net/asterisk-11.x and net/asterisk-13.x: disable chan-dahdi for aarch64
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>
2017-07-28 21:48:44 +02:00
Sebastian Kemper
eead619fb1 net/asterisk-11.x and net/asterisk-13.x: fix LOW_MEMORY, drop patch
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>
2017-07-28 21:45:55 +02:00
Sebastian Kemper
f616ed7c6e net/asterisk-11.x and net/asterisk-13.x: fix menuselect
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>
2017-07-28 21:34:05 +02:00
Sebastian Kemper
5cb478e3af net/asterisk-11.x and net/asterisk-13.x: remove $(SDK) from ifneqs
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>
2017-07-28 21:30:08 +02:00
Jiri Slachta
c21d41bb00 Merge pull request #171 from micmac1/master
New PR for asterisk
2017-07-25 08:16:30 +02:00
Sebastian Kemper
21f156b49f net/asterisk-11.x and net/asterisk-13.x: remove libpq dep on ARC
For ARC libpq doesn't build, so don't depend on it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-24 23:40:07 +02:00
Sebastian Kemper
db6a13f8a0 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>
2017-07-24 23:36:46 +02:00
Jiri Slachta
8dce744b5d Merge pull request #164 from guidosarducci/lede-17.01-siproxd-update
siproxd: fixes and version update to 0.8.2
2017-07-24 09:48:54 +02:00
Jiri Slachta
3dc2071592 Merge pull request #170 from micmac1/master
New PR: mostly Asterisk (bumps, fixes, new package too)
2017-07-24 09:47:58 +02:00
Sebastian Kemper
4509429350 net/asterisk-11.x and net/asterisk-13.x: fix ASTCFLAGS/ASTLDFLAGS
The missing backslashes prevented 'make' from picking up
ASTCFLAGS/ASTLDFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-23 19:10:39 +02:00
Sebastian Kemper
3b259d8398 freeswitch-stable: add mod_bcg729
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>
2017-07-22 16:49:47 +02:00
Sebastian Kemper
7e9c485725 net/asterisk-13.x: bump to 13.17.0
- 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>
2017-07-22 16:47:26 +02:00
Sebastian Kemper
4774e211c7 net/asterisk-11.x: compile fixes
- 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>
2017-07-22 16:40:42 +02:00
Sebastian Kemper
afb2de7e2e net/asterisk-g72x: bump to 1.4.1
Version bump. This release was upstream-tested against bcg729 1.0.2.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-22 16:29:26 +02:00
Sebastian Kemper
535515658a libs/pjproject: prevent linking against opus
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>
2017-07-22 16:25:49 +02:00
Sebastian Kemper
ac3551f723 libs/bcg729: bump to 1.0.2
Also remove the static binary from InstallDev as it's not used.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-22 16:24:58 +02:00
Jiri Slachta
1dc4faadaf Merge pull request #169 from micmac1/master
freeswitch-stable: new PR
2017-07-19 23:28:38 +02:00
Sebastian Kemper
41beae13e8 freeswitch-stable: remove BROKEN from mod_av
libffmpeg-full now includes libavresample. Make mod_av available
accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-18 22:09:18 +02:00
Sebastian Kemper
becb9d05e2 freeswitch-stable: disable mod_v8 heap snapshot by default
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>
2017-07-16 22:05:56 +02:00
Sebastian Kemper
98232d46cb freeswitch-stable: update COPTS fixes
- 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>
2017-07-16 21:57:07 +02:00
Sebastian Kemper
eebb961147 freeswitch-stable: version bump
- Update to 1.6.19.
- Refresh patches.
- Fix mod_png dep.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-16 21:52:58 +02:00
guidosarducci
6fc399bb17 siproxd: use PKG_HASH and update copyright date
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2017-07-10 02:51:23 -07:00
Jiri Slachta
d67fb86016 Merge pull request #166 from micmac1/master
freeswitch-stable: Fix python-host.mk include
2017-07-09 20:00:50 +02:00
Sebastian Kemper
f851582d14 freeswitch-stable: Fix python-host.mk include
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-09 18:09:44 +02:00
Jiri Slachta
802b77d515 Merge pull request #165 from micmac1/master
freeswitch-stable: New PR
2017-07-09 14:36:07 +02:00
Sebastian Kemper
6a2be25433 freeswitch-stable: Add PKG_CONFIG_DEPENDS
Force a rebuild of freeswitch-stable on symbol change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-09 13:22:43 +02:00
Sebastian Kemper
6401e13452 freeswitch-stable: Add more modules
- 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>
2017-07-09 13:15:39 +02:00
Sebastian Kemper
e0651d98e5 freeswitch-stable: Enable extra symbols for x86_64 target
There is no space constraint on x86_64, so enable the extra symbols for
a complete feature set.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-07-09 13:03:17 +02:00
Sebastian Kemper
4cfbc9c933 freeswitch-stable: Fixes for modules and libs
- 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>
2017-07-09 13:02:09 +02:00
Sebastian Kemper
aaee4b431e freeswitch-stable: Clean up the Makefile
- 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>
2017-07-09 12:08:49 +02:00
guidosarducci
456d10459f siproxd: fix support for domain-specific proxies
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>
2017-07-03 16:59:23 -07:00
guidosarducci
3e16420743 siproxd: update to version 0.8.2
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>
2017-07-03 16:59:23 -07:00
guidosarducci
055da10ad7 siproxd: use clearer runtime file and directory names
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>
2017-07-03 16:59:23 -07:00
guidosarducci
84695bea0c siproxd: add shell helper function to build config file
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>
2017-07-03 16:59:04 -07:00
Jiri Slachta
75aa42abb1 Merge pull request #161 from micmac1/master
freeswitch-stable: Fix perl-esl deps
2017-06-29 09:09:27 +02:00
Sebastian Kemper
438fd05db7 freeswitch-stable: Fix perl-esl deps
Like mod-perl it also needs Perl with threads support.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-06-28 09:18:23 +02:00
Jo-Philipp Wich
6421bb89b8 Merge pull request #160 from micmac1/master
freeswitch-stable: New PR
2017-06-27 22:21:03 +02:00
Sebastian Kemper
639072e26e freeswitch-stable: cleanup Python setup
- 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>
2017-06-27 22:14:46 +02:00
Sebastian Kemper
fb6cc32a6a freeswitch-stable: Remove some needless variable escaping
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-06-27 22:07:34 +02:00
Sebastian Kemper
4938176da1 freeswitch-stable: Fix mod_pocketsphinx build
- 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>
2017-06-27 18:27:47 +02:00
Sebastian Kemper
40ab309b0e freeswitch-stable: Refresh patch
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-06-26 23:52:45 +02:00
Jiri Slachta
c2adf8eb16 Merge pull request #159 from micmac1/master
freeswitch-stable: New PR
2017-06-26 14:02:03 +02:00
Sebastian Kemper
740b5320b1 freeswitch-stable/-sounds: Use HASH instead of MD5SUM
All checksums are already SHA256, so move from MD5SUM to HASH.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-06-25 15:30:45 +02:00
Sebastian Kemper
42c0cabdbe freeswitch-stable: add Perl support
- 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>
2017-06-24 22:25:36 +02:00
Sebastian Kemper
6a4b022ec1 freeswitch-stable: add more modules
- 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>
2017-06-24 22:04:47 +02:00
Sebastian Kemper
4aecbd082d freeswitch-stable: Misc fixes
- 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>
2017-06-24 21:10:04 +02:00
Sebastian Kemper
8c7cc53485 freeswitch-stable: Change Python setup
- 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>
2017-06-24 20:54:10 +02:00
Sebastian Kemper
e6edd95bf1 freeswitch-stable: group all misc packages together
- 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>
2017-06-24 20:31:23 +02:00