Browse Source

ap/jack: Updated for Slackware64-14.2.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
47ee54457d
  1. 9
      ap/jack/jack.SlackBuild
  2. 12
      ap/jack/jack2-1.9.10-fast_rand.diff

9
ap/jack/jack.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010,2011,2012,2013,2014 Damien Goutte-Gattat
# Copyright (C) 2009-2014,2016 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,7 +24,8 @@
#
# Latest jack sourcecode is available at: <http://jackaudio.org/>.
#
# Depends: l/opus, l/libffado
# Depends: l/opus
# Optional: l/libffado
# Source package infos
NAMESRC=${NAMESRC:-jack2}
@ -85,6 +86,7 @@ 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 \
@ -92,8 +94,7 @@ CXXFLAGS=$CPUOPT \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man/man1 \
--alsa \
--firewire \
--classic
--dbus
./waf -j $JOBS build
./waf install --destdir=$PKG

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

@ -0,0 +1,12 @@
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;
}
Loading…
Cancel
Save