diff options
Diffstat (limited to 'media-sound/esound/esound-0.2.36-r1.ebuild')
-rw-r--r-- | media-sound/esound/esound-0.2.36-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/media-sound/esound/esound-0.2.36-r1.ebuild b/media-sound/esound/esound-0.2.36-r1.ebuild new file mode 100644 index 000000000000..23222194b1ba --- /dev/null +++ b/media-sound/esound/esound-0.2.36-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/esound/esound-0.2.36-r1.ebuild,v 1.1 2005/07/25 00:08:19 leonardop Exp $ + +inherit libtool gnome.org eutils + +DESCRIPTION="The Enlightened Sound Daemon" +HOMEPAGE="http://www.tux.org/~ricdude/EsounD.html" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64 ~mips ~ppc64 ~ppc-macos ~arm" +IUSE="alsa debug ipv6 static tcpd" + +# esound comes with arts support, but it hasn't been tested yet, feel free to +# submit patches/improvements +DEPEND=">=media-libs/audiofile-0.1.5 + alsa? ( >=media-libs/alsa-lib-0.5.10b ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )" +# arts? ( kde-base/arts ) + +src_unpack() { + + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${PN}-0.2.32-amd64.patch + use ppc-macos && epatch ${FILESDIR}/${PN}-0.2.35-ppc-macos.patch +} + +src_compile() { + local myconf="--sysconfdir=/etc/esd $(use_enable ipv6) \ + $(use_enable static) $(use_enable debug debugging) $(use_enable alsa) \ + $(use_with tcpd libwrap)" + + elibtoolize + + econf $myconf || die "Configure failed" + + make || die "Make failed" +} + +src_install() { + + make DESTDIR="${D}" install || die "Installation failed" + + dodoc AUTHORS ChangeLog MAINTAINERS NEWS README TIPS TODO + + [ -d "docs/html" ] && dohtml -r docs/html/* + + insinto /etc/conf.d + newins ${FILESDIR}/esound.conf.d esound + + exeinto /etc/init.d + extradepend="" + use tcpd && extradepend=" portmap" + use alsa && extradepend="$extradepend alsasound" + sed "s/@extradepend@/$extradepend/" <${FILESDIR}/esound.init.d >${T}/esound + doexe ${T}/esound + +} |