contrib/pjsua/Pkgfile
2018-10-03 18:16:57 +09:00

51 lines
1.2 KiB
Plaintext

# Description: Multimedia communication library
# URL: http://www.pjsip.org/
# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: pjproject
name=pjsua
version=2.6
release=2
source=(
http://www.pjsip.org/release/$version/pjproject-$version.tar.bz2
config_site.h
)
# Related ports:
# 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.
build() {
cd pjproject-$version
export CFLAGS="$CFLAGS -DNDEBUG"
# pjsua will be dynamically linked as long as pjproject is installed beforehand.
# otherwise it will be statically linked.
./configure \
--prefix=/usr \
--with-external-pa \
--with-external-gsm \
--with-external-speex \
--with-external-srtp \
--with-sdl=/usr \
--disable-openh264 \
--enable-libsamplerate \
--disable-resample_dll \
$( [ -f /usr/lib/libpjsua.so ] && echo --enable-shared )
cp $SRC/config_site.h pjlib/include/pj/config_site.h
make dep
# would be nice if something like this worked:
# make -j1 -C pjsip-apps/build pjsua-`./config.guess`
# but for now:
make
# install pjsua only
install -D -m755 pjsip-apps/bin/pjsua-`./config.guess` $PKG/usr/bin/pjsua
}