summaryrefslogtreecommitdiff
path: root/libraries/belle-sip/belle-sip.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/belle-sip/belle-sip.SlackBuild')
-rw-r--r--libraries/belle-sip/belle-sip.SlackBuild27
1 files changed, 16 insertions, 11 deletions
diff --git a/libraries/belle-sip/belle-sip.SlackBuild b/libraries/belle-sip/belle-sip.SlackBuild
index b37b90d481..60a6869a5c 100644
--- a/libraries/belle-sip/belle-sip.SlackBuild
+++ b/libraries/belle-sip/belle-sip.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for ccrtp
+# Slackware build script for belle-sip
# Was written by Euan Thoms <euan at potensol dot com>
# Copyright 2014 Euan Thoms United Kingdom
@@ -24,13 +24,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=belle-sip
-VERSION=${VERSION:-1.4.2}
+VERSION=${VERSION:-1.6.3}
+SRCDIRNAM=${PRGNAM}-${VERSION}-0
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -55,17 +56,21 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="AUTHORS COPYING INSTALL NEWS README $CWD/$PRGNAM.SlackBuild"
+DOCS="AUTHORS COPYING ChangeLog NEWS README.md $CWD/$PRGNAM.SlackBuild"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cp $CWD/antlr-*-complete.jar $PRGNAM-$VERSION/antlr.jar
-cd $PRGNAM-$VERSION
+rm -rf ${PRGNAM}-${VERSION}
+tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+if [ "${SRCDIRNAM}" != "${PRGNAM}-${VERSION}" ]
+then
+ mv ${SRCDIRNAM} ${PRGNAM}-${VERSION}
+fi
+cp $CWD/antlr-*-complete.jar ${PRGNAM}-${VERSION}/antlr.jar
+cd ${PRGNAM}-${VERSION}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -73,7 +78,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
# Ensure java is in $PATH
export PATH=$PATH:/usr/lib${LIBDIRSUFFIX}/java/bin
@@ -102,6 +106,7 @@ CPPFLAGS="${CPPFLAGS} -I/usr/include/antlr3" \
--disable-silent-rules \
--disable-static \
--disable-tests \
+ --enable-tls \
--with-antlr=/usr \
--build=$ARCH-slackware-linux