1 # Contributor: Yejun Yang < yejunx AT gmail DOT com >
6 pkgdesc="comprehensive, high performance, small footprint multimedia communication libraries written in C"
8 url="http://www.pjsip.org"
10 depends=(openssl portaudio speex alsa-lib libsamplerate util-linux-ng)
12 source=(http://www.pjsip.org/release/$pkgver/pjproject-$pkgver.tar.bz2)
15 cd "$srcdir/pjproject-$pkgver"
16 mkdir -p third_party/libsamplerate/src
17 cp /usr/include/samplerate.h third_party/libsamplerate/src
18 echo "#define PJMEDIA_RESAMPLE_IMP PJMEDIA_RESAMPLE_LIBSAMPLERATE" >> pjlib/include/pj/config_site.h
19 [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --with-external-speex --with-external-pa --enable-epoll --disable-oss --enable-libsamplerate
21 make DESTDIR="$pkgdir/" install
22 install -D -m 755 pjsip-apps/bin/pjsua-$CHOST $pkgdir/usr/bin/pjsua
23 install -D -m 755 pjsip-apps/bin/pjsystest-$CHOST $pkgdir/usr/bin/pjsystest
26 md5sums=('e215d0637d3422d49a63c2cde6673951')