# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/alsaplayer-0.99.80_rc1.ebuild,v 1.3 2007/07/14 18:39:11 drac Exp $ inherit eutils autotools versionator MY_PV="$(replace_version_separator _ -)" DESCRIPTION="A heavily multi-threaded pluggable audio player." HOMEPAGE="http://www.alsaplayer.org/" SRC_URI="http://www.alsaplayer.org/${PN}-${MY_PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86" IUSE="alsa audiofile doc esd flac gtk jack mikmod nas ogg opengl oss vorbis xosd" RDEPEND="media-libs/alsa-lib media-libs/libsndfile media-libs/libmad audiofile? ( media-libs/audiofile ) esd? ( media-sound/esound ) flac? ( >=media-libs/flac-1.1.3 ) jack? ( >=media-sound/jack-audio-connection-kit-0.80.0 ) mikmod? ( >=media-libs/libmikmod-3.1.10 ) nas? ( media-libs/nas ) ogg? ( media-libs/libogg ) opengl? ( virtual/opengl ) vorbis? ( media-libs/libvorbis ) xosd? ( x11-libs/xosd )" DEPEND="${RDEPEND} >=dev-libs/glib-2.10.1 dev-util/pkgconfig sys-devel/gettext gtk? ( >=x11-libs/gtk+-2.8.0 ) doc? ( app-doc/doxygen )" S="${WORKDIR}"/${PN}-${MY_PV} src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-0.99.77-cxxflags.patch epatch "${FILESDIR}"/${P}-amd64-flac-1.1.3.patch eautoreconf } src_compile() { use xosd || export ac_cv_lib_xosd_xosd_create="no" use doc || export ac_cv_prog_HAVE_DOXYGEN="false" if use ogg && use flac; then myconf="${myconf} --enable-oggflac" fi econf \ $(use_enable audiofile) \ $(use_enable esd) \ $(use_enable flac) \ $(use_enable gtk gtk2) \ $(use_enable jack) \ $(use_enable mikmod) \ $(use_enable nas) \ $(use_enable opengl) \ $(use_enable oss) \ $(use_enable sparc) \ $(use_enable vorbis oggvorbis) \ ${myconf} \ --disable-gtk \ --disable-sgi \ --disable-dependency-tracking \ || die "econf failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" docdir="${D}/usr/share/doc/${PF}" install \ || die "make install failed" dodoc AUTHORS ChangeLog README TODO dodoc docs/wishlist.txt }