# Description: Multimedia communication library # URL: https://www.pjsip.org/ # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve # Depends on: pjproject swig name=pjsua version=2.10 release=1 source=(https://github.com/pjsip/pjproject/archive/$version/pjproject-$version.tar.gz config_site.h 0001-Don-t-build-Java-bindings.patch) # Related ports: # pjsua: Standalone user-agent. # pjsip: The minimum that asterisk needs for res_pjsip.so and friends. Dynamic libraries. # pjproject: Libraries with most things enabled. Static and dynamic libraries. build() { cd pjproject-$version patch -Np1 -i $SRC/0001-Don-t-build-Java-bindings.patch export CFLAGS+=" -fPIC -DNDEBUG -Wno-error=deprecated-declarations" export CXXFLAGS+=" -fPIC -DNDEBUG -Wno-error=deprecated-declarations" # pjsua will be dynamically linked as long as pjproject is installed beforehand. # otherwise it will be statically linked. ./configure \ --prefix=/usr \ --with-external-pa \ --with-external-gsm \ --with-external-speex \ --with-external-srtp \ --with-sdl=/usr \ --disable-openh264 \ --enable-libsamplerate \ --disable-resample_dll \ $( [ -f /usr/lib/libpjsua.so ] && echo --enable-shared ) cp $SRC/config_site.h pjlib/include/pj/config_site.h make -j1 dep make -j1 make -j1 -C pjsip-apps/src/swig pushd pjsip-apps/src/swig/python python3 setup.py build python3 setup.py install --root=$PKG --optimize=1 --skip-build popd make DESTDIR=$PKG -j1 -C pjsip-apps/src/swig # install pjsua only install -D -m755 pjsip-apps/bin/pjsua-`./config.guess` $PKG/usr/bin/pjsua }