summaryrefslogtreecommitdiff
path: root/audio/mixxx
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-08-06 19:07:26 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-07 10:28:42 +0700
commit54b61c53c88b1803f06ff9d1b8e8a3b80f5a575e (patch)
treefb7a961d8ea6ba3065f5937fe0a850738b2726ff /audio/mixxx
parentfae8acef6f631d998532ccdec532896407e770ca (diff)
downloadslackbuilds-54b61c53c88b1803f06ff9d1b8e8a3b80f5a575e.tar.gz
audio/mixxx: Updated for version 2.3.0, switch to cmake.
Add the new dependency hidapi Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/mixxx')
-rw-r--r--audio/mixxx/README4
-rw-r--r--audio/mixxx/mixxx.SlackBuild56
-rw-r--r--audio/mixxx/mixxx.info8
3 files changed, 23 insertions, 45 deletions
diff --git a/audio/mixxx/README b/audio/mixxx/README
index e029f97fab..e8e1406e74 100644
--- a/audio/mixxx/README
+++ b/audio/mixxx/README
@@ -5,7 +5,3 @@ and FLAC playback, pitch independent time stretch, vinyl emulation,
wave recording, BPM detection, multichannel and multiple soundcard
support, MIDI controllers support and scripting engine, a skinnable
interface.
-
-NOTE: mixxx uses scons to build so it will ignore your MAKEFLAGS
-jobs settings: it will instead autodetect the number of cores and
-start a proper jobs number accordingly.
diff --git a/audio/mixxx/mixxx.SlackBuild b/audio/mixxx/mixxx.SlackBuild
index 47e63d66f4..4d23b287f9 100644
--- a/audio/mixxx/mixxx.SlackBuild
+++ b/audio/mixxx/mixxx.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for mixxx
# Copyright 2011 Elvio "HelLViS69" Basello <hellvis69@gmail.com>
-# Copyright 2018-2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2018-2021 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mixxx
-VERSION=${VERSION:-2.2.4}
+VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -72,9 +72,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-release-$VERSION
-tar xvf $CWD/$PRGNAM-release-$VERSION.tar.gz
-cd $PRGNAM-release-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -82,42 +82,24 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
-# scons is now python3 based
-sed -i "s|from features|from .features|" build/depends.py
-
-# Fix library installation path
-sed -i "s|'lib'|'lib$LIBDIRSUFFIX'|" build/depends.py src/SConscript || exit 1
-sed -i "s|usr/lib|usr/lib$LIBDIRSUFFIX|" src/SConscript || exit 1
-
-# 20201104 bkw: Install udev rules to $PKG/etc, not the real /etc!
-# The dir has to already exist, too.
-sed -i "s,/etc/udev,$PKG&," src/SConscript
-mkdir -p $PKG/etc/udev/rules.d
-
-export SCONSFLAGS="-j $(nproc)"
-CFLAGS="$SLKCFLAGS" \
-QTDIR=/usr/lib$LIBDIRSUFFIX/qt5 \
-scons \
- shoutcast=1 \
- faad=1 \
- modplug=1 \
- opus=1 \
- build=release \
- virtualize=0 \
- qt_sqlite_plugin=0 \
- vamp=1 \
- lilv=1 \
- wv=1 \
- install_root=$PKG/usr \
- prefix=/usr \
- install
-
-rm -f $PKG/usr/bin/$PRGNAM-test
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
+
+mkdir -p $PKG/etc
+mv $PKG/usr/share/mixxx/udev $PKG/etc/
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 $PKG/usr/doc
+mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/audio/mixxx/mixxx.info b/audio/mixxx/mixxx.info
index 8749cfb427..5d862a2c60 100644
--- a/audio/mixxx/mixxx.info
+++ b/audio/mixxx/mixxx.info
@@ -1,10 +1,10 @@
PRGNAM="mixxx"
-VERSION="2.2.4"
+VERSION="2.3.0"
HOMEPAGE="https://www.mixxx.org"
-DOWNLOAD="https://github.com/mixxxdj/mixxx/archive/release-2.2.4/mixxx-release-2.2.4.tar.gz"
-MD5SUM="25bbebca0187254db4d1c53dc0bdd77d"
+DOWNLOAD="https://github.com/mixxxdj/mixxx/archive/2.3.0/mixxx-2.3.0.tar.gz"
+MD5SUM="1aab96e59032ebceb2cd4bf6926367f8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="chromaprint faad2 libmodplug libmp4v2 libshout lilv opencore-amr portaudio portmidi protobuf3 rubberband vamp-plugin-sdk"
+REQUIRES="chromaprint faad2 hidapi libmodplug libmp4v2 libshout lilv opencore-amr portaudio portmidi protobuf3 rubberband vamp-plugin-sdk"
MAINTAINER="Matteo Bernardini"
EMAIL="ponce@slackbuilds.org"