# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets DESCRIPTION="Wired aims to be a professional music production and creation software" HOMEPAGE="http://wired.sourceforge.net/" SRC_URI="mirror://sourceforge/wired/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug dssi plugins codecs oss alsa jack" ## Portaudio v19 is now built-in and block v18 RDEPEND="!<=media-libs/portaudio-18" ## Gui related RDEPEND="${RDEPEND} virtual/libc >=x11-libs/gtk+-2.0 >=x11-libs/wxGTK-2.6.0" ## Sound related RDEPEND="${RDEPEND} >=media-libs/libsndfile-1.0 media-libs/alsa-lib media-libs/libsamplerate plugins? ( >=media-libs/libsoundtouch-1.2.1 ) dssi? ( >=media-libs/dssi-0.9 ) codecs? ( media-libs/libvorbis media-libs/flac )" DEPEND="${RDEPEND} dev-util/pkgconfig sys-devel/libtool sys-devel/make" pkg_setup() { if ! built_with_use x11-libs/wxGTK X ; then die "x11-libs/wxGTK MUST be compiled with GTK2 or X support" fi } src_compile() { local myconf; if use alsa; then myconf="${myconf} --with-alsa" fi if use oss; then myconf="${myconf} --with-oss" fi if use jack; then myconf="${myconf} --with-jack" fi cd ${P} libtoolize --copy --force econf \ $(use_enable debug ) \ $(use_enable dssi ) \ $(use_enable codec ) \ $(use_enable plugins ) \ ${myconf} \ || die "Configuration failed" emake || die "Make failed" } src_install() { emake install DESTDIR=${D} || die "Install failed" dodoc AUTHORS BUGS INSTALL LICENSE NEWS README TODO CHANGELOG }