pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/akode aKode is a simple audio decoding framework...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/424cdd279631
branches:  trunk
changeset: 555243:424cdd279631
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Thu Feb 26 18:00:34 2009 +0000

description:
aKode is a simple audio decoding framework that provides a uniform interface
to decode the most common audio formats. It also has a direct playback option
for a number of audio outputs.

This package provides the aKode library and akodeplay testing utility.

diffstat:

 audio/akode/DESCR            |    5 +
 audio/akode/Makefile         |   15 ++++
 audio/akode/Makefile.common  |   42 +++++++++++++
 audio/akode/PLIST            |   30 +++++++++
 audio/akode/buildlink3.mk    |   21 ++++++
 audio/akode/distinfo         |   14 ++++
 audio/akode/patches/patch-aa |   13 ++++
 audio/akode/patches/patch-ab |   30 +++++++++
 audio/akode/patches/patch-ac |  133 +++++++++++++++++++++++++++++++++++++++++++
 audio/akode/patches/patch-ad |   28 +++++++++
 audio/akode/patches/patch-ae |   13 ++++
 audio/akode/patches/patch-af |   19 ++++++
 audio/akode/patches/patch-ag |   40 ++++++++++++
 audio/akode/patches/patch-ah |   29 +++++++++
 audio/akode/patches/patch-ai |   22 +++++++
 15 files changed, 454 insertions(+), 0 deletions(-)

diffs (truncated from 514 to 300 lines):

diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/DESCR Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,5 @@
+aKode is a simple audio decoding framework that provides a uniform interface
+to decode the most common audio formats. It also has a direct playback option
+for a number of audio outputs.
+
+This package provides the aKode library and akodeplay testing utility.
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/Makefile      Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+#
+
+PKGNAME=               akode-2.0.2
+PKGREVISION=           1
+
+MAINTAINER=            hasso%NetBSD.org@localhost
+COMMENT=               Simple audio decoding framework (base package)
+
+.include "../../audio/akode/Makefile.common"
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/Makefile.common       Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+#
+# used by audio/akode/Makefile
+# used by audio/akode-plugins-alsa/Makefile
+# used by audio/akode-plugins-ffmpeg/Makefile
+# used by audio/akode-plugins-jack/Makefile
+# used by audio/akode-plugins-mpc/Makefile
+# used by audio/akode-plugins-mpeg/Makefile
+# used by audio/akode-plugins-oss/Makefile
+# used by audio/akode-plugins-pulseaudio/Makefile
+# used by audio/akode-plugins-resampler/Makefile
+# used by audio/akode-plugins-sun/Makefile
+# used by audio/akode-plugins-xiph/Makefile
+
+AKODE_VERSION=         2.0.2
+DISTNAME=              30375-akode-${AKODE_VERSION}
+CATEGORIES=            audio
+MASTER_SITES=          http://www.kde-apps.org/CONTENT/content-files/
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            hasso%NetBSD.org@localhost
+HOMEPAGE=              http://carewolf.com/akode/
+
+WRKSRC=                        ${WRKDIR}/akode-${AKODE_VERSION}
+
+GNU_CONFIGURE=         yes
+USE_TOOLS+=            gmake pkg-config
+USE_LANGUAGES=         c c++
+USE_LIBTOOL=           yes
+
+CONFIGURE_ARGS+=        --without-flac
+CONFIGURE_ARGS+=        --without-speex
+CONFIGURE_ARGS+=        --without-libmad
+CONFIGURE_ARGS+=        --without-libsamplerate
+CONFIGURE_ARGS+=        --without-jack
+CONFIGURE_ARGS+=        --without-polypaudio
+CONFIGURE_ARGS+=        --without-ffmpeg
+CONFIGURE_ARGS+=        --without-oss
+CONFIGURE_ARGS+=        --without-sun
+CONFIGURE_ARGS+=        --without-alsa
+CONFIGURE_ARGS+=        --without-vorbis
+CONFIGURE_ARGS+=       --without-mpc
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/PLIST Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+bin/akode-config
+bin/akodeplay
+include/akode/akode_export.h
+include/akode/akodelib.h
+include/akode/audiobuffer.h
+include/akode/audioconfiguration.h
+include/akode/audioframe.h
+include/akode/auto_sink.h
+include/akode/buffered_decoder.h
+include/akode/bytebuffer.h
+include/akode/converter.h
+include/akode/crossfader.h
+include/akode/decoder.h
+include/akode/encoder.h
+include/akode/fast_resampler.h
+include/akode/file.h
+include/akode/framedecoder.h
+include/akode/localfile.h
+include/akode/magic.h
+include/akode/mmapfile.h
+include/akode/player.h
+include/akode/pluginhandler.h
+include/akode/resampler.h
+include/akode/sink.h
+include/akode/void_sink.h
+include/akode/volumefilter.h
+include/akode/wav_decoder.h
+lib/libakode.la
+@dirrm include/akode
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/buildlink3.mk Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+AKODE_BUILDLINK3_MK:=  ${AKODE_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    akode
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nakode}
+BUILDLINK_PACKAGES+=   akode
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}akode
+
+.if !empty(AKODE_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.akode+=  akode>=2.0.2
+BUILDLINK_PKGSRCDIR.akode?=    ../../akode/akode
+.endif # AKODE_BUILDLINK3_MK
+
+.include "../../devel/libltdl/buildlink3.mk"
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/distinfo      Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+
+SHA1 (30375-akode-2.0.2.tar.bz2) = 10ad1e335bc53c2a90d133b493568324514c729c
+RMD160 (30375-akode-2.0.2.tar.bz2) = fa0322367d8e24e541007d3f9e508c3c31370d96
+Size (30375-akode-2.0.2.tar.bz2) = 472605 bytes
+SHA1 (patch-aa) = e984dc5d4f1e62812d8c0c9db4bf0476c1edf3fa
+SHA1 (patch-ab) = 0366386429f06655aabd3dbfd393182856750cc6
+SHA1 (patch-ac) = 16ecd5bddc4a8490703380f06cf25abf54a2f99e
+SHA1 (patch-ad) = b1e110ed925fd35714e0baf89a7ce485496fd0a6
+SHA1 (patch-ae) = e1b8b9439907a92531c1e0a0c4b494bd7776f770
+SHA1 (patch-af) = 99f17f5d3a58ad659a1a8c4dab5ddf6b5382dbff
+SHA1 (patch-ag) = 5c3cb7d81af525f1816cd4489ff5097a8457a91e
+SHA1 (patch-ah) = f58249f5d32e86e82a5831a826dafc0590653a5e
+SHA1 (patch-ai) = 0b1196a792259ed573c964f66b68f56adb8a4b0e
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/patches/patch-aa      Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+
+--- akode/plugins/xiph_decoder/flac113_decoder.cpp.orig        2008-12-05 15:27:25 +0200
++++ akode/plugins/xiph_decoder/flac113_decoder.cpp     2008-12-05 15:27:44 +0200
+@@ -108,7 +108,7 @@ struct FLACDecoder::private_data {
+ 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 -r 9d8b20d1a021 -r 424cdd279631 audio/akode/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/patches/patch-ab      Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+
+--- akode/plugins/sun_sink/sun_sink.cpp.orig   2008-12-06 21:32:50 +0200
++++ akode/plugins/sun_sink/sun_sink.cpp        2008-12-06 21:39:31 +0200
+@@ -20,13 +20,14 @@
+ 
+ #include <config.h>
+ 
++#include <sys/types.h>
++#include <sys/ioctl.h>
+ #include <sys/audioio.h>
+ 
+-#include <sys/ioctl.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <string.h>
+ #include <unistd.h>
+-#include <alloca.h>
+ 
+ #include <audioframe.h>
+ #include "sun_sink.h"
+@@ -97,7 +98,7 @@ int SunSink::setAudioConfiguration(const
+ {
+     d->config = *config;
+ 
+-    AUDIO_INITINFO(&d->auinfo)
++    AUDIO_INITINFO(&d->auinfo);
+ 
+     if (ioctl(d->audio_fd, AUDIO_GETINFO, &d->auinfo) < 0)
+     {
diff -r 9d8b20d1a021 -r 424cdd279631 audio/akode/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/akode/patches/patch-ac      Thu Feb 26 18:00:34 2009 +0000
@@ -0,0 +1,133 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/02/26 18:00:34 hasso Exp $
+
+--- configure.orig     2007-04-06 16:23:22 +0300
++++ configure  2009-02-20 20:04:46 +0200
+@@ -913,6 +913,8 @@ VORBIS_LIBS
+ VORBISFILE_LIBS
+ include_xiph_decoder_TRUE
+ include_xiph_decoder_FALSE
++include_mpc_decoder_FALSE
++include_mpc_decoder_TRUE
+ include_src_resampler_TRUE
+ include_src_resampler_FALSE
+ include_alsa_sink_TRUE
+@@ -1559,6 +1561,7 @@ Optional Packages:
+   --with-pic              try to use only PIC/non-PIC objects [default=use
+                           both]
+   --with-tags[=TAGS]      include additional configurations [automatic]
++  --with-mpc              Enable MPC support [default=yes]
+   --with-flac             Enable FLAC support [default=check]
+   --with-speex            Enable speex support [default=check]
+   --with-libmad           Enable libmad support [default=check]
+@@ -23630,6 +23633,12 @@ ac_config_headers="$ac_config_headers ak
+ 
+ 
+ 
++# Check whether --with-mpc was given.
++if test "${with_mpc+set}" = set; then
++  withval=$with_mpc; with_mpc="$withval"
++else
++  with_mpc="yes"
++fi
+ 
+ # Check whether --with-flac was given.
+ if test "${with_flac+set}" = set; then
+@@ -23639,6 +23648,8 @@ else
+ fi
+ 
+ 
++have_libFLAC=no
++have_libOggFLAC=no
+ if test "x$flac_test" = "xyes" ; then
+ 
+ 
+@@ -24539,6 +24550,7 @@ else
+ fi
+ 
+ 
++have_libspeex=no
+ if test "x$speex_test" = "xyes" ; then
+ { echo "$as_me:$LINENO: checking for speex headers" >&5
+ echo $ECHO_N "checking for speex headers... $ECHO_C" >&6; }
+@@ -24554,8 +24566,8 @@ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ 
+-                #include <speex.h>
+-                #include <speex_callbacks.h>
++                #include <speex/speex.h>
++                #include <speex/speex_callbacks.h>
+                 #include <ogg/ogg.h>
+ 
+ int
+@@ -24733,10 +24745,10 @@ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ 
+-                #include <speex.h>
+-                #include <speex_callbacks.h>
+-                #include <speex_echo.h>
+-                #include <speex_preprocess.h>
++                #include <speex/speex.h>
++                #include <speex/speex_callbacks.h>
++                #include <speex/speex_echo.h>
++                #include <speex/speex_preprocess.h>
+                 #include <ogg/ogg.h>
+ 
+ int
+@@ -25506,12 +25518,12 @@ fi
+ 
+ 
+ if test "x$polypaudio_test" = "xyes" ; then
+-{ echo "$as_me:$LINENO: checking for Polypaudio 0.7 or later" >&5
+-echo $ECHO_N "checking for Polypaudio 0.7 or later... $ECHO_C" >&6; }
+-if $PKG_CONFIG --atleast-version 0.7 polyplib-simple >/dev/null 2>&1 ; then
+-  POLYP_CFLAGS="`$PKG_CONFIG --cflags polyplib-simple`"
+-  POLYP_LIBADD="`$PKG_CONFIG --libs-only-l polyplib-simple`"
+-  POLYP_LDFLAGS="`$PKG_CONFIG --libs-only-L polyplib-simple`"
++{ echo "$as_me:$LINENO: checking for Pulseaudio 0.9.2 or later" >&5
++echo $ECHO_N "checking for Pulseaudio 0.9.2 or later... $ECHO_C" >&6; }
++if $PKG_CONFIG --atleast-version 0.7 libpulse-simple >/dev/null 2>&1 ; then
++  POLYP_CFLAGS="`$PKG_CONFIG --cflags libpulse-simple`"
++  POLYP_LIBADD="`$PKG_CONFIG --libs-only-l libpulse-simple`"
++  POLYP_LDFLAGS="`$PKG_CONFIG --libs-only-L libpulse-simple`"
+   have_polyp=yes



Home | Main Index | Thread Index | Old Index