summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadislav Láska <ladislav.laska@gmail.com>2010-05-13 15:09:45 +0200
committerLadislav Láska <ladislav.laska@gmail.com>2010-05-13 15:09:45 +0200
commitff814768574c7e326b0db27cca17f83b7e5382f4 (patch)
treeeca2e3d428f2b6d3918148992fea1a271b79789b /media-libs
parent[app-text/poppler] Update from main portage tree (diff)
downloadkde-sunset-ff814768574c7e326b0db27cca17f83b7e5382f4.tar.gz
kde-sunset-ff814768574c7e326b0db27cca17f83b7e5382f4.tar.bz2
kde-sunset-ff814768574c7e326b0db27cca17f83b7e5382f4.zip
[media-libs/akode] Added akode from portage.
Thanks to Brent Busby, who reported it missing and salvaged ebuild.
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/akode/ChangeLog158
-rw-r--r--media-libs/akode/Manifest10
-rw-r--r--media-libs/akode/akode-2.0.1-r1.ebuild63
-rw-r--r--media-libs/akode/akode-2.0.2.ebuild62
-rw-r--r--media-libs/akode/files/akode-2.0.1-alsa-tests.patch76
-rw-r--r--media-libs/akode/files/akode-2.0.2-amd64-flac-1.1.3.patch11
-rw-r--r--media-libs/akode/files/akode-2.0.2-gcc43.patch45
-rw-r--r--media-libs/akode/metadata.xml5
8 files changed, 430 insertions, 0 deletions
diff --git a/media-libs/akode/ChangeLog b/media-libs/akode/ChangeLog
new file mode 100644
index 00000000..fa478fb7
--- /dev/null
+++ b/media-libs/akode/ChangeLog
@@ -0,0 +1,158 @@
+# ChangeLog for media-libs/akode
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/akode/ChangeLog,v 1.43 2008/08/17 04:16:02 mr_bones_ Exp $
+
+ 17 Aug 2008; Michael Sterrett <mr_bones_@gentoo.org>
+ -akode-2.0_rc1.ebuild:
+ clean out old ebuild now that mips is ~
+
+ 24 May 2008; nixnut <nixnut@gentoo.org> akode-2.0.2.ebuild:
+ Stable on ppc wrt bug 2228731
+
+ 22 May 2008; Markus Meier <maekke@gentoo.org> akode-2.0.2.ebuild:
+ amd64 stable, bug #222873
+
+ 22 May 2008; Raúl Porcel <armin76@gentoo.org> akode-2.0.2.ebuild:
+ ia64/sparc/x86 stable wrt #222873
+
+ 22 May 2008; Tobias Klausmann <klausman@gentoo.org> akode-2.0.2.ebuild:
+ Stable on alpha, bug #222873
+
+ 20 May 2008; Markus Rothe <corsair@gentoo.org> akode-2.0.2.ebuild:
+ Stable on ppc64; bug #222873
+
+ 20 May 2008; Jeroen Roovers <jer@gentoo.org> akode-2.0.2.ebuild:
+ Stable for HPPA (bug #222873).
+
+ 20 Apr 2008; Wulf C. Krueger <philantrop@gentoo.org>
+ +files/akode-2.0.2-gcc43.patch, akode-2.0.2.ebuild:
+ Added a patch for gcc 4.3 compatibility as kindly provided by Steve Warren
+ on bug 218300.
+
+ 10 Jan 2008; Samuli Suominen <drac@gentoo.org> -akode-2.0_beta3.ebuild,
+ akode-2.0_rc1.ebuild, -akode-2.0.1.ebuild:
+ Remove old versions, leave one ebuild behind for mips.
+
+ 14 Oct 2007; Raúl Porcel <armin76@gentoo.org> akode-2.0.1-r1.ebuild:
+ sparc stable wrt #191292
+
+ 13 Oct 2007; Markus Rothe <corsair@gentoo.org> akode-2.0.1-r1.ebuild:
+ Stable on ppc64; bug #191292
+
+ 08 Sep 2007; nixnut <nixnut@gentoo.org> akode-2.0.1-r1.ebuild:
+ Stable on ppc wrt bug 191292
+
+ 07 Sep 2007; Jeroen Roovers <jer@gentoo.org> akode-2.0.1-r1.ebuild:
+ Stable for HPPA (bug #191292).
+
+ 05 Sep 2007; Raúl Porcel <armin76@gentoo.org> akode-2.0.1-r1.ebuild:
+ alpha/ia64/x86 stable wrt #191292
+
+ 05 Sep 2007; Christoph Mende <angelos@gentoo.org> akode-2.0.1-r1.ebuild:
+ Stable on amd64 wrt bug #191292
+
+ 14 Jul 2007; Samuli Suominen <drac@gentoo.org>
+ +files/akode-2.0.2-amd64-flac-1.1.3.patch, akode-2.0.2.ebuild:
+ Fix building with >=flac-1.1.3 on AMD64 systems for bug 185330, thanks to
+ Chris Smith for reporting and Huber Olivier for testing.
+
+*akode-2.0.2 (08 Apr 2007)
+
+ 08 Apr 2007; Carsten Lohrke <carlo@gentoo.org> +akode-2.0.2.ebuild:
+ Version bump.
+
+ 28 Mar 2007; Raúl Porcel <armin76@gentoo.org> akode-2.0.1.ebuild:
+ ia64 stable wrt bug 148120
+
+*akode-2.0.1-r1 (28 Mar 2007)
+
+ 28 Mar 2007; Alexis Ballier <aballier@gentoo.org> +akode-2.0.1-r1.ebuild:
+ rev bump in ~arch for flac 1.1.3 compatibility, bug #157588
+
+ 06 Feb 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/akode-2.0.1-alsa-tests.patch, akode-2.0.1.ebuild:
+ Add a patch to allow building akode with the experimental alsa-lib with
+ sequencer (midi) disabled.
+
+ 20 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> akode-2.0.1.ebuild:
+ Stable on Alpha.
+
+ 19 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> akode-2.0_beta3.ebuild,
+ akode-2.0_rc1.ebuild, akode-2.0.1.ebuild:
+ Depend on 1.1.2 version of flac, as the 1.1.3 version changes API.
+
+ 04 Oct 2006; Simon Stelling <blubb@gentoo.org> akode-2.0.1.ebuild:
+ stable on amd64
+
+ 21 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org> akode-2.0.1.ebuild:
+ ppc stable, bug #148120
+
+ 21 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org> akode-2.0.1.ebuild:
+ hppa stable, bug #148120
+
+ 21 Sep 2006; Gustavo Zacarias <gustavoz@gentoo.org> akode-2.0.1.ebuild:
+ Stable on sparc wrt #148120
+
+ 20 Sep 2006; Joshua Jackson <tsunam@gentoo.org> akode-2.0.1.ebuild:
+ Stable x86; bug #148120
+
+ 19 Sep 2006; Markus Rothe <corsair@gentoo.org> akode-2.0.1.ebuild:
+ Stable on ppc64; bug #148120
+
+*akode-2.0.1 (15 Aug 2006)
+
+ 15 Aug 2006; Carsten Lohrke <carlo@gentoo.org> +akode-2.0.1.ebuild:
+ Version bump.
+
+ 16 Jul 2006; <psi29a@gentoo.org> akode-2.0_rc1.ebuild:
+ stable on mips
+
+ 13 Jul 2006; Aron Griffis <agriffis@gentoo.org> akode-2.0_rc1.ebuild:
+ Mark 2.0_rc1 stable on ia64
+
+ 08 Jun 2006; Diego Pettenò <flameeyes@gentoo.org> akode-2.0_rc1.ebuild:
+ Add ~x86-fbsd keyword
+
+ 03 Jun 2006; Guy Martin <gmsoft@gentoo.org> akode-2.0_rc1.ebuild:
+ Stable on hppa.
+
+ 20 May 2006; <nixnut@gentoo.org> akode-2.0_rc1.ebuild:
+ Stable on ppc. bug #133151
+
+ 19 May 2006; Thomas Cort <tcort@gentoo.org> akode-2.0_rc1.ebuild:
+ Stable on alpha and amd64 wrt Bug #133151.
+
+ 18 May 2006; <psi29a@gentoo.org> akode-2.0_rc1.ebuild:
+ added to ~mips for testing
+
+ 14 May 2006; Markus Rothe <corsair@gentoo.org> akode-2.0_rc1.ebuild:
+ Stable on ppc64; bug #133151
+
+ 14 May 2006; Jason Wever <weeve@gentoo.org> akode-2.0_rc1.ebuild:
+ Stable on SPARC wrt bug #133151.
+
+ 13 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> akode-2.0_rc1.ebuild:
+ Marking stable on x86 wrt bug #133151.
+
+*akode-2.0_rc1 (29 Nov 2005)
+
+ 29 Nov 2005; Gregorio Guidi <greg_g@gentoo.org> +akode-2.0_rc1.ebuild:
+ New version.
+
+*akode-2.0_beta3 (24 Oct 2005)
+
+ 24 Oct 2005; Carsten Lohrke <carlo@gentoo.org> +akode-2.0_beta3.ebuild:
+ version bump
+
+*akode-2.0_beta2 (19 Oct 2005)
+
+ 19 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +akode-2.0_beta2.ebuild:
+ New version.
+
+*akode-2.0_beta1 (21 Sep 2005)
+
+ 21 Sep 2005; Gregorio Guidi <greg_g@gentoo.org> +metadata.xml,
+ +akode-2.0_beta1.ebuild:
+ Initial import. The code was splitted from kdemultimedia and is now
+ developed independently from KDE. Retaining the KEYWORDS from kdemultimedia.
+
diff --git a/media-libs/akode/Manifest b/media-libs/akode/Manifest
new file mode 100644
index 00000000..da8d8138
--- /dev/null
+++ b/media-libs/akode/Manifest
@@ -0,0 +1,10 @@
+AUX akode-2.0.1-alsa-tests.patch 2369 RMD160 5f2f833524823daa1cc51b6ebe1f0e8005a84e3a SHA1 b0a7928e82bed3cae6c46283e66b71c59723c85a SHA256 4f22d466e2ac1b4838c9b9bd7861817f34de9602749bdda8890b7686a9d7612e
+AUX akode-2.0.2-amd64-flac-1.1.3.patch 515 RMD160 c4d88ea933fb00575316f80ea2d4627864e32f76 SHA1 b1ebc8d706df291399f874174c3c27693308e6db SHA256 a0531f197d46d6c721e118c9b5a24fa5945057b6991f9ca94cb9b4b081841452
+AUX akode-2.0.2-gcc43.patch 1531 RMD160 fad2a8e6076d6bb8672f1cbae4337bedb3fbc682 SHA1 c4bdb299e0de2b3315a2bc2ec7f4cad1637ab69d SHA256 ff78a293ab871939e3f4364a502bcd45e4a9683b46ba6749d7eaeecd3076f76c
+DIST 30375-akode-2.0.1.tar.bz2 460964 RMD160 e476f01a6baea4051e407166b1997ecdca1bfa86 SHA1 122fe6aabda78a8bda6d81074b7b66eb424f34eb SHA256 a1a31d3ea59e151ff1ff51e9f2be0db84fc9fcb40f590abb1c46494d6ff1c08e
+DIST 30375-akode-2.0.2.tar.bz2 472605 RMD160 fa0322367d8e24e541007d3f9e508c3c31370d96 SHA1 10ad1e335bc53c2a90d133b493568324514c729c SHA256 ad689f7b3531cc3c42fda07c264873360bc0f4a94b90c1a4c91c92a22333a7a6
+DIST akode-2.0.1+flac-1.1.3.tar.bz2 3679 RMD160 128b33e8b419863c7616568d047c23eb094583c4 SHA1 a76cf8e97b8ea1f36b9f05abd73707d6b7c470b3 SHA256 6381c77623439b647ad2b024118cade0b7230e1f8d6711159ca60ed7bc5372c5
+EBUILD akode-2.0.1-r1.ebuild 1745 RMD160 b83de8c1a5fb0f0f890cbfd0d46ef89c42ef26f2 SHA1 b80c2b2d1cb4f1459aa52204b8804d1ae766dd90 SHA256 93af75f17a2f0c0a49521095e2814aa0c708c461babc823e3229423216522381
+EBUILD akode-2.0.2.ebuild 1689 RMD160 6c4b1026097779849c0c7499e9282c7073a942e6 SHA1 99f3eca035bc8021073b6aca2703fc834860146b SHA256 fbdba6608533ccdd75cb7857e2cd40c9d1a44a23bbb08e94cc65879a417f1c77
+MISC ChangeLog 5407 RMD160 a99068e8a6fa0120bc5441cef8b9d77cb21b9e8e SHA1 fa9439ea74651263219d80d616474ee3a27e6326 SHA256 472a30949c38f18c0991506a7e49edeeedace50f1bec58e6d33a5bf697e2a7a1
+MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a
diff --git a/media-libs/akode/akode-2.0.1-r1.ebuild b/media-libs/akode/akode-2.0.1-r1.ebuild
new file mode 100644
index 00000000..5176b029
--- /dev/null
+++ b/media-libs/akode/akode-2.0.1-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/akode/akode-2.0.1-r1.ebuild,v 1.7 2007/10/14 10:08:08 armin76 Exp $
+
+WANT_AUTOMAKE="1.9"
+WANT_AUTOCONF="2.5"
+
+inherit eutils autotools
+
+MY_P=${P/_beta/b}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="A simple framework to decode the most common audio formats."
+HOMEPAGE="http://www.carewolf.com/"
+#SRC_URI="http://www.carewolf.com/akode/${MY_P}.tar.gz"
+SRC_URI="http://www.kde-apps.org/content/files/30375-${P}.tar.bz2
+ mirror://gentoo/${P}+flac-1.1.3.tar.bz2"
+LICENSE="LGPL-2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="alsa jack flac mp3 oss speex vorbis"
+
+DEPEND="media-libs/libsamplerate
+ alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )
+ flac? ( >=media-libs/flac-1.1.2 )
+ mp3? ( media-libs/libmad )
+ vorbis? ( media-libs/libvorbis )
+ speex? ( media-libs/speex )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-alsa-tests.patch"
+ epatch "${WORKDIR}/${P}+flac-1.1.3.patch"
+ epatch "${WORKDIR}/${P}+flac-1.1.3-2.patch"
+ epatch "${WORKDIR}/${P}-ogglflac-1.1.3.patch"
+
+ sed -i -e '/case $AUTO\(CONF\|HEADER\)_VERSION in/,+1 s/2\.5/2.[56]/g' \
+ admin/cvs.sh
+
+ emake -j1 -f admin/Makefile.common || die "unable to regenerate configure"
+
+ elibtoolize
+}
+
+src_compile() {
+ local myconf="--with-libsamplerate
+ $(use_with oss) $(use_with alsa) $(use_with jack)
+ $(use_with flac) $(use_with mp3 libmad)
+ $(use_with vorbis) $(use_with speex)
+ --without-polypaudio"
+
+ econf ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-libs/akode/akode-2.0.2.ebuild b/media-libs/akode/akode-2.0.2.ebuild
new file mode 100644
index 00000000..94af4efb
--- /dev/null
+++ b/media-libs/akode/akode-2.0.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/akode/akode-2.0.2.ebuild,v 1.9 2008/05/24 16:07:33 nixnut Exp $
+
+WANT_AUTOMAKE="1.9"
+WANT_AUTOCONF="2.5"
+
+inherit eutils autotools
+
+MY_P=${P/_beta/b}
+S="${WORKDIR}"/${MY_P}
+
+DESCRIPTION="A simple framework to decode the most common audio formats."
+HOMEPAGE="http://www.carewolf.com/"
+#SRC_URI="http://www.carewolf.com/akode/${MY_P}.tar.gz"
+SRC_URI="http://www.kde-apps.org/CONTENT/content-files/30375-${P}.tar.bz2"
+LICENSE="LGPL-2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="alsa jack flac mp3 oss speex vorbis"
+
+DEPEND="media-libs/libsamplerate
+ alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )
+ flac? ( >=media-libs/flac-1.1.2 )
+ mp3? ( media-libs/libmad )
+ vorbis? ( media-libs/libvorbis )
+ speex? ( media-libs/speex )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-amd64-flac-1.1.3.patch
+
+ # gcc 4.3 compatibility fix. cf. bug 218300.
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+
+ sed -i -e '/case $AUTO\(CONF\|HEADER\)_VERSION in/,+1 s/2\.5/2.[56]/g' \
+ admin/cvs.sh
+
+ emake -j1 -f admin/Makefile.common || die "unable to regenerate configure"
+
+ elibtoolize
+}
+
+src_compile() {
+ local myconf="--with-libsamplerate
+ $(use_with oss) $(use_with alsa) $(use_with jack)
+ $(use_with flac) $(use_with mp3 libmad)
+ $(use_with vorbis) $(use_with speex)
+ --without-polypaudio
+ --without-ffmpeg"
+
+ econf ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/media-libs/akode/files/akode-2.0.1-alsa-tests.patch b/media-libs/akode/files/akode-2.0.1-alsa-tests.patch
new file mode 100644
index 00000000..94dabc15
--- /dev/null
+++ b/media-libs/akode/files/akode-2.0.1-alsa-tests.patch
@@ -0,0 +1,76 @@
+Index: akode-2.0.1/akode/configure.in.in
+===================================================================
+--- akode-2.0.1.orig/akode/configure.in.in
++++ akode-2.0.1/akode/configure.in.in
+@@ -105,59 +105,11 @@ AC_DEFUN([KDE_CHECK_SUN],
+
+ AC_DEFUN([KDE_CHECK_ALSA],
+ [
+- have_alsa=no
++ PKG_CHECK_MODULES([ALSA], [alsa >= 0.9], [have_alsa=yes], [have_alsa=no])
+
+- AC_CHECK_HEADERS([sys/asoundlib.h alsa/asoundlib.h],
+- [have_alsa=yes])
+-
+- AC_CHECK_LIB(asound, snd_seq_create_simple_port,
+- [:], [have_alsa=no])
+-
+- AC_LANG_SAVE
+- AC_LANG_C
+- if test "x$have_alsa" = xyes; then
+- AC_TRY_COMPILE([
+- #include "confdefs.h"
+- #ifdef HAVE_SYS_ASOUNDLIB_H
+- #include <sys/asoundlib.h>
+- #endif
+- #ifdef HAVE_ALSA_ASOUNDLIB_H
+- #include <alsa/asoundlib.h>
+- #endif
+- ],[
+- #if (SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)
+- /* we have ALSA 0.9.x */
+- #else
+- #error not ALSA 0.9.x
+- #endif
+- ],
+- have_alsa_0_9=yes)
+-
+- AC_TRY_COMPILE([
+- #include "confdefs.h"
+- #ifdef HAVE_SYS_ASOUNDLIB_H
+- #include <sys/asoundlib.h>
+- #endif
+- #ifdef HAVE_ALSA_ASOUNDLIB_H
+- #include <alsa/asoundlib.h>
+- #endif
+- ],[
+- #if (SND_LIB_MAJOR == 1)
+- /* we have ALSA 1.x */
+- #else
+- #error not ALSA 1.x
+- #endif
+- ],
+- have_alsa_1=yes)
+- fi
+- AC_LANG_RESTORE
+-
+- if test "x$have_alsa_0_9" = xyes || test "x$have_alsa_1" = xyes; then
+- LIBASOUND="-lasound"
++ if test "x$have_alsa" = "xyes"; then
+ AC_DEFINE(HAVE_LIBASOUND2, 1, [Define if you have libasound.so.2 (required for ALSA 0.9.x/1.x support)])
+ fi
+-
+- AC_SUBST(LIBASOUND)
+ ])
+
+ AC_ARG_WITH(flac,AC_HELP_STRING([--with-flac],[Enable FLAC support @<:@default=check@:>@]),[flac_test="$withval"],[flac_test="yes"])
+Index: akode-2.0.1/akode/plugins/alsa_sink/Makefile.am
+===================================================================
+--- akode-2.0.1.orig/akode/plugins/alsa_sink/Makefile.am
++++ akode-2.0.1/akode/plugins/alsa_sink/Makefile.am
+@@ -4,4 +4,4 @@ lib_LTLIBRARIES = libakode_alsa_sink.la
+
+ libakode_alsa_sink_la_SOURCES = alsa_sink.cpp
+ libakode_alsa_sink_la_LDFLAGS = -module -avoid-version -no-undefined
+-libakode_alsa_sink_la_LIBADD = ../../lib/libakode.la $(LIBASOUND)
++libakode_alsa_sink_la_LIBADD = ../../lib/libakode.la $(ALSA_LIBS)
diff --git a/media-libs/akode/files/akode-2.0.2-amd64-flac-1.1.3.patch b/media-libs/akode/files/akode-2.0.2-amd64-flac-1.1.3.patch
new file mode 100644
index 00000000..3179351e
--- /dev/null
+++ b/media-libs/akode/files/akode-2.0.2-amd64-flac-1.1.3.patch
@@ -0,0 +1,11 @@
+--- akode-2.0.2.orig/akode/plugins/xiph_decoder/flac113_decoder.cpp 2007-06-05 19:12:42.000000000 +0000
++++ akode-2.0.2/akode/plugins/xiph_decoder/flac113_decoder.cpp 2007-06-05 19:13:13.000000000 +0000
+@@ -108,7 +108,7 @@
+ static FLAC__StreamDecoderReadStatus flac_read_callback(
+ const FLAC__StreamDecoder *,
+ FLAC__byte buffer[],
+- unsigned *bytes,
++ size_t *bytes,
+ void *client_data)
+ {
+ FLACDecoder::private_data *data = (FLACDecoder::private_data*)client_data;
diff --git a/media-libs/akode/files/akode-2.0.2-gcc43.patch b/media-libs/akode/files/akode-2.0.2-gcc43.patch
new file mode 100644
index 00000000..266807c5
--- /dev/null
+++ b/media-libs/akode/files/akode-2.0.2-gcc43.patch
@@ -0,0 +1,45 @@
+
+diff -up akode-2.0.2/akode/lib/auto_sink.cpp.gcc43~ akode-2.0.2/akode/lib/auto_sink.cpp
+--- akode-2.0.2/akode/lib/auto_sink.cpp.gcc43~ 2008-01-13 08:54:32.000000000 +0000
++++ akode-2.0.2/akode/lib/auto_sink.cpp 2008-01-13 08:54:32.000000000 +0000
+@@ -18,6 +18,7 @@
+ Boston, MA 02110-1301, USA.
+ */
+
++#include <stdlib.h>
+ #include "audioframe.h"
+ #include "auto_sink.h"
+
+diff -up akode-2.0.2/akode/lib/player.cpp.gcc43~ akode-2.0.2/akode/lib/player.cpp
+--- akode-2.0.2/akode/lib/player.cpp.gcc43~ 2008-01-13 08:54:35.000000000 +0000
++++ akode-2.0.2/akode/lib/player.cpp 2008-01-13 08:54:35.000000000 +0000
+@@ -18,6 +18,7 @@
+ Boston, MA 02110-1301, USA.
+ */
+
++#include <string.h>
+ #include <pthread.h>
+ #include <semaphore.h>
+ #include <assert.h>
+diff -up akode-2.0.2/akode/lib/magic.cpp.gcc43~ akode-2.0.2/akode/lib/magic.cpp
+--- akode-2.0.2/akode/lib/magic.cpp.gcc43~ 2008-01-13 08:54:36.000000000 +0000
++++ akode-2.0.2/akode/lib/magic.cpp 2008-01-13 08:54:36.000000000 +0000
+@@ -18,6 +18,7 @@
+ Boston, MA 02110-1301, USA.
+ */
+
++#include <string.h>
+ #include "akodelib.h"
+ #include "magic.h"
+ #include "file.h"
+diff -up akode-2.0.2/akode/akodeplay/akodeplay.cpp.gcc43~ akode-2.0.2/akode/akodeplay/akodeplay.cpp
+--- akode-2.0.2/akode/akodeplay/akodeplay.cpp.gcc43~ 2008-01-13 08:54:53.000000000 +0000
++++ akode-2.0.2/akode/akodeplay/akodeplay.cpp 2008-01-13 08:54:53.000000000 +0000
+@@ -18,6 +18,7 @@
+ Boston, MA 02110-1301, USA.
+ */
+
++#include <stdlib.h>
+ #include <iostream>
+
+ #include "../lib/akodelib.h"
diff --git a/media-libs/akode/metadata.xml b/media-libs/akode/metadata.xml
new file mode 100644
index 00000000..8d1e86a9
--- /dev/null
+++ b/media-libs/akode/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+</pkgmetadata>