# Description: Open source SIP stack and media stack # URL: https://www.pjsip.org/ # Maintainer: protonesso, nagakamira at gmail dot com # Depends on: alsa-lib ffmpeg libsamplerate opus portaudio speexdsp util-linux openh264 # Section: audio name=pjproject version=2.11 release=1 options=('~makeflags') source=("https://github.com/pjsip/pjproject/archive/$version.tar.gz::archive=$name-$version.tar.gz") build() { append-cflags -fPIC append-cxxflags -fPIC cd "$SRC"/$name-$version for a in $(find . -name config.sub); do cp "$STUFF"/config.sub $a done for a in $(find . -name config.guess); do cp "$STUFF"/config.guess $a done ./configure $BUILDFLAGS \ --prefix=/usr \ --with-external-gsm \ --with-external-pa \ --with-external-speex \ --enable-shared \ --disable-libwebrtc \ --disable-opencore-amr make -j1 dep make -j1 make -j1 DESTDIR="$PKG" install }