summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/mixxx/mixxx-1.8.2.ebuild')
-rw-r--r--media-sound/mixxx/mixxx-1.8.2.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/media-sound/mixxx/mixxx-1.8.2.ebuild b/media-sound/mixxx/mixxx-1.8.2.ebuild
new file mode 100644
index 000000000..8622dccb9
--- /dev/null
+++ b/media-sound/mixxx/mixxx-1.8.2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils multilib scons-utils toolchain-funcs
+
+DESCRIPTION="A QT based Digital DJ tool"
+HOMEPAGE="http://mixxx.sourceforge.net"
+SRC_URI="http://downloads.mixxx.org/${P}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug mp4 pulseaudio"
+
+RDEPEND="media-libs/libid3tag
+ media-libs/libmad
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/libsndfile
+ >=media-libs/libsoundtouch-1.5
+ >=media-libs/portaudio-19_pre
+ media-libs/portmidi
+ media-libs/taglib
+ virtual/opengl
+ virtual/glu
+ x11-libs/qt-gui:4
+ x11-libs/qt-svg:4
+ x11-libs/qt-opengl:4
+ x11-libs/qt-qt3support:4
+ x11-libs/qt-webkit:4
+ x11-libs/qt-xmlpatterns:4
+ mp4? ( media-libs/faad2
+ media-libs/libmp4v2
+ )
+ pulseaudio? ( media-sound/pulseaudio )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+SCONS_MIN_VERSION="2.0.1"
+
+src_prepare() {
+ # patch CFLAGS issue
+ epatch "${FILESDIR}"/${P}-flags.patch
+
+ # patch external libsoundtouch
+ epatch "${FILESDIR}"/${P}-libsoundtouch.patch
+
+ # Patch startup command if not using pulse audio
+ use pulseaudio || sed -i -e 's:pasuspender ::' src/mixxx.desktop || die
+}
+
+src_compile() {
+ tc-export CC CXX
+ export LINKFLAGS="${LDFLAGS}"
+ export LIBPATH="/usr/$(get_libdir)"
+
+ escons \
+ prefix=/usr \
+ qtdir=/usr/$(get_libdir)/qt4 \
+ $(use_scons debug qdebug 1 0) \
+ $(use_scons mp4 m4a 1 0) \
+ hifieq=1 \
+ vinylcontrol=1 \
+ optimize=0 \
+ || die
+}
+
+src_install() {
+ escons install \
+ prefix=/usr \
+ install_root="${D}"/usr \
+ || die
+
+ dodoc README* || die
+
+ insinto /usr/share/doc/${PF}/pdf
+ doins Mixxx-Manual.pdf || die
+}