contrib/pjsip/Pkgfile

53 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-08-05 08:39:51 +02:00
# Description: Multimedia communication library
# URL: http://www.pjsip.org/
# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: libsrtp
name=pjsip
2018-10-03 11:16:57 +02:00
version=2.6
2015-08-05 08:39:51 +02:00
release=1
2018-10-03 11:16:57 +02:00
source=(
http://www.pjsip.org/release/$version/pjproject-$version.tar.bz2
)
2015-08-05 08:39:51 +02:00
# Related ports:
2018-10-03 11:16:57 +02:00
# 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.
2015-08-05 08:39:51 +02:00
build() {
cd pjproject-$version
export CFLAGS="$CFLAGS -DNDEBUG"
2018-10-03 11:16:57 +02:00
# webrtc requires SSE2 (disabled temporarily)
if [ '' -a -n "$(grep '\bsse2\b' /proc/cpuinfo)" ]; then
webrtc="--enable-libwebrtc"
else
webrtc="--disable-libwebrtc"
fi
2015-08-05 08:39:51 +02:00
./configure \
--prefix=/usr \
2018-10-03 11:16:57 +02:00
--enable-shared \
2015-08-05 08:39:51 +02:00
--disable-gsm-codec \
--with-external-srtp \
--disable-g7221-codec \
--disable-ilbc-codec \
--disable-libyuv \
--disable-opencore-amr \
--disable-resample \
--disable-sound \
--disable-speex-codec \
--disable-speex-aec \
2018-10-03 11:16:57 +02:00
--disable-video \
$webrtc
2015-08-05 08:39:51 +02:00
make dep
make
make DESTDIR=$PKG install
# remove static libs
rm -f $PKG/usr/lib/*.a
}