aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/pipewire-native-jack/README7
-rw-r--r--audio/pipewire-native-jack/pipewire-native-jack.SlackBuild129
-rw-r--r--audio/pipewire-native-jack/pipewire-native-jack.info10
-rw-r--r--audio/pipewire-native-jack/slack-desc19
4 files changed, 165 insertions, 0 deletions
diff --git a/audio/pipewire-native-jack/README b/audio/pipewire-native-jack/README
new file mode 100644
index 0000000000000..e4314bf2ab5f0
--- /dev/null
+++ b/audio/pipewire-native-jack/README
@@ -0,0 +1,7 @@
+This build provides the PipeWire JACK API, to be used as
+drop-in replacement for jack. Jack apps need to be built with
+the libraries from this package.
+Pipewire needs to be enabled, e.g. by
+/usr/sbin/pipewire-enable.sh, then logout/login.
+
+This package conflicts with jack from SBo.
diff --git a/audio/pipewire-native-jack/pipewire-native-jack.SlackBuild b/audio/pipewire-native-jack/pipewire-native-jack.SlackBuild
new file mode 100644
index 0000000000000..fe6076c65064c
--- /dev/null
+++ b/audio/pipewire-native-jack/pipewire-native-jack.SlackBuild
@@ -0,0 +1,129 @@
+#!/bin/bash
+
+# Copyright 2020 Eric Hameleers, Eindhoven, NL
+# Copyright 2020, 2021, 2022 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2022 Johannes Schoepfer, Germany
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Thanks to almope and qunying on LQ for the headsup.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=pipewire-native-jack
+PRGNAM_SOURCE=pipewire
+VERSION=${VERSION:-0.3.44}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i586 ;;
+ arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
+ *) ARCH=$(uname -m) ;;
+ esac
+ export ARCH
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "armv7hl" ]; then
+ SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
+ LIBDIRSUFFIX=""
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+
+cd $TMP
+rm -rf $PRGNAM_SOURCE-$VERSION
+tar xvf $CWD/$PRGNAM_SOURCE-$VERSION.tar.?z?
+cd $PRGNAM_SOURCE-$VERSION
+
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir tmp_destdir
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Djack=disabled \
+ -Dpipewire-jack=enabled \
+ -Djack-devel=true \
+ -Dlibjack-path=/usr/lib$LIBDIRSUFFIX \
+ -Dsession-managers=false \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$TMP/$PRGNAM_SOURCE-$VERSION/tmp_destdir $NINJA install
+ # Only put the jack stuff into the package:
+ cd $TMP/$PRGNAM_SOURCE-$VERSION/tmp_destdir
+ cp -a --parents usr/include/jack $PKG/
+ cp -a --parents usr/lib${LIBDIRSUFFIX}/*jack* $PKG/
+ cp -a --parents usr/lib${LIBDIRSUFFIX}/pkgconfig/jack.pc $PKG/
+cd ..
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/${PRGNAM}-$VERSION
+cp -a \
+ CODE_OF_CONDUCT* COPYING* INSTALL* LICENSE* NEWS* README* \
+ $PKG/usr/doc/${PRGNAM}-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/audio/pipewire-native-jack/pipewire-native-jack.info b/audio/pipewire-native-jack/pipewire-native-jack.info
new file mode 100644
index 0000000000000..2be18ecb23e07
--- /dev/null
+++ b/audio/pipewire-native-jack/pipewire-native-jack.info
@@ -0,0 +1,10 @@
+PRGNAM="pipewire-native-jack"
+VERSION="0.3.44"
+HOMEPAGE="https://pipewire.org/"
+DOWNLOAD="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/0.3.44/pipewire-0.3.44.tar.bz2"
+MD5SUM="1b6fadc2495ea1091c9dec05a27a9976"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Johannes Schoepfer"
+EMAIL="slackbuilds@schoepfer.info"
diff --git a/audio/pipewire-native-jack/slack-desc b/audio/pipewire-native-jack/slack-desc
new file mode 100644
index 0000000000000..130718850926b
--- /dev/null
+++ b/audio/pipewire-native-jack/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+pipewire-native-jack: pipewire-native-jack (Use PipeWire instead of JACK)
+pipewire-native-jack:
+pipewire-native-jack: This build provides the PipeWire JACK API, to be used as
+pipewire-native-jack: drop-in replacement for jack. Jack apps need to be built with
+pipewire-native-jack: the libraries from this package.
+pipewire-native-jack: Pipewire needs to be enabled, e.g. by
+pipewire-native-jack: /usr/sbin/pipewire-enable.sh, then logout/login.
+pipewire-native-jack:
+pipewire-native-jack: This package conflicts with jack from SBo.
+pipewire-native-jack: Homepage: https://pipewire.org/
+pipewire-native-jack: