# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/audacity/audacity-1.1.3.ebuild,v 1.9 2004/06/24 23:51:13 agriffis Exp $ inherit eutils MY_PV="${PV/_/-}" MY_P="${PN}-src-${MY_PV}" DESCRIPTION="A free, crossplatform audio editor." HOMEPAGE="http://audacity.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" RESTRICT="nomirror" LICENSE="GPL-2" IUSE="encode flac mad oggvorbis" SLOT="0" KEYWORDS="x86" DEPEND=">=x11-libs/wxGTK-2.2.9 >=app-arch/zip-2.3 >=media-libs/id3lib-3.8.0 media-libs/libid3tag >=media-libs/libsndfile-1.0.0 >=media-libs/libsamplerate-0.0.14 =dev-libs/fftw-2* >=media-libs/ladspa-sdk-1.12 flac? ( media-libs/flac ) oggvorbis? ( >=media-libs/libvorbis-1.0 ) mad? ( >=media-sound/madplay-0.14 ) encode? ( >=media-sound/lame-3.92 )" S="${WORKDIR}/${MY_P}" DOC="LICENSE.txt README.txt audacity-1.2-help.htb" # Disable UNICODE CFLAGS="${CFLAGS} -DwxUSE_UNICODE=0" pkg_setup() { if wx-config --cppflags | grep gtk2u >& /dev/null; then einfo "Audacity will not build if wxGTK was compiled" einfo "with unicode support. If you are using a version of" einfo "wxGTK <= 2.4.2, you must set USE=-gtk2. In newer versions," einfo "you must set USE=-unicode." die "wxGTK must be re-emerged without unicode suport" fi } src_compile() { local myconf; myconf="--with-libsndfile=system --with-id3tag=system --with-help" # MAD support if use mad; then myconf="${myconf} --with-libmad=system" else myconf="${myconf} --with-libmad=none" fi # FLAC support if use flac; then myconf="${myconf} --with-libflac=system" else myconf="${myconf} --with-libflac=none" fi # Ogg Vorbis support if use oggvorbis; then myconf="${myconf} --with-vorbis=system" else myconf="${myconf} --with-vorbis=none" fi econf ${myconf} || die # emake b0rks make || die } src_install() { make DESTDIR=${D} install || die # Install our docs dodoc ${DOC} # Remove bad doc install rm -rf ${D}/share/doc }