# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsaplayer/alsaplayer-0.99.76-r3.ebuild,v 1.6 2006/07/12 22:05:09 agriffis Exp $ inherit unipatch-001 eutils autotools DESCRIPTION="Media player primarily utilising ALSA" HOMEPAGE="http://www.alsaplayer.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ia64 ~mips ppc ~sparc x86" IUSE="alsa audiofile doc esd flac gtk gtk2 jack mikmod nas nls ogg opengl oss vorbis xosd" RDEPEND=">=dev-libs/glib-1.2.10 >=media-libs/libsndfile-1.0.4 alsa? ( media-libs/alsa-lib ) audiofile? ( >=media-libs/audiofile-0.1.7 ) esd? ( media-sound/esound ) flac? ( media-libs/flac ) 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 ) gtk? ( >=x11-libs/gtk+-1.2.6 ) gtk2? ( >=x11-libs/gtk+-2.10.6 )" DEPEND="${RDEPEND} sys-apps/sed doc? ( app-doc/doxygen ) nls? ( sys-devel/gettext )" src_unpack() { unpack ${A} cd ${S} # patch don't apply # if use ppc; then # epatch ${FILESDIR}/alsaplayer-endian.patch # fi UNIPATCH_LIST="${FILESDIR}/${P}-cxxflags.patch" unipatch eautoreconf } src_compile() { export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include" 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 jack) \ $(use_enable mikmod) \ $(use_enable nas) \ $(use_enable opengl) \ $(use_enable oss) \ $(use_enable nls) \ $(use_enable sparc) \ $(use_enable vorbis oggvorbis) \ $(use_enable gtk) \ $(use_enable gtk2) \ ${myconf} \ --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 }