blob: 93d5df66d2eb5d65704f2278375f9409d2de196e (
plain)
1 # Description: Multimedia communication library
2 # URL: http://www.pjsip.org/
3 # Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: libsrtp
5
6 name=pjsip
7 version=2.6
8 release=1
9 source=(
10 http://www.pjsip.org/release/$version/pjproject-$version.tar.bz2
11 )
12
13 # Related ports:
14 # pjsua: Standalone user-agent.
15 # pjsip: The minimum that asterisk needs for res_pjsip.so and friends. Dynamic libraries.
16 # pjproject: Libraries with most things enabled. Static and dynamic libraries.
17
18 build() {
19 cd pjproject-$version
20
21 export CFLAGS="$CFLAGS -DNDEBUG"
22
23 # webrtc requires SSE2 (disabled temporarily)
24 if [ '' -a -n "$(grep '\bsse2\b' /proc/cpuinfo)" ]; then
25 webrtc="--enable-libwebrtc"
26 else
27 webrtc="--disable-libwebrtc"
28 fi
29
30 ./configure \
31 --prefix=/usr \
32 --enable-shared \
33 --disable-gsm-codec \
34 --with-external-srtp \
35 --disable-g7221-codec \
36 --disable-ilbc-codec \
37 --disable-libyuv \
38 --disable-opencore-amr \
39 --disable-resample \
40 --disable-sound \
41 --disable-speex-codec \
42 --disable-speex-aec \
43 --disable-video \
44 $webrtc
45
46 make dep
47 make
48 make DESTDIR=$PKG install
49
50 # remove static libs
51 rm -f $PKG/usr/lib/*.a
52 }
|