aboutsummaryrefslogtreecommitdiffstats
path: root/main/pjproject
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-03-04 07:48:23 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-03-04 09:10:07 +0000
commita36f963facd1b2b737df1a03f756707d63a87606 (patch)
tree355d33a021fb9b2832f707d55473a95a520b1036 /main/pjproject
parent28e5b26cbc86ee71f924943ea69922c2cb322539 (diff)
downloadaports-a36f963facd1b2b737df1a03f756707d63a87606.tar.bz2
aports-a36f963facd1b2b737df1a03f756707d63a87606.tar.xz
main/pjproject: upgrade to 2.2
minimum requirement for asterisk 12
Diffstat (limited to 'main/pjproject')
-rw-r--r--main/pjproject/APKBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/main/pjproject/APKBUILD b/main/pjproject/APKBUILD
index b199905c8d..24f017275c 100644
--- a/main/pjproject/APKBUILD
+++ b/main/pjproject/APKBUILD
@@ -1,20 +1,21 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pjproject
-pkgver=2.1
+pkgver=2.2
pkgrel=0
pkgdesc="CLI Softphone"
url="http://www.pjsip.org/pjsua.htm"
arch="all"
license="GPL"
depends=
-makedepends="openssl-dev alsa-lib-dev gsm-dev speex-dev portaudio-dev"
+depends_dev="openssl-dev alsa-lib-dev gsm-dev speex-dev portaudio-dev libsrtp-dev libsamplerate-dev"
+makedepends="$depends_dev"
install=
subpackages="$pkgname-dev pjsua"
source="http://www.pjsip.org/release/$pkgver/$pkgname-$pkgver.tar.bz2
musl-fixes.patch"
-_builddir="$srcdir/$pkgname-$pkgver.0"
+_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
@@ -23,6 +24,7 @@ prepare() {
esac
done
update_config_sub || return 1
+
# Remove target name from lib names
sed -i -e 's/-$(TARGET_NAME)//g' \
-e 's/= $(TARGET_NAME).a/= .a/g' \
@@ -37,6 +39,10 @@ prepare() {
-e '/PJLIB_UTIL_CFLAGS/ s/(_CFLAGS)/(_CFLAGS) -fPIC/g' \
Makefile \
build.mak.in || return 1
+
+ # Use libsamplerate instead of bundled resample
+ sed -i -e "s/resample//" third_party/build/Makefile
+ sed -i -e "s#../../third_party/libsamplerate/src/samplerate.h#samplerate.h#" pjmedia/src/pjmedia/resample_libsamplerate.c
}
build() {
@@ -48,8 +54,11 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
+ --enable-shared \
+ --enable-libsamplerate \
--with-external-speex \
--with-external-gsm \
+ --with-external-srtp \
--with-external-pa \
|| return 1
@@ -70,9 +79,9 @@ pjsua() {
install -D -m755 pjsua "$subpkgdir"/usr/bin/pjsua
}
-md5sums="310eb63638dac93095f6a1fc8ee1f578 pjproject-2.1.tar.bz2
+md5sums="0172c649ce68a150dee04011133cfd09 pjproject-2.2.tar.bz2
e92287afb144883546e39c382bd75cdd musl-fixes.patch"
-sha256sums="ac86d2401e1cb4a4f0207e4fd58921f869d0b5ee65a26aa438039a107ba415a5 pjproject-2.1.tar.bz2
+sha256sums="d926e7a9b76ccfcff493cf3cbc003ed6cd183d2bb29d96061b3fd38f70753014 pjproject-2.2.tar.bz2
a9768e1ddc6e519048a5acc084ed1e9d2007bd0cd6291dde0828ea7efc837266 musl-fixes.patch"
-sha512sums="a31c33fb45b074bb43ecf8f579d140cf2d7fe2d508edad5643a9124e7e85dc50e1ecc860e2e52ca42e82c92121b08e7e3691b5dd99db844b21749e03afbc2f94 pjproject-2.1.tar.bz2
+sha512sums="08d75d23c83a54deebcad4a980cb60e47a0ecaaebf8ae552296b088fbda8b69299763ae0b41a062e9b2e0f5c467fe91efd3b5d22855578a1d16ba20cbefde458 pjproject-2.2.tar.bz2
1dd0d8dabe0c27f8d314a776b8873700755ae59346223a5bb5ec816ab42d4fa4c8d9281ed33ced9cba87177cdf6249e458c404c8fd0ac9ec0be8607b4a4e8a73 musl-fixes.patch"