diff options
author | Lockywolf <for_sbo.webrtc-audio-processing_2023-05-09@lockywolf.net> | 2023-05-13 04:35:42 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-13 19:27:15 +0700 |
commit | b9fc53e13333fee9418297a9a559cb6ac4ec70f1 (patch) | |
tree | 41975e1110180afe3a05734520cf86e6b428ba76 /libraries/webrtc-audio-processing | |
parent | 37a3c6b2ff1c220fbc873f6157d3e0777f0fed69 (diff) |
libraries/webrtc-audio-processing: Added (AudioProcessing module)
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/webrtc-audio-processing')
4 files changed, 134 insertions, 0 deletions
diff --git a/libraries/webrtc-audio-processing/README b/libraries/webrtc-audio-processing/README new file mode 100644 index 0000000000000..c6b89a4f79a55 --- /dev/null +++ b/libraries/webrtc-audio-processing/README @@ -0,0 +1,5 @@ +The AudioProcessing module from WebRTC. + +This is meant to be a more Linux packaging friendly copy of the +AudioProcessing module from the WebRTC project. The ideal case is +that we make no changes to the code to make tracking upstream code easy. diff --git a/libraries/webrtc-audio-processing/slack-desc b/libraries/webrtc-audio-processing/slack-desc new file mode 100644 index 0000000000000..6cd92a8906287 --- /dev/null +++ b/libraries/webrtc-audio-processing/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------------------------------------------------------| +webrtc-audio-processing: webrtc-audio-processing (The AudioProcessing module from WebRTC) +webrtc-audio-processing: +webrtc-audio-processing: +webrtc-audio-processing: Linux packaging friendly copy of the AudioProcessing module from +webrtc-audio-processing: the WebRTC project. +webrtc-audio-processing: +webrtc-audio-processing: +webrtc-audio-processing: +webrtc-audio-processing: +webrtc-audio-processing: +webrtc-audio-processing: diff --git a/libraries/webrtc-audio-processing/webrtc-audio-processing.SlackBuild b/libraries/webrtc-audio-processing/webrtc-audio-processing.SlackBuild new file mode 100644 index 0000000000000..57093108dd3a1 --- /dev/null +++ b/libraries/webrtc-audio-processing/webrtc-audio-processing.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/bash +# Slackware build script for webrtc-audio-processing +# Copyright 2023 anonymous Earth +# 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. +cd $(dirname $0) ; CWD=$(pwd) +PRGNAM=webrtc-audio-processing +VERSION=${VERSION:-0.3.1.0.202107202114.6467c436} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +COMMIT=6467c436a892a06f9dcc7018a678c8677d39f08e + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi +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} +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf "$PRGNAM"-"$COMMIT" +tar xvf $CWD/"$COMMIT".tar.gz +cd "$PRGNAM"-"$COMMIT" +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 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 \ + -Dstrip=true + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +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 +sed -i 's/Libs: -lwebrtc_audio_processing/Libs: -lwebrtc_audio_processing -lpthread/g' $PKG/usr/lib64/pkgconfig/webrtc-audio-processing.pc + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING NEWS README.md \ + $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/libraries/webrtc-audio-processing/webrtc-audio-processing.info b/libraries/webrtc-audio-processing/webrtc-audio-processing.info new file mode 100644 index 0000000000000..59cfd49cc1e1d --- /dev/null +++ b/libraries/webrtc-audio-processing/webrtc-audio-processing.info @@ -0,0 +1,10 @@ +PRGNAM="webrtc-audio-processing" +VERSION="0.3.1.0.202107202114.6467c436" +HOMEPAGE="https://github.com/cross-platform/webrtc-audio-processing" +DOWNLOAD="https://github.com/cross-platform/webrtc-audio-processing/archive/6467c436a892a06f9dcc7018a678c8677d39f08e.tar.gz" +MD5SUM="6045c7366647622c6f7c782a115f5f7c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Lockywolf" +EMAIL="for_sbo.webrtc-audio-processing_2023-05-09@lockywolf.net" |