# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/yiff/yiff-2.14.5-r1.ebuild,v 1.5 2009/12/19 19:43:45 ssuominen Exp $ EAPI=2 inherit eutils flag-o-matic toolchain-funcs DESCRIPTION="high performance and stable sound server for UNIX games and apps" HOMEPAGE="http://wolfpack.twu.net/YIFF/" SRC_URI="ftp://wolfpack.twu.net/users/wolfpack/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86" IUSE="alsa" DEPEND="alsa? ( media-libs/alsa-lib )" src_prepare() { epatch "${FILESDIR}"/${P}-build-2.patch \ "${FILESDIR}"/${P}-asneeded.patch sed -i -e "/^YLIB_DIR/s:/lib:/$(get_libdir):" \ */Makefile* || die "sed failed" } src_compile() { tc-export CC CXX use alsa && append-flags -DALSA_RUN_CONFORM emake linux || die } src_install() { emake PREFIX="${D}"/usr install || die dodoc AUTHORS README insinto /etc doins yiff/yiffrc || die }