# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Created by: Markus Giese # Alex Barker # Removed python, mixxx support for python is beta at best. IUSE="alsa jack lua djconsole python" inherit eutils qt3 #Dirty hack needs attention! S="${WORKDIR}/${P/.1/}/src" DESCRIPTION="Digital DJ tool using QT 3.x" HOMEPAGE="http://mixxx.sourceforge.net" SRC_URI="mirror://sourceforge/mixxx/${P}-src.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~ppc" DEPEND="$(qt_min_version 3.1) media-sound/madplay media-libs/libogg media-libs/libvorbis media-libs/audiofile media-libs/libsndfile media-libs/libsamplerate =media-libs/portaudio-19* alsa? ( media-libs/alsa-lib ) jack? ( media-sound/jack-audio-connection-kit ) python? ( dev-lang/python ) lua? ( dev-lang/lua ) lua? ( dev-lang/toluapp )" RDEPEND="${DEPEND} dev-lang/perl" # This is needed until the next version of mixxx when they move to # the new make system. DEPEND="${DEPEND} sys-apps/sed" src_unpack() { unpack "${A}" cd "${S}" epatch "${FILESDIR}"/00_${P}-jack.patch epatch "${FILESDIR}"/01_${P}-python.patch epatch "${FILESDIR}"/02_${P}-lua.patch epatch "${FILESDIR}"/10_${P}-version.patch # fix gcc4 errors (virtual destructor) #sed -i -e "162,163s|SoundTouch::||" ../lib/soundtouch/SoundTouch.h || die #sed -i -e "48,49s|Rhythmogram::||" wavesegmentation.h || die # fix cflags sed -i -e "s:\(QMAKE_CXXFLAGS\)\(.*\):\1 += ${CFLAGS} -pipe:" \ -e "s:\(QMAKE_CFLAGS\)\(.*\):\1 += ${CFLAGS} -pipe:" \ mixxx.pro || die "patching failed" } src_compile() { # econf won't work #echo ${EXTRA_ECONF} #econf ${useconf} || die "Error: econf failed!" #echo ${useconf}; ./configure $(use_enable alsa) $(use_enable jack) $(use_enable lua) $(use_enable python) $(use_enable djconsole) || die "configure failed" addpredict ${QTDIR}/etc/settings emake || die "make failed" } src_install() { make COPY_FILE="cp -fpr" \ INSTALL_ROOT="${D}" install || die "make install failed" dodoc ../README ../README.ALSA ../Mixxx-Manual.pdf } pkg_postinst() { if use python ; then ewarn "Compiling with Python support is considered experimental. \ Please report bugs to Mixxx development directly." fi if use lua ; then ewarn "Compiling with LUA support is considered experimental. \ Please report bugs to Mixxx development directly." fi elog "Please review README.ALSA for configuration options." }