# Copyright 1999-2005 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" RDEPEND="virtual/libc >=x11-libs/gtk+-2.0 >=x11-libs/wxGTK-2.5.0 media-libs/alsa-lib >=media-libs/portaudio-19 >=media-libs/libsoundtouch-1.2.1 >=media-libs/libsndfile-1.0 dssi? ( >=media-libs/dssi-0.9 )" DEPEND="$RDEPEND dev-util/pkgconfig sys-devel/libtool sys-devel/make" pkg_setup() { if has_version '>=x11-libs/wxGTK-2.6' ; then if ! built_with_use x11-libs/wxGTK X ; then die "x11-libs/wxGTK MUST be compiled with GTK2 or X support" fi else if ! built_with_use x11-libs/wxGTK gtk2; then die "x11-libs/wxGTK MUST be compiled with GTK2 or X support" fi fi } src_compile() { cd ${P} libtoolize --copy --force econf \ $(use_enable debug ) \ $(use_enable dssi ) \ || 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 }