blob: d51d25754a23033781e0ae6641e1ec83163aab80 (
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: pjproject
5
6 name=pjsua
7 version=2.6
8 release=2
9 source=(
10 http://www.pjsip.org/release/$version/pjproject-$version.tar.bz2
11 config_site.h
12 )
13
14 # Related ports:
15 # pjsua: Standalone user-agent.
16 # pjsip: The minimum that asterisk needs for res_pjsip.so and friends. Dynamic libraries.
17 # pjproject: Libraries with most things enabled. Static and dynamic libraries.
18
19 build() {
20 cd pjproject-$version
21
22 export CFLAGS="$CFLAGS -DNDEBUG"
23
24 # pjsua will be dynamically linked as long as pjproject is installed beforehand.
25 # otherwise it will be statically linked.
26 ./configure \
27 --prefix=/usr \
28 --with-external-pa \
29 --with-external-gsm \
30 --with-external-speex \
31 --with-external-srtp \
32 --with-sdl=/usr \
33 --disable-openh264 \
34 --enable-libsamplerate \
35 --disable-resample_dll \
36 $( [ -f /usr/lib/libpjsua.so ] && echo --enable-shared )
37
38 cp $SRC/config_site.h pjlib/include/pj/config_site.h
39
40 make dep
41
42 # would be nice if something like this worked:
43 # make -j1 -C pjsip-apps/build pjsua-`./config.guess`
44
45 # but for now:
46 make
47
48 # install pjsua only
49 install -D -m755 pjsip-apps/bin/pjsua-`./config.guess` $PKG/usr/bin/pjsua
50 }
|