Browse Source

ap/jack: Upgraded to jack-1.9.13.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
4fd9150777
  1. 15
      ap/jack/jack.SlackBuild
  2. 12
      ap/jack/jack2-1.9.10-fast_rand.diff
  3. 1
      ap/jack/jack2-1.9.10.tar.gz.sha1
  4. 1
      ap/jack/jack2-1.9.13.tar.gz.sha256

15
ap/jack/jack.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009-2014,2016 Damien Goutte-Gattat
# Copyright (C) 2009-2014,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,14 +24,13 @@
#
# Latest jack sourcecode is available at: <http://jackaudio.org/>.
#
# Depends: l/opus
# Optional: l/libffado
# Source package infos
NAMESRC=${NAMESRC:-jack2}
VERSION=${VERSION:-1.9.10}
VERSION=${VERSION:-1.9.13}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/jackaudio/jack2/archive/v$VERSION.tar.gz}
WGET=${WGET:-https://github.com/jackaudio/jack2/releases/download/v$VERSION/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-jack}
@ -78,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
# Compile
@ -86,7 +85,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/jack2-1.9.10-fast_rand.diff
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./waf configure \
@ -107,9 +105,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
for doc in ChangeLog README README_NETJACK2 TODO; do
cat $doc | tr -d $'\r' | fmt -s > $PKG/usr/doc/$NAMEPKG-$VERSION/$doc
done
install -m 644 AUTHORS.rst ChangeLog.rst README{.rst,_NETJACK2} \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

12
ap/jack/jack2-1.9.10-fast_rand.diff

@ -1,12 +0,0 @@
diff -Naur jack2-1.9.10.orig/common/memops.c jack2-1.9.10/common/memops.c
--- jack2-1.9.10.orig/common/memops.c 2014-07-19 15:34:15.000000000 +0200
+++ jack2-1.9.10/common/memops.c 2016-07-17 19:41:24.934981957 +0200
@@ -198,7 +198,7 @@
*/
static unsigned int seed = 22222;
-inline unsigned int fast_rand() {
+static inline unsigned int fast_rand() {
seed = (seed * 96314165) + 907633515;
return seed;
}

1
ap/jack/jack2-1.9.10.tar.gz.sha1

@ -1 +0,0 @@
0f648b8b03537991c095591a43d7eb21f0f29000 jack2-1.9.10.tar.gz

1
ap/jack/jack2-1.9.13.tar.gz.sha256

@ -0,0 +1 @@
826320241954cd3c6e5946e8776c1eeb1480327ce89917713566102b07202db4 jack2-1.9.13.tar.gz
Loading…
Cancel
Save