# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="ncurses arts alsa python oss libmikmod audiofile oggvorbis jack" S=${WORKDIR}/${P} DESCRIPTION="A package for multitrack audio processing" SRC_URI="http://ecasound.seul.org/download/ecasound-2.2.0-rc1.tar.gz" HOMEPAGE="http://eca.cx/" LICENSE="GPL-2" SLOT="1" KEYWORDS="~x86" # 'jack' isnt officially a USE setting yet. (bug 12527) # Probably it requires something newer than what is in portage? # I dont see 'audiofile' in USE yet either. DEPEND="virtual/glibc media-libs/ladspa-sdk alsa? ( media-libs/alsa-lib ) oggvorbis? ( media-libs/libvorbis ) arts? ( kde-base/arts ) audiofile? ( media-libs/audiofile ) libmikmod? ( media-libs/libmikmod ) python? ( dev-lang/python ) ncurses? ( sys-libs/ncurses ) jack? ( media-sound/jack-audio-connection-kit )" # We don't make RDEPEND for vorbis-tools, mpg123/mpg321, timidity++ or lame -- no # use flags for them. src_unpack() { unpack ${A} cd ${WORKDIR} mv ecasound-2.2.0-rc1 ecasound-2.2.0_rc1 cd ${S} cp configure configure.orig sed -e 's:map.h:map:g' configure.orig > configure } src_compile () { local myconf use alsa || myconf="${myconf} --disable-alsa" use arts || myconf="${myconf} --disable-arts" use ncurses || myconf="${myconf} --disable-ncurses" use audiofile || myconf="${myconf} --disable-audiofile" use oss || myconf="${myconf} --disable-oss" use jack && myconf="${myconf} --with-jack=/usr" if use python; then # # ecasound is braindead about finding python includes/libdirs and # about where to install modules. Luckily, it allows us to specify # all this. # local python_version python_prefix python_includes python_modules python_version="`python -c 'import sys; print sys.version[:3]'`" python_prefix="`python -c 'import sys; print sys.prefix'`" python_includes="$python_prefix/include/python$python_version" python_modules="$python_prefix/lib/python$python_version" # ecasound configure assumes `disable' if you pass # --(enable|disable)-pyecasound. *sigh* #myconf="$myconf --enable-pyecasound" myconf="$myconf --with-python-includes=$python_includes" myconf="$myconf --with-python-modules=$python_modules" else myconf="$myconf --disable-pyecasound" fi einfo "configuring with ${myconf}" econf ${myconf} || die "configure failed" # tested emake on SMP, and it croaked... make || die "build failed" } src_install () { make DESTDIR=${D} install || die if use python; then cd pyecasound || die python -c "import compileall; compileall.compile_dir('.')" || die python -O -c "import compileall; compileall.compile_dir('.')" || die python_sitepkgsdir="`python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`" install *.pyc *.pyo "${D}/${python_sitepkgsdir}" cd .. fi dodoc INSTALL FAQ BUGS COPYING NEWS README TODO dohtml `find Documentation -name "*.html"` dodoc Documentation/edi-list.txt }