void-packages/srcpkgs/mixxx/template

41 lines
1.4 KiB
Bash

# Template file for 'mixxx'
pkgname=mixxx
version=2.0.0
revision=5
hostmakedepends="scons pkg-config"
makedepends="portaudio-devel libusb-devel libmad-devel protobuf-devel
libid3tag-devel glu-devel taglib-devel opus-devel portmidi-devel
vamp-plugin-sdk-devel faad2-devel libmp4v2-devel libmp4v2-devel
rubberband-devel chromaprint-devel fftw-devel ffmpeg-devel
qt5-svg-devel qt5-script-devel qt5-xmlpatterns-devel qt5-script-devel
libshout-devel"
depends="qt5-plugin-sqlite"
short_desc="Open source digital DJing software that allows mixing music"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://www.mixxx.org"
license="GPL-2"
distfiles="https://github.com/mixxxdj/mixxx/archive/release-${version}.tar.gz"
checksum=688d87d907f3ad3721602f44295a4d0caa41502df8504ca9264ca0c87d8818f1
_scons_args="shoutcast=1 faad=1 tuned=0 prefix=/usr qt5=1 qtdir=/usr/include/qt5"
wrksrc=$pkgname-release-$version
do_build() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
export CFLAGS+=" -msse"
export CXXFLAGS+=" -msse"
fi
sed -i \
-e 's/branch_name = .*/branch_name = "mixxx"/' \
-e 's/vcs_revision = .*/vcs_revision = "'$version'"/' \
src/SConscript
scons ${makejobs} ${_scons_args}
}
do_install() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
export CFLAGS+=" -msse"
export CXXFLAGS+=" -msse"
fi
scons ${_scons_args} install_root=${DESTDIR}/usr install
}