# Description: Multimedia communication library # URL: http://www.pjsip.org/ # Packager: Alan Mizrahi, alan at mizrahi dot com dot ve # Depends on: portaudio speex libsrtp gsm ffmpeg libsdl2 libsamplerate name=pjproject version=2.6 release=2 source=( http://www.pjsip.org/release/$version/pjproject-$version.tar.bz2 config_site.h ) # 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 export CFLAGS="$CFLAGS -DNDEBUG" ./configure \ --prefix=/usr \ --enable-shared \ --with-external-pa \ --with-external-gsm \ --with-external-speex \ --with-external-srtp \ --with-sdl=/usr \ --disable-openh264 \ --enable-libsamplerate \ --disable-resample_dll cp $SRC/config_site.h pjlib/include/pj/config_site.h make dep make make DESTDIR=$PKG install # install pjsua too (this is now in a separate port) # mkdir -p $PKG/usr/bin # cp pjsip-apps/bin/pjsua-* $PKG/usr/bin/pjsua # remove static libs # rm -f $PKG/usr/lib/*.a }