[proaudio] ebuild for mixxx-1.6.0-beta1

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Hi all!

I'm trying to make this ebuild, but I got an error while emerging it. ( sed -i -e "s:-pipe -O3 -pipe:${CXXFLAGS}:" src/SConscript || die )

As it is a big update and the second ebuild of my life, I need your help. :-)

Note that I try to merge the ebuild 1.5 with .9999 together and is probably the cause of the error, as I don't understand some lines!

Happy christmas and merry new year!

Yves C.
-- 
"C'est l'incertitude qui nous charme. Tout devient merveilleux dans la brume."
Oscar Wilde
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE="alsa jack ffmpeg ladspa djconsole hifieq exbpm exrecord"

inherit eutils qt3

MY_P="${P/_/-}"
S="${WORKDIR}/${MY_P}/src"

DESCRIPTION="Digital DJ tool using QT 4.x"
HOMEPAGE="http://mixxx.sourceforge.net";
SRC_URI="mirror://sourceforge/mixxx/${MY_P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"

DEPEND="$(qt_min_version 4.3)
	media-sound/madplay
	media-libs/libogg
	media-libs/libvorbis
	media-libs/audiofile
	media-libs/libsndfile
	media-libs/libsamplerate
	media-libs/libid3tag
	media-libs/portaudio
	virtual/glu
	virtual/opengl
	alsa? ( media-libs/alsa-lib )
	jack? ( media-sound/jack-audio-connection-kit )
	ffmpeg? ( media-video/ffmpeg
			media-sound/gsm
			media-libs/libdc1394
			sys-libs/libraw1394
			media-libs/libdts
			media-libs/a52dec )
	ladspa? ( media-libs/ladspa-sdk )"

RDEPEND="${DEPEND}
	 dev-lang/perl"

DEPEND="${DEPEND}
	sys-apps/sed"

pkg_setup() {
	if use jack; then
		if ! built_with_use media-libs/portaudio jack; then
			eerror "To have jack support, you need to compile portaudio"
			eerror "with USE=\"jack\"!"
			die
		fi
	fi
	# we need qt4 with opengl and qt3support
	if ! built_with_use x11-libs/qt qt3support; then
		eerror "You need to compile qt4 with USE="\"qt3support\"!"
		die
	elif ! built_with_use x11-libs/qt opengl; then
		eerror "You need to compile qt4 with USE="\"opengl\"!"
		die
	fi
}

src_unpack() {
	subversion_src_unpack
	cd "${S}"
	# fix qt4 include path mess
	# epatch "${FILESDIR}/${P}-qt4_paths.patch"
	# use our own CXXFLAGS
	sed -i -e "s:-pipe -O3 -pipe:${CXXFLAGS}:" src/SConscript || die
}

src_compile() {
	local myconf=""
	use ladspa && myconf="ladspa=1"
	use ffmpeg && myconf="${myconf} ffmpeg=1"
	use djconsole && myconf="${myconf} djconsole=1"
	use hifieq && myconf="${myconf} hifieq=1"
	use exbpm && myconf="${myconf} experimentalbpm=1"
	use exrecord && myconf="${myconf} experimentalrecord=1"

	unset QTDIR
	mkdir -p "${D}/usr"
	scons \
		prefix="${D}/usr" \
		${myconf} \
		|| die "scons failed"
}

src_install() {
	mkdir -p "${D}/usr"
	scons prefix="${D}/usr" install || die
	dodoc README Mixxx-Manual.pdf
}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/