summaryrefslogtreecommitdiff
path: root/network/asterisk/asterisk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/asterisk/asterisk.SlackBuild')
-rw-r--r--network/asterisk/asterisk.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/network/asterisk/asterisk.SlackBuild b/network/asterisk/asterisk.SlackBuild
index 85ba95813f..0bc1f559f1 100644
--- a/network/asterisk/asterisk.SlackBuild
+++ b/network/asterisk/asterisk.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/bash
# Copyright 2006, Alan Hicks, Lizella, GA
+# Updated by mario@slackverse.org, 2010-2011
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,23 +22,23 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="asterisk"
-VERSION="1.6.1.6"
+VERSION=${VERSION:-1.8.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+ADDONS=${ADDONS:-yes}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG="$TMP/pkg-$PRGNAM"
+PKG="$TMP/package-$PRGNAM"
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
@@ -75,6 +76,15 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
+make installdirs DESTDIR=$PKG
+
+if [ "$ADDONS" = "yes" ]; then
+ # Select some addons (the list is actualy inverted, and deselected addons are shown here)
+ sed -i -e 's/^MENUSELECT_ADDONS=.*$/MENUSELECT_ADDONS=app_saycountpl chan_mobile format_mp3/' \
+ menuselect.makeopts
+ make addons DESTDIR=$PKG
+fi
+
make samples DESTDIR=$PKG
make install DESTDIR=$PKG