aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2017-02-04 03:16:25 +0100
committerGerion Entrup <gerion.entrup@flump.de>2017-02-04 03:40:54 +0100
commit5d13d96abe34504b0f008d63ecb1ac179a8224a6 (patch)
tree3943610c2ebf858259751f49b36be5cd4d230cb4 /media-sound
parentadd world-of-goo based on Debian package. (diff)
downloadgerislay-5d13d96abe34504b0f008d63ecb1ac179a8224a6.tar.gz
gerislay-5d13d96abe34504b0f008d63ecb1ac179a8224a6.tar.bz2
gerislay-5d13d96abe34504b0f008d63ecb1ac179a8224a6.zip
mixxx-9999.ebuild again
orientated on the official mixxx-2.0.0-r3.ebuild
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/mixxx/ChangeLog11
-rw-r--r--media-sound/mixxx/Manifest9
-rw-r--r--media-sound/mixxx/files/mixxx-2.0.0-docs.patch10
-rw-r--r--media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch137
-rw-r--r--media-sound/mixxx/metadata.xml15
-rw-r--r--media-sound/mixxx/mixxx-2.0.0.ebuild137
-rw-r--r--media-sound/mixxx/mixxx-9999.ebuild134
7 files changed, 156 insertions, 297 deletions
diff --git a/media-sound/mixxx/ChangeLog b/media-sound/mixxx/ChangeLog
index e42b23c..5415d35 100644
--- a/media-sound/mixxx/ChangeLog
+++ b/media-sound/mixxx/ChangeLog
@@ -1,7 +1,16 @@
# ChangeLog for media-sound/mixxx
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 11 Apr 2015; Karl Linden (lilrc) <lilrc@users.sourceforge.net>
+ mixxx-1.11.0.ebuild, mixxx-1.11.9999.ebuild, mixxx-9999.ebuild:
+ repoman payment
+ mixxx-9999: added ffmpeg use flag, fixes #184, thanks gerion for report
+
+ 16 Mar 2015; Karl Linden (lilrc) <lilrc@users.sourceforge.net>
+ files/mixxx-9999-system-libs.patch:
+ updated mixxx-9999-system-libs.patch, thanks to Alex Barker for the patch
+
20 Dec 2014; Karl Linden (lilrc) <lilrc@users.sourceforge.net>
mixxx-9999.ebuild, -files/mixxx-9999-cflags.patch,
files/mixxx-9999-system-libs.patch:
diff --git a/media-sound/mixxx/Manifest b/media-sound/mixxx/Manifest
index 66ab224..690af65 100644
--- a/media-sound/mixxx/Manifest
+++ b/media-sound/mixxx/Manifest
@@ -1,6 +1,3 @@
-AUX mixxx-2.0.0-docs.patch 445 SHA256 9250ab6b2368ad03b8c54d767fda1d23cd826340189cf8989a3156b76b375411 SHA512 cad756af2cfc90433b20d0a867aed9b85ee822691c5c8adc97de6943273823a769d8e6d4912a71f00bbead2cd96cff91cc12fb2fb8de547bf76dabd74372490e WHIRLPOOL 91b48e4577ff127065bbcae34d945613029850b43831209cc1b1f9c2d1da7fc3c02c9fa96dd958fe85f934749bcbace1b2c6c3c358306dc6d6ea91935337a327
-AUX mixxx-2.0.0-system-libs.patch 5879 SHA256 daca3a3662ecf4fedffdc610199d36f5ca24ba22cd1f7d82dd264b9762081a5b SHA512 44e71b5e02a32fa2f533dc07d4d320d18fe112e7e1342db594e49080ec987ae389b696f5f7ed17cb3b101789916936367b88a6aa0fd755b8d0e7028741c46bc2 WHIRLPOOL f810b7254de4421eebc28c12e7255d3b05f95e93758d51c8bd992fd9d4152537448eebaeaf7703f15d032e139276503ccae360a49c8766395988b67729b345d1
-DIST mixxx-2.0.0.tar.gz 25075794 SHA256 688d87d907f3ad3721602f44295a4d0caa41502df8504ca9264ca0c87d8818f1 SHA512 c0ae850408a63c1b916bde6adaadd5860277f1d8fefbed8bf385c4cc7f5b898bcf220d82eba6942493b8551031907160ecf2cb53a1201a8e82726303e6c23149 WHIRLPOOL 6044379535f0d966485f37bb0da9d476230a902dae034b305742e616ac730780e62e29022ec8e40125d229c1b81d9b7cfc030f5f3f7ebc23cbcf301983cd6a70
-EBUILD mixxx-2.0.0.ebuild 3477 SHA256 279359c1133e53aacaf7bb67098e3e994165b6f6f5381752d040f59f9d9233e5 SHA512 cc450644586bbb5a7c7c1126398195e88ff80d0ee2bff2ea7bf82bef9f2c4f8fcfd1b5b70963f588199a95646877ac529667fbd81337c253c3599c1551d5ec72 WHIRLPOOL 79daf4d5a11dafe4fe988fc3b8589e5e54973bf8363bbbfc84dee6cbd61d1ccc39850629ec5d4d016261d2556f128411e7d0e3a66a63dccdedcf70996445e1bd
-MISC ChangeLog 7853 SHA256 aae49fa4008b5a1c51ac67bc8f8417b957a9cf78cfb61b28587c5612af2423da SHA512 ac90613974fee38c857c0769e680dd343869e6d5caecfe1f51608c4e29cea70686ac97de63e183032b45689f2522a37ae1fbbe3360855b35a4c42ba9bbd79239 WHIRLPOOL 549f652d0058489695b9d779eb4deade4b828aa48bab6baf45d0dd409e7e12e8cc16f0bc45eae1a6c22a2389e9cab2e1be10238345be72864ccbeed69413ef51
-MISC metadata.xml 485 SHA256 2d28e5b3222a404cd0ae26b12d70640ed15c665204a43496862b77f0396f2038 SHA512 cf3578bae5e75f6b5db4ca71cd00a9389878d87d0983b0c5e0b2858336bd30186df13c58b03b9f1f2e698b651d360058ed0ff63771be6ba98128ae30b886d7f7 WHIRLPOOL 275c04e470f80968e15e0c3ef77cfa4f6fe89917b01ce1d94ea7bebdfd30ee54baae32678d79e7d28dde24bd0f4ad1f8756f185638e77421ab22ebca8e42c555
+EBUILD mixxx-9999.ebuild 3233 SHA256 4a0d9f7ded7c07a2e0dc6ec10831f2e5b5d9a41983d4a8b81dce9a958fc56d02 SHA512 865489676411fd3ebef0350ea2b23fba911c9840ac3f3495cd5d3568b27c2499303959f9b1f5daa6978f8bd8b037c124d429e2ede05422a41b05edf66e84ba39 WHIRLPOOL cbca6e8fad62661dfb4c66714f4fc46184f2078abc931d425149e0eed23ac0a3e3279f3040624325e56cf64c8b9a4c3796e10d07af2a93f6f7546ea68b541ee2
+MISC ChangeLog 8257 SHA256 aadd55750770c6faed596e1935ad00f9af1ac5a17ec3592a8fae1b746c21b434 SHA512 f705341e0dec49311df72e4308e1a413af53197bd5846728bf8a78652542cf5251bf8ccadb54e56fba9e1faf09ea24728f975d2fa2ff023e8692355b240279db WHIRLPOOL 1ebb24fe84bda384708e6bf415ad7d8109be5b9f7e765446af81a4fb517d13e17344a43fddd922be8faa771db5c979b88c8a9055bee1e38013022d6be5899b7e
+MISC metadata.xml 561 SHA256 fac51b210ada59f2b25d7b091e0fedbfe8a67b22a6028a2a4da0fac9a6de00a8 SHA512 d8bddfe2914053823ef2366f67472bc19160c053bc8942b96036ee49d581ea496c0bc4788028d3bcd5b546c43483c26deb2917724b525f9040c36a14ab222f2b WHIRLPOOL 7afc7b47f36f06a632fc70b652cf5cbcf88ff69268493136a516c79256c283f720dd25d6ff874dedca12773896488be54a143673d1af6f578df44f99f8f036f8
diff --git a/media-sound/mixxx/files/mixxx-2.0.0-docs.patch b/media-sound/mixxx/files/mixxx-2.0.0-docs.patch
deleted file mode 100644
index bc26d58..0000000
--- a/media-sound/mixxx/files/mixxx-2.0.0-docs.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- mixxx-9999/src/SConscript
-+++ mixxx-9999/src/SConscript
-@@ -290,7 +290,6 @@
- env.Alias('install', controllermappings)
- env.Alias('install', translations)
- env.Alias('install', keyboardmappings)
-- env.Alias('install', docs)
- env.Alias('install', dotdesktop)
- env.Alias('install', icon)
- env.Alias('install', promotracks)
diff --git a/media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch b/media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch
deleted file mode 100644
index 60c293f..0000000
--- a/media-sound/mixxx/files/mixxx-2.0.0-system-libs.patch
+++ /dev/null
@@ -1,137 +0,0 @@
-diff -dNur a/build/depends.py b/build/depends.py
---- a/build/depends.py 2015-12-01 17:29:47.731520477 +0000
-+++ b/build/depends.py 2015-12-01 17:34:59.412854685 +0000
-@@ -403,39 +403,15 @@
- SOUNDTOUCH_PATH = 'soundtouch-1.8.0'
-
- def sources(self, build):
-- return ['engine/enginebufferscalest.cpp',
-- '#lib/%s/AAFilter.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/BPMDetect.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/FIFOSampleBuffer.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/FIRFilter.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/InterpolateCubic.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/InterpolateLinear.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/InterpolateShannon.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/PeakFinder.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/RateTransposer.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/SoundTouch.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/TDStretch.cpp' % self.SOUNDTOUCH_PATH,
-- # SoundTouch CPU optimizations are only for x86
-- # architectures. SoundTouch automatically ignores these files
-- # when it is not being built for an architecture that supports
-- # them.
-- '#lib/%s/cpu_detect_x86.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/mmx_optimized.cpp' % self.SOUNDTOUCH_PATH,
-- '#lib/%s/sse_optimized.cpp' % self.SOUNDTOUCH_PATH]
-+ return ['engine/enginebufferscalest.cpp']
-
- def configure(self, build, conf, env=None):
- if env is None:
- env = build.env
-- env.Append(CPPPATH=['#lib/%s' % self.SOUNDTOUCH_PATH])
--
-- # Prevents circular import.
-- from features import Optimize
--
-- # If we do not want optimizations then disable them.
-- optimize = (build.flags['optimize'] if 'optimize' in build.flags
-- else Optimize.get_optimization_level(build))
-- if optimize == Optimize.LEVEL_OFF:
-- env.Append(CPPDEFINES='SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS')
-+ if not conf.CheckLib(['SoundTouch','libSoundTouch']):
-+ raise Exception('Did not find SoundTouch library, exiting!')
-+ build.env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/soundtouch'])
-+ build.env.Append(LIBS='SoundTouch')
-
-
- class RubberBand(Dependence):
-diff -dNur a/build/features.py b/build/features.py
---- a/build/features.py 2015-12-01 17:29:47.731520477 +0000
-+++ b/build/features.py 2015-12-01 17:40:15.398209140 +0000
-@@ -45,7 +45,6 @@
-
-
- class HID(Feature):
-- HIDAPI_INTERNAL_PATH = '#lib/hidapi-0.8.0-rc1'
-
- def description(self):
- return "HID controller support"
-@@ -62,10 +61,6 @@
- def configure(self, build, conf):
- if not self.enabled(build):
- return
-- # TODO(XXX) allow external hidapi install, but for now we just use our
-- # internal one.
-- build.env.Append(
-- CPPPATH=[os.path.join(self.HIDAPI_INTERNAL_PATH, 'hidapi')])
-
- if build.platform_is_linux:
- build.env.ParseConfig(
-@@ -90,25 +85,17 @@
-
- build.env.Append(CPPDEFINES='__HID__')
-
-+ if not conf.CheckLib('hidapi-libusb'):
-+ raise Exception('Did not find HID API library, exiting!')
-+ build.env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/hidapi'])
-+ build.env.Append(LIBS='hidapi-libusb')
-+
-+
- def sources(self, build):
-- sources = ['controllers/hid/hidcontroller.cpp',
-+ return ['controllers/hid/hidcontroller.cpp',
- 'controllers/hid/hidenumerator.cpp',
- 'controllers/hid/hidcontrollerpresetfilehandler.cpp']
-
-- if build.platform_is_windows:
-- # Requires setupapi.lib which is included by the above check for
-- # setupapi.
-- sources.append(
-- os.path.join(self.HIDAPI_INTERNAL_PATH, "windows/hid.c"))
-- elif build.platform_is_linux:
-- # hidapi compiles the libusb implementation by default on Linux
-- sources.append(
-- os.path.join(self.HIDAPI_INTERNAL_PATH, 'libusb/hid.c'))
-- elif build.platform_is_osx:
-- sources.append(
-- os.path.join(self.HIDAPI_INTERNAL_PATH, 'mac/hid.c'))
-- return sources
--
-
- class Bulk(Feature):
- def description(self):
-@@ -745,25 +732,16 @@
- test_env.Append(CCFLAGS='-pthread')
- test_env.Append(LINKFLAGS='-pthread')
-
-- test_env.Append(CPPPATH="#lib/gtest-1.7.0/include")
-- gtest_dir = test_env.Dir("#lib/gtest-1.7.0")
-- # gtest_dir.addRepository(build.env.Dir('#lib/gtest-1.5.0'))
-- # build.env['EXE_OUTPUT'] = '#/lib/gtest-1.3.0/bin' # example,
-- # optional
-- test_env['LIB_OUTPUT'] = '#/lib/gtest-1.7.0/lib'
--
-- env = test_env
-- SCons.Export('env')
-- env.SConscript(env.File('SConscript', gtest_dir))
--
-- # build and configure gmock
-- test_env.Append(CPPPATH="#lib/gmock-1.7.0/include")
-- gmock_dir = test_env.Dir("#lib/gmock-1.7.0")
-- # gmock_dir.addRepository(build.env.Dir('#lib/gmock-1.5.0'))
-- test_env['LIB_OUTPUT'] = '#/lib/gmock-1.7.0/lib'
-
-- env.SConscript(env.File('SConscript', gmock_dir))
-+ if not conf.CheckLib('gtest'):
-+ raise Exception('Did not find gtest library, exiting!')
-+ test_env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/gtest'])
-+ test_env.Append(LIBS='gtest')
-
-+ if not conf.CheckLib('gmock'):
-+ raise Exception('Did not find gmock library, exiting!')
-+ test_env.Append(CPPPATH=[SCons.ARGUMENTS.get('prefix') + '/include/gmock'])
-+ test_env.Append(LIBS='gmock')
- return []
-
-
diff --git a/media-sound/mixxx/metadata.xml b/media-sound/mixxx/metadata.xml
index db2cb13..4300293 100644
--- a/media-sound/mixxx/metadata.xml
+++ b/media-sound/mixxx/metadata.xml
@@ -1,13 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer>
- <email>proaudio@tuxfamily.org</email>
- <name>pro-audio overlay team</name>
+ <maintainer type="project">
+ <email>proaudio@gentoo.org</email>
+ <name>Gentoo ProAudio Project</name>
</maintainer>
<use>
- <flag name="hid">Build with HID controller support</flag>
- <flag name="pulseaudio">Disables <pkg>media-sound/pulseaudio</pkg> support for mixxx with pasuspender</flag>
- <flag name="shout">Enable shoutcast support</flag>
+ <flag name="hid">Enable HID controller support</flag>
+ <flag name="shout">Enable broadcasting support via <pkg>media-libs/libshout</pkg></flag>
+ <flag name="vamp">Enable vamp analyzing plugins support</flag>
</use>
+ <upstream>
+ <remote-id type="sourceforge">mixxx</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/media-sound/mixxx/mixxx-2.0.0.ebuild b/media-sound/mixxx/mixxx-2.0.0.ebuild
deleted file mode 100644
index e279cd2..0000000
--- a/media-sound/mixxx/mixxx-2.0.0.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit eutils multilib scons-utils toolchain-funcs
-
-DESCRIPTION="A Qt based Digital DJ tool"
-HOMEPAGE="http://www.mixxx.org/"
-SRC_URI="https://github.com/mixxxdj/${PN}/archive/release-${PV/_/-}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="aac +bulk debug doc ffmpeg hid mp3 opus perftools +qt4 qt5 shout +vinylcontrol wavpack"
-REQUIRED_USE="^^ ( qt4 qt5 )"
-
-RDEPEND="dev-libs/protobuf
- media-libs/chromaprint
- media-libs/flac
- media-libs/libid3tag
- media-libs/libogg
- media-libs/libsndfile
- >=media-libs/libsoundtouch-1.5
- media-libs/libvorbis
- >=media-libs/portaudio-19_pre
- media-libs/portmidi
- media-libs/rubberband
- >=media-libs/taglib-1.10
- media-libs/vamp-plugin-sdk
- sci-libs/fftw:3.0
- virtual/glu
- virtual/opengl
- qt4? (
- dev-qt/qtgui:4
- dev-qt/qtopengl:4
- dev-qt/qtsql:4
- dev-qt/qtsvg:4
- dev-qt/qttest:4
- dev-qt/qtwebkit:4
- dev-qt/qtxmlpatterns:4
- )
- qt5? (
- >=dev-qt/qtscript-5.4.2:5[scripttools]
- >=dev-qt/qtsvg-5.4.2:5
- >=dev-qt/qtsql-5.4.2:5
- >=dev-qt/qtxml-5.4.2:5
- >=dev-qt/qtopengl-5.4.2:5
- >=dev-qt/qtgui-5.4.2:5
- >=dev-qt/qtnetwork-5.4.2:5
- >=dev-qt/qtcore-5.4.2:5
- >=dev-qt/qtwidgets-5.4.2:5
- >=dev-qt/qttest-5.4.2:5
- >=dev-qt/qtxmlpatterns-5.4.2:5
- >=dev-qt/qtconcurrent-5.4.2:5
- )
- aac? (
- media-libs/faad2
- media-libs/libmp4v2:=
- )
- hid? ( dev-libs/hidapi )
- mp3? ( media-libs/libmad )
- ffmpeg? ( virtual/ffmpeg )
- opus? (
- media-libs/opus
- media-libs/opusfile )
- perftools? ( dev-util/google-perftools )
- shout? ( media-libs/libshout )
- wavpack? ( media-sound/wavpack )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-S="${WORKDIR}/${PN}-release-${PV/_/-}"
-
-pkg_pretend() {
- if use ffmpeg; then
- ewarn "You enabled USE flag 'ffmpeg'. This is an experimental feature and suffers"
- ewarn "seek and performance issues."
- ewarn ""
- fi
- if use qt5; then
- ewarn "You enabled USE flag 'qt5'. This is an experimental feature and not"
- ewarn "recommended by upstream."
- ewarn ""
- fi
- ewarn "It is recommended by upstream to build libsoundtouch with SSE and CXXFLAGS=\"-ffast-math\"."
- ewarn "To enable this, please add this line to /etc/portage/env/media-libs/libsoundtouch:"
- ewarn "CXXFLAGS=\"\${CXXFLAGS} -ffast-math\""
- ewarn "Please note that \"-ffast-math\" breaks IEEE compliance and may change floating point results."
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-system-libs.patch
- epatch "${FILESDIR}"/${P}-docs.patch
-
- # use multilib compatible directory for plugins
- sed -i -e "/unix_lib_path =/s/'lib'/'$(get_libdir)'/" src/SConscript || die
-}
-
-src_configure() {
- if use qt5 ; then
- QTDIR=${EPREFIX}/usr/$(get_libdir)/qt5
- else
- QTDIR=${EPREFIX}/usr/$(get_libdir)/qt4
- fi
-
- myesconsargs=(
- prefix="${EPREFIX}/usr"
- qtdir="${QTDIR}"
- hifieq=1
- optimize=0
- $(use_scons aac faad)
- $(use_scons bulk bulk)
- $(use_scons debug qdebug)
- $(use_scons ffmpeg)
- $(use_scons hid hid)
- $(use_scons mp3 mad)
- $(use_scons qt5)
- $(use_scons shout shoutcast)
- $(use_scons vinylcontrol vinylcontrol)
- $(use_scons wavpack wv)
- )
-}
-
-src_compile() {
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINKFLAGS="${LDFLAGS}" \
- LIBPATH="${EPREFIX}/usr/$(get_libdir)" escons
-}
-
-src_install() {
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINKFLAGS="${LDFLAGS}" \
- LIBPATH="${EPREFIX}/usr/$(get_libdir)" escons install \
- install_root="${ED}"/usr
-
- dodoc README Mixxx-Manual.pdf
-}
diff --git a/media-sound/mixxx/mixxx-9999.ebuild b/media-sound/mixxx/mixxx-9999.ebuild
new file mode 100644
index 0000000..ca9b68f
--- /dev/null
+++ b/media-sound/mixxx/mixxx-9999.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic scons-utils toolchain-funcs
+
+DESCRIPTION="Advanced Digital DJ tool based on Qt"
+HOMEPAGE="http://www.mixxx.org/"
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://github.com/mixxxdj/${PN}.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ SRC_URI="http://downloads.${PN}.org/${P}/${P}-src.tar.gz"
+
+ # Upstream patches
+ SRC_URI+=" https://github.com/mixxxdj/mixxx/commit/51d95ba58d99309f439cb7e2d1285cfb33aa0f63.patch -> ${PN}-2.0.0-ffmpeg30.patch"
+ SRC_URI+=" https://github.com/mixxxdj/mixxx/commit/869e07067b15e09bf7ef886a8772afdfb79cbc3c.patch -> ${PN}-2.0.0-ffmpeg31.patch"
+ KEYWORDS="~amd64 ~x86"
+
+ PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.0-docs.patch
+ "${DISTDIR}"/${P}-ffmpeg30.patch
+ "${DISTDIR}"/${P}-ffmpeg31.patch
+ "${FILESDIR}"/${P}-chromaprint-1.4.patch #604528
+ )
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="aac debug doc ffmpeg hid mp3 mp4 shout wavpack"
+
+# fails to compile system-fidlib. Add ">media-libs/fidlib-0.9.10-r1" once this
+# got fixed
+RDEPEND="dev-db/sqlite
+ dev-libs/protobuf:0=
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtopengl:5
+ dev-qt/qtscript:5[scripttools]
+ dev-qt/qtsql:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ media-libs/chromaprint
+ media-libs/flac
+ media-libs/libid3tag
+ media-libs/libogg
+ media-libs/libsndfile
+ >=media-libs/libsoundtouch-1.5
+ media-libs/libvorbis
+ >=media-libs/portaudio-19_pre
+ media-libs/portmidi
+ media-libs/rubberband
+ media-libs/taglib
+ media-libs/vamp-plugin-sdk
+ sci-libs/fftw:3.0=
+ virtual/libusb:1
+ virtual/opengl
+ x11-libs/libX11
+ aac? (
+ media-libs/faad2
+ media-libs/libmp4v2:0
+ )
+ hid? ( dev-libs/hidapi )
+ mp3? ( media-libs/libmad )
+ mp4? ( media-libs/libmp4v2:= )
+ shout? ( media-libs/libshout )
+ wavpack? ( media-sound/wavpack )
+ ffmpeg? ( media-video/ffmpeg:0= )"
+# media-libs/rubberband RDEPENDs on sci-libs/fftw:3.0
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-qt/qttest:5
+ dev-qt/qtxmlpatterns:5
+"
+
+src_prepare() {
+ # use multilib compatible directory for plugins
+ sed -i -e "/unix_lib_path =/s/'lib'/'$(get_libdir)'/" src/SConscript || die
+
+ default
+}
+
+src_configure() {
+ local myoptimize=0
+
+ # Required for >=qt-5.7.0 (bug #590690)
+ append-cxxflags -std=c++11
+
+ # Try to get cpu type based on CFLAGS.
+ # Bug #591968
+ for i in $(get-flag mcpu) $(get-flag march) ; do
+ if [[ ${i} = native ]] ; then
+ myoptimize="native"
+ break
+ fi
+ done
+
+ myesconsargs=(
+ prefix="${EPREFIX}/usr"
+ qtdir="${EPREFIX}/usr/$(get_libdir)/qt5"
+ faad="$(usex aac 1 0)"
+ ffmpeg="$(usex ffmpeg 1 0)"
+ hid="$(usex hid 1 0)"
+ hifieq=1
+ m4a="$(usex mp4 1 0)"
+ mad="$(usex mp3 1 0)"
+ optimize="${myoptimize}"
+ qdebug="$(usex debug 1 0)"
+ qt5=1
+ shoutcast="$(usex shout 1 0)"
+ vinylcontrol=1
+ wv="$(usex wavpack 1 0)"
+ )
+}
+
+src_compile() {
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINKFLAGS="${LDFLAGS}" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" escons ${myesconsargs[@]}
+}
+
+src_install() {
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINKFLAGS="${LDFLAGS}" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" escons ${myesconsargs[@]} \
+ install_root="${ED}"/usr install
+
+ dodoc README Mixxx-Manual.pdf
+}