Portage is a package management system used by Gentoo Linux
# ChangeLog for media-sound/esound
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/esound/ChangeLog,v 1.115 2008/06/17 13:09:45 remi Exp $
17 Jun 2008; Rémi Cardona
add missing pkg-config dep (fixes bug #227589)
07 May 2008; Rémi Cardona
-files/esound-0.2.37-cpu-drain.patch, -files/esound-0.2.37-debug.patch:
removing patches that are no longer used
07 May 2008; Rémi Cardona
-esound-0.2.37.ebuild, -esound-0.2.37-r1.ebuild:
starting the spring cleaning, removing old ebuilds
07 May 2008; Rémi Cardona
+files/esound-0.2.38-libtool-2.2.patch, esound-0.2.38-r1.ebuild:
add oneliner fix for libtool-2.2
27 Nov 2007; Jeroen Roovers
Stable for HPPA (bug #199322).
20 Nov 2007; Markus Rothe
Stable on ppc64; bug #199322
17 Nov 2007; Raúl Porcel
alpha/ia64/sparc stable wrt #199322
17 Nov 2007; nixnut
Stable on ppc wrt bug 199322
17 Nov 2007; Dawid Węgliński
Stable on x86 (bug #199322)
16 Nov 2007; Samuli Suominen
amd64 stable wrt #199322
22 Sep 2007; Tom Gall
stable on ppc64
*esound-0.2.38-r1 (09 Sep 2007)
09 Sep 2007; Rémi Cardona
+files/esound-0.2.38-doc.patch, +esound-0.2.38-r1.ebuild:
patch fixes messy html documentation installation (bugs #154902 and #191306)
28 Aug 2007; Jeroen Roovers
Stable for HPPA (bug #185823).
11 Aug 2007; Andrej Kacian
Stable on x86, bug #185823.
10 Aug 2007; Christoph Mende
Stable on amd64 wrt bug #185823
08 Aug 2007; Raúl Porcel
alpha/ia64 stable wrt #185823
07 Aug 2007; Tobias Scherbaum
esound-0.2.38.ebuild:
Stable on ppc wrt bug #185823.
07 Aug 2007; Gustavo Zacarias
Stable on sparc wrt #185823
29 Jul 2007; Samuli Suominen
Make postinst die if eselect fails for bug 175361.
*esound-0.2.38 (30 May 2007)
30 May 2007; Daniel Gryniewicz
+files/esound-0.2.38-as-needed.patch, +esound-0.2.38.ebuild:
Bump to 0.2.38
* Fix 100% CPU problem introduced in 0.2.37 (Joe Marcus Clarke)
* Fix libesddsp not linking against libesd (Loïc Minier)
* Fix file descriptor leaks (Pierre Ossman)
* Fix a build problem with the read/write wrapper (Jean Bréfort)
* chdir to "/" when starting up (Dan Winship)
* Only install the esddsp man page if we build the binary
(
10 May 2007; Fabian Groffen
-files/esound-0.2.36-ppc-macos.patch, esound-0.2.36-r1.ebuild,
esound-0.2.36-r2.ebuild, esound-0.2.37.ebuild, esound-0.2.37-r1.ebuild:
Dropped ppc-macos keyword, see you in prefix
22 Mar 2007; Daniel Gryniewicz
+files/esound-0.2.37-cpu-drain.patch:
Fix 100% cpu usage; bug #171300
19 Mar 2007; Daniel Gryniewicz
+files/esound-0.2.37-debug.patch, esound-0.2.37.ebuild:
Fix building with debug; bug #170971
*esound-0.2.37 (14 Mar 2007)
14 Mar 2007; Daniel Gryniewicz
Bump to 0.2.37
* Fix null derefs and leaks reported by Covertiy (kjartan)
* Build fixes (David Schleef, Thomas Zajic, Behdad Esfahbod)
* Disable autospawning (David Schleef)
* Close filedescriptors and sockets (David Schleef)
* Don't terminate until the last sample is done (David Schleef)
* Add checks for clients disconnecting (Peter Åstrand)
* Updated man pages (Christopher Hanna)
* Use pkg-config to check for audiofile (Frederic Peters)
22 Jan 2007; Diego Pettenò
Remove old version.
13 Nov 2006; Joseph Jezak
Marked ppc stable.
13 Nov 2006; Danny van Dyk
Marked stable on amd64 to fulfill eselect-esd dependencies.
25 Oct 2006; Joshua Jackson
Stable x86; bug #150540
22 Oct 2006; Bryan Østergaard
esound-0.2.36-r2.ebuild:
Stable on Alpha.
22 Oct 2006; Thomas Cort
Added ~alpha wrt Bug #141223.
22 Oct 2006; Bryan Østergaard
esound-0.2.36-r2.ebuild:
Stable on ia64.
22 Oct 2006; Markus Rothe
Stable on ppc64; bug #150540
20 Oct 2006; Gustavo Zacarias
esound-0.2.36-r2.ebuild:
Stable on sparc wrt #150540
16 Oct 2006; Aron Griffis
Mark 0.2.36-r2 ~ia64. #141223
24 Sep 2006; Seemant Kulleen
esound-0.2.36-r2.ebuild:
export WANT_AUTOMAKE to latest -- thanks FlameEyes
24 Sep 2006; Seemant Kulleen
esound-0.2.36-r2.ebuild:
Fix for the autotools dependency breakage stuff. This package's 0.2.36
requires automake-1.8, so we need to set that explicitly. See bug #148821
31 Aug 2006; Fabian Groffen
Re-added ~ppc-macos, thanks flameeyes (bug #141223)
31 Aug 2006; Diego Pettenò
esound-0.2.36-r2.ebuild:
Make sure the m4 dir is used when re-autoreconfiguring.
11 Aug 2006; Markus Rothe
Added ~ppc64; bug #141223
11 Aug 2006; Jeroen Roovers
Marked ~hppa (bug #141223).
05 Aug 2006; Jason Wever
Re-added ~sparc keyword wrt bug #141223.
27 Jul 2006; Joshua Jackson
~x86; bug #141223
22 Jul 2006; Tobias Scherbaum
esound-0.2.36-r2.ebuild:
Added ~ppc, bug #141223
19 Jul 2006; Diego Pettenò
esound-0.2.36-r2.ebuild:
Add ~x86-fbsd keyword, and force serial install or it fails.
*esound-0.2.36-r2 (19 Jul 2006)
19 Jul 2006; Diego Pettenò
esound-0.2.34.ebuild, esound-0.2.36-r1.ebuild, +esound-0.2.36-r2.ebuild:
Add new revision to make use of esound-esd (for pulseaudio).
17 Jul 2006; Daniel Gryniewicz
Marked stable on amd64 for bug #139612
20 May 2006; Diego Pettenò
+files/esound-0.2.36-asneeded.patch, esound-0.2.36-r1.ebuild:
Add patch to fix building with --as-needed, thanks to Thomas S. Howard in
bug #133823.
06 May 2006; Diego Pettenò
esound-0.2.36-r1.ebuild:
Actually add ~x86-fbsd keyword.
06 May 2006; Diego Pettenò
+files/esound-0.2.36-mode_t.patch, esound-0.2.36-r1.ebuild:
Add ~x86-fbsd keyword and a patch to fix mode_t vaarg passing.
22 Jan 2006; Joshua Jackson
Stable on x86 for bug #119634; Stabilize Gnome-2.12.2
10 Oct 2005; Hardave Riar
Stable on mips.
14 Sep 2005; Aron Griffis
Mark 0.2.36-r1 stable on alpha
03 Sep 2005; Markus Rothe
Stable on ppc64
03 Sep 2005; Michael Hanselmann
esound-0.2.36-r1.ebuild:
Stable on ppc.
31 Aug 2005; Herbie Hopkins
Stable on amd64.
29 Aug 2005; Guy Martin
Stable on hppa.
28 Aug 2005; Fabian Groffen
-files/esound-0.2.35-ppc-macos.patch,
+files/esound-0.2.36-ppc-macos.patch, esound-0.2.36-r1.ebuild:
Replacing patch for ppc-macos to reflect version 0.2.36, the old one for
0.2.35 was reused without testing. See bug #103969
26 Aug 2005; Gustavo Zacarias
esound-0.2.36-r1.ebuild:
Stable on sparc
26 Aug 2005; Aron Griffis
stable on ia64
25 Aug 2005; Leonardo Boshell
-esound-0.2.35.ebuild, esound-0.2.36-r1.ebuild:
Stable on x86.
24 Aug 2005; Diego Pettenò
esound-0.2.36-r1.ebuild:
Use newconfd/doinitd.
07 Aug 2005; Leonardo Boshell
Setting LC_ALL=C before econf/make to avoid problems in the configure
script. See bug #99013.
*esound-0.2.36-r1 (24 Jul 2005)
24 Jul 2005; Leonardo Boshell
New revision. Install esd.conf in the right location. Thanks to reporter
TGL for noticing this on bug #100162.
*esound-0.2.36 (03 Jul 2005)
03 Jul 2005; Leonardo Boshell
New release. Added support for 'debug' and 'static' USE flags. Replaced
einstall with "make DESTDIR=$D install".
29 Dec 2004; Ciaran McCreesh
Change encoding to UTF-8 for GLEP 31 compliance
03 Oct 2004; Kito
esound-0.2.35.ebuild:
added patch from fink to improve CoreAudio functionality and keyworded
~ppc-macos
*esound-0.2.35 (18 Aug 2004)
18 Aug 2004; Mike Gardiner
Added new version 0.2.35, as requested in bug #60231
25 Jul 2004; Lina Pezzella
Fixed Manifest.
23 Jul 2004; Lina Pezzella
esound-0.2.34.ebuild: Unstable macos. Fully functional, except for init script
due to conflicts between baselayout and MacOS files.
04 Jul 2004; Bryan Østergaard
Stable on alpha.
20 Jun 2004; Tom Gall
stable on ppc64
04 Jun 2004; Stephen P. Becker
Stable on mips.
26 May 2004; Jason Wever
And you, sparc'd me all night long...
14 Apr 2004; Stephen P. Becker
esound-0.2.33.ebuild:
Marked stable on mips.
24 Mar 2004; Gustavo Zacarias
stable on sparc
*esound-0.2.34 (24 Mar 2004)
24 Mar 2004; foser
New release
10 Mar 2004; Jeremy Huddleston
files/esound-0.2.33-gcc2_fix.patch:
gcc2 patch submitted by Tristan Henderson
#44168.
*esound-0.2.33 (07 Mar 2004)
07 Mar 2004; foser
New release
alsa patch got included upstream
made amd64 patch apply in general
07 Mar 2004; Stephen P. Becker
Added ~mips keyword.
04 Feb 2004;
files/esound-0.2.32-amd64.patch:
Fixed amd64 compilation. -Werror is set and there was a warning. I'm surprised
this doesn't affect other platforms. If so, just remove my use condition.
*esound-0.2.32-r1 (01 Feb 2004)
01 Feb 2004; Mike Frysinger
Version bumped to fix segfaults with new alsa #36417.
14 Nov 2003; Aron Griffis
Stable on ia64
08 Nov 2003; Todd Sunderlin
added sparc keyword
22 Oct 2003; Bartosch Pixa
set ppc in keywords
17 Oct 2003; Aron Griffis
Stable on alpha
28 Sep 2003; foser
Fix SRC_URI (#29793)
*esound-0.2.32 (06 Sep 2003)
13 Dec 2003; Guy Martin
Marked stable on hppa.
06 Sep 2003; foser
New version, added ipv6 USE for real now, esthetic cleanups
*esound-0.2.30 (11 Aug 2003)
11 Aug 2003; foser
New version
10 Jun 2003; Tavis Ormandy
make sure esdlib linked applications obey $ESPEAKER, even if a local
esd is present. (bug #18000)
changed epatch commands to use ${P}.
changing minimum required alsa-lib version to 5.10b, to make repoman
happy.
*esound-0.2.29-r1 (30 May 2003)
04 Aug 2003; Guy Martin
Marked stable on hppa.
01 Jul 2003; Guy Martin
Added ~hppa to KEYWORDS.
31 May 2003; Stanislav Brabec
files/esound.conf.d, files/esound.init.d:
Masked for testing. Added warning about client setup to global daemon config
files.
30 May 2003; Stanislav Brabec
files/esound-0.2.29-alsa-period.diff, files/esound.conf.d,
files/esound.init.d:
Added init scripts for remote sound access. Fixed ALSA maximum periods (CVS
fix from Takashi Iwai
*esound-0.2.29 (06 Sep 2002)
01 Jul 2003; Guy Marin
Added hppa to KEYWORDS.
06 Dec 2002; Rodney Rees
17 Sep 2002; Spider
added ppc keyword
16 Sep 2002; Maarten Thibaut
Adding sparc/sparc64 keywords. Revamping ChangeLog layout.
06 Sep 2002; Spider
*esound-0.2.28-r1 (28 Jun 2002)
28 Jun 2002; Seemant Kulleen
files/digest-esound-0.2.28-r1 : LFH/man page fixes and elibtoolize
*esound-0.2.28 (19 Jun 2002)
19 Jun 2002; Gabriele Giorgetti
*esound-0.2.27 (07 Jun 2002)
07 Jun 2002; Martin Schlemmer
*esound-0.2.26 (07 May 2002)
07 May 2002; Spider
*esound-0.2.25 (24 Apr 2002)
24 Apr 2002; Spider
version that has alsa 0.9 support
Note: Me, Verwilst, added a SLOT="0" to this ebuild, to enable auto-unmerging
of previous versions
*esound-0.2.24-r2 (03 Apr 2002)
03 Apr 2002; M.Schlemmer
*esound-0.2.24-r1 (20 Mar 2002)
20 Mar 2002; Bruce A. Locke
Fixed some silly typos... building without tcpwrappers should work again
*esound-0.2.24 (16 Mar 2002)
16 Mar 2002; Seemant Kulleen
Copied over the 0.2.23 ebuild to upgrade the version.
*esound-0.2.24-r50
28 Mar 2002; Spider
Updated to -r50 that applies alsa patches, masked for the moment, should be stable
and working though
AUX esound-0.2.32-amd64.patch 686 RMD160 3fd2e6682ba16ec61e1295b280f428a08de465eb SHA1 eaa921caf5ea56c138581b54e141fb72f52d9c8a SHA256 66f8a5cf148c639dc1a7932eead7c63bf4b1af9a7772eb2875f5c27a7e8020f0
AUX esound-0.2.36-asneeded.patch 710 RMD160 acff73df52f0b1ca919f0ad9b07077b2606b267e SHA1 bdba6ef9529e829e86b4e32046ed3e01cbb4d239 SHA256 b70d2a234b0f298c91670c57d394022be6cb686119df1512018acc3a5177c397
AUX esound-0.2.36-mode_t.patch 470 RMD160 3b0f35c1cc743df7d158d6796390ea7308f02d35 SHA1 41e055826cfd9ab2a29b0a71401cb3046734060d SHA256 2defd2ea92b85ed1ae9ccdbbe6d19051def3ae075b4a2f0acb56e768fa21f0fb
AUX esound-0.2.38-as-needed.patch 496 RMD160 4646e35ed1240a65ea83c1a3d3f74e8c713b9430 SHA1 f41e05d6d4bb7686202a673ce60141d5bade00b5 SHA256 e9a2241de5d829ae0dfafee2fef9f7b7910de06340b0eb6dc0265f686ab7754b
AUX esound-0.2.38-doc.patch 573 RMD160 4d7e957cb52af939be7691f9599cd00712f9e951 SHA1 7549c542f97b2188aee6a57283b7f75436df03be SHA256 02ce40da43debead987a44ff895b5a32a000599cbe07b97b8b17515e810190f0
AUX esound-0.2.38-libtool-2.2.patch 330 RMD160 e5bb26f0d3e38f662bb849aee1e8e6aedee75b36 SHA1 d36bde6f16d48987bb7954b986faf2bac01b0136 SHA256 6d44f23513492a2ec1963a4b7efd06d76b6b10792b7cb30a7300ea75893801da
AUX esound.conf.d 737 RMD160 a8c11bc892cf58b2ae99a4898c3adc50c483087d SHA1 e4ee0fb3eb877afb29bcb99eeac7503eb8631ef1 SHA256 cbdec56c59d79c438606eda307ba5a25f35d1f51d0c5caed09057aba99a81fab
AUX esound.init.d 862 RMD160 ef1ffe7574ce07aee165d9e6ebb14521ea4e5c49 SHA1 86cac71dc43b40d2bcd3a08490afd148027dd2a1 SHA256 0ff0aed0667c132cc9e46e77003b698c451cdd1d57f545a495ce4d20b84f792a
AUX esound.init.d.2 988 RMD160 af58377babe1681ae80bf8b3e85bc084360da215 SHA1 97d25ab612ff5c2375bc81febe6c13a106115fd0 SHA256 9b568155e4dc9f7be013bb71a6990eca3d2c6a6dff7600f5c18f9cfc92f7ac89
DIST esound-0.2.36.tar.bz2 369952 RMD160 1a6d4a1f31311e6265324fb1a392f9b0491cf1f9 SHA1 66f451ff5a6b9cae8d49b196a536cf49f3f1755c SHA256 68bf399fcbd45c5e9ba99cd13a3a479e4ef2bc5dc52e540ffa00aef1e1b19a76
DIST esound-0.2.38.tar.bz2 393758 RMD160 d12605bcd24b697a5525b0e266d2bbca43edea32 SHA1 29133b0acd17ddac10c3a6769afa40a7cb596c91 SHA256 08ea208cb3948650250bb068de5c75b877e78902d679e8af5d0a14062c939b37
EBUILD esound-0.2.36-r1.ebuild 1702 RMD160 924d8925dc2cf45a49974c8e110aa00702b71908 SHA1 fc29c365b5cc11e248b52fb30a63669f39faf58d SHA256 b3a03d6d9b4b482c5a76bab438f6868180252624b9aaffddcc4234b87cf2f73b
EBUILD esound-0.2.38-r1.ebuild 2142 RMD160 5be96a5241fbd54f7acec0a797bc17dad11bbb97 SHA1 4926c38d04a5c30c47e8d6e1ab6360924e0c71e2 SHA256 b1b824f9455a93fca19f95e6fb71dbde4f689d26a253a7c9572d3a497ffa10ff
EBUILD esound-0.2.38.ebuild 1960 RMD160 1072d63b1279a257a132dc595a50940765c0cf2a SHA1 f280249a40355e8ba210accd7aab94005d55126c SHA256 cadd4e3fefd523fcdbb04c071d34e36e3c91834ebb32f39e275242fe7b01cc83
MISC ChangeLog 15512 RMD160 2748b17d05394539fef2045e13eeeb80f0922436 SHA1 6db656f5d43acfc90b1e6c1f3f8e14ecfc2e5f7a SHA256 b1901bfd6e13ff16ac85284b58899821445c1638eb4907d6b3134ea722fcd28d
MISC metadata.xml 177 RMD160 c4ff678488aa3bd8f3e5e4cf6e52a56caba3dad9 SHA1 73b04fb757f8a6473a2c43b0807a95381da37afc SHA256 dfb196addaf8aa212436c53c3d47cda0d10c2850c59fa2dcb7554dfa10190af2
# Copyright 1999-2007 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.21 2007/05/10 08:08:16 grobian Exp $
WANT_AUTOMAKE=1.8
inherit libtool gnome.org eutils autotools
DESCRIPTION="The Enlightened Sound Daemon"
HOMEPAGE="http://www.tux.org/~ricdude/EsounD.html"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86 ~x86-fbsd"
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 )
RDEPEND="${DEPEND}
!app-admin/eselect-esd"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-0.2.32-amd64.patch
epatch "${FILESDIR}/${P}-mode_t.patch"
epatch "${FILESDIR}/${P}-asneeded.patch"
eautomake
elibtoolize
}
src_compile() {
local myconf="--sysconfdir=/etc/esd $(use_enable ipv6) \
$(use_enable static) $(use_enable debug debugging) $(use_enable alsa) \
$(use_with tcpd libwrap)"
econf $myconf || die "Configure failed"
emake || 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/*
newconfd ${FILESDIR}/esound.conf.d esound
extradepend=""
use tcpd && extradepend=" portmap"
use alsa && extradepend="$extradepend alsasound"
sed -e "s/@extradepend@/$extradepend/" ${FILESDIR}/esound.init.d >${T}/esound
doinitd ${T}/esound
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/esound/esound-0.2.38-r1.ebuild,v 1.10 2008/06/17 13:09:45 remi Exp $
WANT_AUTOMAKE=1.10
inherit libtool gnome.org eutils autotools flag-o-matic
DESCRIPTION="The Enlightened Sound Daemon"
HOMEPAGE="http://www.tux.org/~ricdude/EsounD.html"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE="alsa debug doc ipv6 tcpd"
# esound comes with arts support, but it hasn't been tested yet, feel free to
# submit patches/improvements
COMMON_DEPEND=">=media-libs/audiofile-0.1.5
alsa? ( >=media-libs/alsa-lib-0.5.10b )
doc? ( app-text/docbook-sgml-utils )
tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )"
# arts? ( kde-base/arts )
DEPEND="${COMMON_DEPEND}
dev-util/pkgconfig"
RDEPEND="${COMMON_DEPEND}
app-admin/eselect-esd"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.2.32-amd64.patch"
epatch "${FILESDIR}/${PN}-0.2.36-mode_t.patch"
epatch "${FILESDIR}/${PN}-0.2.38-as-needed.patch"
epatch "${FILESDIR}/${PN}-0.2.38-doc.patch"
epatch "${FILESDIR}/${PN}-0.2.38-libtool-2.2.patch"
eautoreconf
}
src_compile() {
# Strict aliasing problem
append-flags -fno-strict-aliasing
econf \
--sysconfdir=/etc/esd \
--htmldir=/usr/share/doc/${PF}/html \
$(use_enable ipv6) \
$(use_enable debug debugging) \
$(use_enable alsa) \
$(use_with tcpd libwrap) \
--disable-dependency-tracking \
|| die "Configure failed"
emake || die "Make failed"
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "Installation failed"
mv "${D}/usr/bin/"{esd,esound-esd}
dodoc AUTHORS ChangeLog MAINTAINERS NEWS README TIPS TODO
newconfd "${FILESDIR}/esound.conf.d" esound
extradepend=""
use tcpd && extradepend=" portmap"
use alsa && extradepend="$extradepend alsasound"
sed -e "s/@extradepend@/$extradepend/" "${FILESDIR}/esound.init.d.2" >"${T}/esound"
doinitd "${T}/esound"
}
pkg_postinst() {
eselect esd update --if-unset \
|| die "eselect failed, try removing /usr/bin/esd and re-emerging."
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/esound/esound-0.2.38.ebuild,v 1.10 2007/09/22 07:46:34 tgall Exp $
WANT_AUTOMAKE=1.10
inherit libtool gnome.org eutils autotools flag-o-matic
DESCRIPTION="The Enlightened Sound Daemon"
HOMEPAGE="http://www.tux.org/~ricdude/EsounD.html"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE="alsa debug ipv6 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 )
RDEPEND="${DEPEND}
app-admin/eselect-esd"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.2.32-amd64.patch"
epatch "${FILESDIR}/${PN}-0.2.36-mode_t.patch"
epatch "${FILESDIR}/${PN}-0.2.38-as-needed.patch"
AT_M4DIR="m4" eautoreconf
}
src_compile() {
# Strict aliasing problem
append-flags -fno-strict-aliasing
econf \
--sysconfdir=/etc/esd \
$(use_enable ipv6) \
$(use_enable debug debugging) \
$(use_enable alsa) \
$(use_with tcpd libwrap) \
--disable-dependency-tracking \
|| die "Configure failed"
emake || die "Make failed"
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "Installation failed"
mv "${D}/usr/bin/"{esd,esound-esd}
dodoc AUTHORS ChangeLog MAINTAINERS NEWS README TIPS TODO
[[ -d "docs/html" ]] && dohtml -r docs/html/*
newconfd "${FILESDIR}/esound.conf.d" esound
extradepend=""
use tcpd && extradepend=" portmap"
use alsa && extradepend="$extradepend alsasound"
sed -e "s/@extradepend@/$extradepend/" "${FILESDIR}/esound.init.d.2" >"${T}/esound"
doinitd "${T}/esound"
}
pkg_postinst() {
eselect esd update --if-unset \
|| die "eselect failed, try removing /usr/bin/esd and re-emerging."
}