Commit
Switch to cmake as scons has been deprecated as build system \o/ Remove libshout as dependency as mixxx now uses a statically linked version of libshout-idjc (currently only in the AUR). Add fftw to makedepends/ soname depends. Remove mp4v2 patch for scons build system. git-svn-id: file:///srv/repos/svn-community/svn@968051 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,67 +5,50 @@ | |
# Contributor: Stefan Husmann <stefan-husmann@t-online.de> | ||
|
||
pkgname=mixxx | ||
pkgver=2.2.4 | ||
pkgrel=6 | ||
pkgver=2.3.0 | ||
pkgrel=1 | ||
pkgdesc="Free, open source software for digital DJ'ing." | ||
arch=('x86_64') | ||
url="https://www.mixxx.org" | ||
license=('GPL2') | ||
groups=('pro-audio') | ||
depends=('chromaprint' 'gcc-libs' 'glibc' 'hidapi' 'libglvnd' 'libmad' | ||
'libmodplug' 'libmp4v2' 'libshout' 'libx11' 'openssl' 'opusfile>=0.12' 'qt5-base' | ||
'qt5-script' 'qt5-svg' 'qt5-x11extras' 'qtkeychain' 'soundtouch' 'speex' | ||
'sqlite' 'taglib' 'upower' 'wavpack') | ||
makedepends=('faad2' 'ffmpeg' 'flac' 'glib2' 'glu' 'gperftools' 'libid3tag' | ||
'libogg' 'libsndfile' 'libusb' 'libvorbis' 'lilv' 'lv2' 'qt5-tools' 'portaudio' | ||
'portmidi' 'protobuf' 'rubberband' 'scons' 'vamp-plugin-sdk') | ||
# TODO: package libshout-idjc | ||
depends=('gcc-libs' 'glibc' 'hidapi' 'lame' 'libglvnd' 'libmad' 'libmodplug' | ||
'libmp4v2' 'libx11' 'openssl' 'opusfile' 'qt5-base' 'qt5-script' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dvzrv
Author
Member
|
||
'qt5-svg' 'qt5-x11extras' 'qtkeychain' 'soundtouch' 'speex' 'sqlite' 'taglib' | ||
'upower' 'wavpack') | ||
makedepends=('chromaprint' 'cmake' 'faad2' 'ffmpeg' 'fftw' 'flac' 'glib2' 'glu' | ||
'gperftools' 'libid3tag' 'libogg' 'libsndfile' 'libusb' 'libvorbis' 'lilv' | ||
'lv2' 'qt5-tools' 'portaudio' 'portmidi' 'protobuf' 'rubberband' | ||
'vamp-plugin-sdk') | ||
checkdepends=('xorg-server-xvfb') | ||
source=("https://github.com/${pkgname}dj/${pkgname}/archive/release-${pkgver}.tar.gz" | ||
mixxx-mp4v2-c++.patch) | ||
sha512sums=('34f67088ea2271cb13b75d001d3814237b1b6c2052646d670a36e341fb78e24c34d361a3eb03b0dbfb2d94b0026fecc9125713d7533aac7e99161c27090115fa' | ||
'c7ea562ac32e46ec12302cb3c50f2152d172830cfe669f230f810dff51c1421ae7811a96a26cbc06f28be6cf1900f9fc161ff91dfcad659831bd0ff24dea3cd7') | ||
|
||
prepare() { | ||
mv -v "${pkgname}-release-${pkgver}" "${pkgname}-${pkgver}" | ||
cd "${pkgname}-${pkgver}" | ||
|
||
# Check for mp4v2 headers in C++ mode, since using mp4v2 in C is broken https://github.com/TechSmith/mp4v2/issues/47 | ||
patch -p1 < ../mixxx-mp4v2-c++.patch | ||
} | ||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}dj/${pkgname}/archive/${pkgver}.tar.gz") | ||
sha512sums=('9ebb735b4f5d85b5f2b1ea6b8976ccfc0b1cd39516c5d5d6eb9038761836bb640583ea5c941f3b0d37e1882fa14dbc971c99f69498de764218d2815f58fc00f1') | ||
b2sums=('346bef3feecf1671729b2b07156be281d9f7879aaf3bb5764ec7bdfa1004ef1630c9279df46467ab3696ea7debf3c2a6b68202db9f5a288879d8a34ee00df738') | ||
|
||
build() { | ||
cd "${pkgname}-${pkgver}" | ||
export SCONSFLAGS="-j $(nproc)" | ||
scons prefix=/usr \ | ||
build=release \ | ||
faad=1 \ | ||
ffmpeg=1 \ | ||
modplug=1 \ | ||
perftools=1 \ | ||
perftools_profiler=1 \ | ||
qt_sqlite_plugin=0 \ | ||
qtkeychain=1 \ | ||
test=1 \ | ||
target=linux \ | ||
virtualize=0 \ | ||
wv=1 | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_BUILD_TYPE='Release' \ | ||
-Wno-dev \ | ||
-B build \ | ||
-S . | ||
make VERBOSE=1 -C build | ||
} | ||
|
||
check() { | ||
cd "${pkgname}-${pkgver}" | ||
xvfb-run lin64_build/${pkgname}-test | ||
xvfb-run build/${pkgname}-test | ||
This comment has been minimized.
Sorry, something went wrong.
Holzhaus
|
||
} | ||
|
||
package() { | ||
depends+=('libFLAC.so' 'libfaad.so' 'libavcodec.so' 'libavformat.so' | ||
'libavutil.so' 'libglib-2.0.so' 'libid3tag.so' 'libgobject-2.0.so' | ||
'liblilv-0.so' 'libogg.so' 'libportaudio.so' 'libportmidi.so' | ||
'libprotobuf-lite.so' 'librubberband.so' 'libsndfile.so' 'libtcmalloc.so' | ||
'libusb-1.0.so' 'libvorbis.so' 'libvorbisenc.so' 'libvorbisfile.so') | ||
depends+=('libFLAC.so' 'libavcodec.so' 'libavformat.so' 'libavutil.so' | ||
'libchromaprint.so' 'libfftw3.so' 'libglib-2.0.so' 'libid3tag.so' | ||
This comment has been minimized.
Sorry, something went wrong.
Holzhaus
|
||
'libgobject-2.0.so' 'liblilv-0.so' 'libogg.so' 'libportaudio.so' | ||
'libportmidi.so' 'libprotobuf-lite.so' 'librubberband.so' 'libsndfile.so' | ||
'libtcmalloc.so' 'libusb-1.0.so' 'libvorbis.so' 'libvorbisenc.so' | ||
'libvorbisfile.so') | ||
|
||
cd "${pkgname}-${pkgver}" | ||
scons prefix=/usr \ | ||
install_root="${pkgdir}/usr" \ | ||
install | ||
# removing the test executable | ||
rm -v "${pkgdir}/usr/bin/${pkgname}-test" | ||
make DESTDIR="${pkgdir}" install -C build | ||
This comment has been minimized.
Sorry, something went wrong.
Be-ing
|
||
} |
This file was deleted.
libmp4v2 is no longer required. It has been replaced by FFmpeg. libmp4v2 is only linked when FAAD=ON
https://github.com/mixxxdj/mixxx/blob/2.3.0/CMakeLists.txt#L2304