updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / pjsip / PKGBUILD
blobbcef5effc95b0abcb6a4171e083659abc397db1a
1 # Contributor: Yejun Yang < yejunx AT gmail DOT com >
3 pkgname=pjsip
4 pkgver=1.10
5 pkgrel=1
6 pkgdesc="comprehensive, high performance, small footprint multimedia communication libraries written in C"
7 arch=(i686 x86_64)
8 url="http://www.pjsip.org"
9 license=('GPL')
10 depends=(openssl portaudio speex alsa-lib libsamplerate util-linux-ng)
11 options=(!distcc)
12 source=(http://www.pjsip.org/release/$pkgver/pjproject-$pkgver.tar.bz2)
14 build() {
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
20   make dep && make
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')