# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit wxwidgets eutils IUSE="gtk2 encode mad vorbis flac" MY_PV="${PV/_/-}" MY_P="${PN}-src-${MY_PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Free crossplatform audio editor" HOMEPAGE="http://audacity.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" # amd64: causes xfce pannel to crash... KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~ppc64" DEPEND="=x11-libs/wxGTK-2.6* >=app-arch/zip-2.3 media-libs/libid3tag >=media-libs/libsndfile-1.0.0 >=media-libs/libvorbis-1.0 >media-libs/libogg-1.0 mad? ( media-libs/libmad ) encode? ( >=media-sound/lame-3.92 )" S="${WORKDIR}/${PN}-src-${PV}-beta" # the tarball inpacks with _beta on it, so help ebuild find the # source tree WX_GTK_VER="2.6" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-1.2.3-gcc41.patch # bug 113754 #this patch for building with gcc 4.1 is in upstream CVS # and will be obselete in 1.3.1 } src_compile() { need-wxwidgets unicode || need-wxwidgets gtk2-ansi # this builds with any unicode or gtk2 ansi version of wxwidgets echo econf \ $(use_with mad libmad system) \ --with-libvorbis=system \ --with-libogg=system \ $(use_with flac flac system) \ --with-id3tag=system \ ${myconf} || die #note there is an upstream makefile bug which means that system versions # of libsndfile aren't found by configure. The bundled one works so this #just lets it use it. #libogg and libvorbis are hard dependancies upstream # parallel borks emake -j1 || die } src_install() { make DESTDIR="${D}" install || die # Install our docs dodoc LICENSE.txt README.txt audacity-1.2-help.htb # Remove bad doc install rm -rf ${D}/share/doc insinto /usr/share/icons/hicolor/48x48/apps newins images/AudacityLogo48x48.xpm audacity.xpm make_desktop_entry audacity Audacity audacity }