2015-08-05 15:40:08 +09:00
|
|
|
# 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
|
2018-10-03 18:16:57 +09:00
|
|
|
version=2.6
|
2015-08-05 15:40:08 +09:00
|
|
|
release=2
|
|
|
|
source=(
|
2018-10-03 18:16:57 +09:00
|
|
|
http://www.pjsip.org/release/$version/pjproject-$version.tar.bz2
|
2015-08-05 15:40:08 +09:00
|
|
|
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 \
|
2018-10-03 18:16:57 +09:00
|
|
|
--enable-shared \
|
2015-08-05 15:40:08 +09:00
|
|
|
--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
|
|
|
|
}
|