aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-08-05 16:04:05 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2014-08-05 16:04:05 +0200
commit1a0d51e3d4cc0308e014a7ed6287f55d27512b86 (patch)
treed16ae3a3305e3f5f4c54ddaf7b73f5368ef695db /main
parent1e93f9349eb2945493a7a0b881ebad524e469353 (diff)
downloadaports-1a0d51e3d4cc0308e014a7ed6287f55d27512b86.tar.bz2
aports-1a0d51e3d4cc0308e014a7ed6287f55d27512b86.tar.xz
main/asterisk: enable mp3 and cdr_mysql
Diffstat (limited to 'main')
-rw-r--r--main/asterisk/APKBUILD16
1 files changed, 13 insertions, 3 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD
index 749c72f87a..bf0f390ce1 100644
--- a/main/asterisk/APKBUILD
+++ b/main/asterisk/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk
pkgver=12.4.0
-pkgrel=5
+pkgrel=6
pkgdesc="Asterisk: A Module Open Source PBX System"
pkgusers="asterisk"
pkggroups="asterisk"
@@ -14,13 +14,13 @@ makedepends="autoconf automake libtool tar wget ncurses-dev popt-dev newt-dev
zlib-dev pjproject-dev jansson-dev libedit-dev dahdi-tools-dev libpri-dev
sqlite-dev postgresql-dev unixodbc-dev freetds-dev openssl-dev lua-dev
alsa-lib-dev spandsp-dev tiff-dev libresample speex-dev libogg-dev
- bluez-dev curl-dev libsrtp-dev util-linux-dev"
+ bluez-dev curl-dev libsrtp-dev util-linux-dev mysql-dev subversion"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc
$pkgname-tds $pkgname-fax $pkgname-sample-config:sample
$pkgname-sounds-moh:sound_moh $pkgname-sounds-en:sound_en
$pkgname-mobile $pkgname-curl:_curl $pkgname-srtp $pkgname-dahdi
- $pkgname-speex $pkgname-alsa"
+ $pkgname-speex $pkgname-alsa $pkgname-cdr-mysql:cdr_mysql"
_download="http://downloads.asterisk.org/pub/telephony/asterisk/releases"
_z=${pkgver##*.}
@@ -65,6 +65,9 @@ prepare() {
esac
done
+ # enable mp3 support
+ /bin/sh contrib/scripts/get_mp3_source.sh || return 1
+
# asteriskssl does not have direct references to libssl, but looks up
# symbols from it using dlsym(RTLD_NEXT), so use --no-as-needed for it.
sed -i -e 's/ASTSSL_LIBS:=$(OPENSSL_LIB)/ASTSSL_LIBS:=-Wl,--no-as-needed $(OPENSSL_LIB) -Wl,--as-needed/g' main/Makefile
@@ -120,6 +123,7 @@ build() {
./menuselect/menuselect \
--enable chan_mobile \
--enable app_meetme \
+ --enable cdr_mysql \
menuselect.makeopts
# build
@@ -208,6 +212,12 @@ _curl() {
_find_and_move '*_curl*'
}
+cdr_mysql() {
+ depends=
+ install=
+ _find_and_move '*cdr_mysql*'
+}
+
srtp() { _find_and_move '*_srtp*'; }
dahdi() { _find_and_move '*_dahdi*'; }
speex() { _find_and_move '*_speex*'; }