/
KagamiBuild
37 lines (32 loc) · 903 Bytes
/
KagamiBuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Description: Open source SIP stack and media stack
# URL: https://www.pjsip.org/
# Maintainer: protonesso, nagakamira at gmail dot com
# Depends on: alsa-lib ffmpeg libsamplerate opus portaudio speexdsp util-linux openh264
# Section: audio
name=pjproject
version=2.11
release=1
options=('~makeflags')
source=("https://github.com/pjsip/pjproject/archive/$version.tar.gz::archive=$name-$version.tar.gz")
build() {
append-cflags -fPIC
append-cxxflags -fPIC
cd "$SRC"/$name-$version
for a in $(find . -name config.sub); do
cp "$STUFF"/config.sub $a
done
for a in $(find . -name config.guess); do
cp "$STUFF"/config.guess $a
done
./configure $BUILDFLAGS \
--prefix=/usr \
--with-external-gsm \
--with-external-pa \
--with-external-speex \
--enable-shared \
--disable-libwebrtc \
--disable-opencore-amr
make -j1 dep
make -j1
make -j1 DESTDIR="$PKG" install
}