There is no reason to do all that just to build a package for mod_av. You can use the source repo and a few make commands off the regular makefiles to build just that module.
On Jun 12, 2020, at 9:05 PM, Richard Chan <shihping.chan@gmail.com> wrote:
Hello list,
Background: my most desired module for CentOS 7 is mod_av.so
1. I am announcing a gist-repo, for doing an out-of-repo package for mod_av.so for CentOS 7, based on the official freeswitch-devel.
2. mod_av.so is not packaged as CentOS 7 does not have ffmpeg. You need to wrangle your own ffmpeg-devel, e.g. from RPMFusion
3. With ffmpeg-devel installed and this gist repo, you can package mod_av.so without rebuilding the gigantic FreeSWITCH src.rpm.
Essentially, all the libtool (gcc, ld) statements for mod_av.so have been extracted from a full build and put inside this Makefile. The compiler and linker flags are consistent with those from the FreeSWITCH spec file.
4. IMPORTANT: this gist repo does not distribute source. You must still obtain avcodec.c avformat.c mod_av.c mod_av.h from the tarball or src.rpm.
All comments welcome.
Cheers SP