summaryrefslogtreecommitdiffstats
path: root/audio/nas
diff options
context:
space:
mode:
Diffstat (limited to 'audio/nas')
-rw-r--r--audio/nas/README2
-rw-r--r--audio/nas/nas.SlackBuild27
-rw-r--r--audio/nas/nas.info8
-rw-r--r--audio/nas/patch-llvm11.patch11
4 files changed, 37 insertions, 11 deletions
diff --git a/audio/nas/README b/audio/nas/README
index 4bf7d8cbf0..8fe2275e3d 100644
--- a/audio/nas/README
+++ b/audio/nas/README
@@ -2,7 +2,7 @@ The Network Audio System is a network transparent, client/server
audio transport system. It can be described as the audio equivalent
of an X server.
-Note that some applications will likely need recompiling for nas
+Note that some applications will likely need recompiling for nas
support - mplayer for one.
See the /etc/nas/nasd.conf.eg for an example config.
diff --git a/audio/nas/nas.SlackBuild b/audio/nas/nas.SlackBuild
index 1c99a3f482..ecf0548887 100644
--- a/audio/nas/nas.SlackBuild
+++ b/audio/nas/nas.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for nas
# Copyright 2012 David Woodfall <dave@slackbuilds.org>
@@ -21,10 +21,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=nas
-VERSION=${VERSION:-1.9.4}
+VERSION=${VERSION:-1.9.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -34,7 +37,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -59,7 +69,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG/etc/rc.d $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -79,12 +89,17 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
+ --disable-static \
--build=$ARCH-slackware-linux
cd ..
-make CFLAGS="$SLKCFLAGS" World
+# Multiple jobs fail or make a lot of noise
+make -j1 AR="ar cq" World
make install.man install DESTDIR=$PKG
+# remove the static library
+rm -f $PKG/usr/lib64/libaudio.a
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -104,4 +119,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/audio/nas/nas.info b/audio/nas/nas.info
index c3978f8463..018bc68d0b 100644
--- a/audio/nas/nas.info
+++ b/audio/nas/nas.info
@@ -1,10 +1,10 @@
PRGNAM="nas"
-VERSION="1.9.4"
+VERSION="1.9.5"
HOMEPAGE="http://radscan.com/nas.html"
-DOWNLOAD="http://downloads.sourceforge.net/nas/nas-1.9.4.src.tar.gz"
-MD5SUM="dac0e6cd3e5d6a37ae1dff364236a752"
+DOWNLOAD="https://downloads.sourceforge.net/nas/nas-1.9.5.tar.gz"
+MD5SUM="576d2da2edb99611696fff1e21d74090"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="David Woodfall"
+MAINTAINER="D Woodfall"
EMAIL="dave@slackbuilds.org"
diff --git a/audio/nas/patch-llvm11.patch b/audio/nas/patch-llvm11.patch
new file mode 100644
index 0000000000..8d9d7dcc09
--- /dev/null
+++ b/audio/nas/patch-llvm11.patch
@@ -0,0 +1,11 @@
+--- server/dia/main.c.orig 2020-08-22 22:22:28 UTC
++++ server/dia/main.c
+@@ -76,7 +76,7 @@ static char *AuServerName(void);
+ extern char *display;
+
+ static int restart = 0;
+-FILE *yyin; /* for the config parser */
++extern FILE *yyin; /* for the config parser */
+
+ void
+ NotImplemented()