new decoding/sound engine for kde

musepack does not work yet.
This commit is contained in:
espie 2006-03-10 10:40:16 +00:00
parent 2da4784277
commit b99ab6b46e
9 changed files with 205 additions and 0 deletions

56
audio/akode/Makefile Normal file
View File

@ -0,0 +1,56 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
COMMENT= "Decoding Library for KDE Multimedia"
DISTNAME= akode-2.0
PKGNAME= ${DISTNAME}
SHARED_LIBS= akode 2.0
CATEGORIES= audio multimedia x11/kde
HOMEPAGE= http://www.kde-apps.org/content/show.php?content=30375
MAINTAINER= David Love <david@shef.ac.uk>
MASTER_SITES= http://www.kde-apps.org/content/files/
EXTRACT_SUFX= .tar.gz
DISTFILES= 30375-${DISTNAME}${EXTRACT_SUFX}
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
LIB_DEPENDS= OggFLAC,FLAC::audio/flac \
mad::audio/libmad \
speex::audio/speex \
vorbis,vorbisfile::audio/libvorbis \
ltdl::devel/libtool,-ltdl
WANTLIB= c stdc++ pthread m ossaudio ogg
USE_X11= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
CONFIGURE= /bin/sh ${WRKDIST}/admin/cvs.sh configure
CONFIGURE_ARGS+= --with-extra-includes=${LOCALBASE}/include \
--with-extra-libs=${LOCALBASE}/lib
# Force the plugins to link as modules
PLUGINS= libakode_mpc_decoder \
libakode_mpeg_decoder \
lib/libakode_oss_sink \
lib/libakode_sun_sink \
lib/libakode_xiph_decoder
.for _n in ${PLUGINS}
MAKE_FLAGS+= lib${_n}_la_LDFLAGS='-module -avoid-version'
.endfor
.include <bsd.port.mk>

4
audio/akode/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (30375-akode-2.0.tar.gz) = 04f79cda65c8e9966fa462eaaaa282dc
RMD160 (30375-akode-2.0.tar.gz) = 2cd7b72032b56912c60c2c693eca7e56f948e2b6
SHA1 (30375-akode-2.0.tar.gz) = cbf65d2f2caa99eb0bc6ee2cc169eaf2d8a13a31
SIZE (30375-akode-2.0.tar.gz) = 650094

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-akode_plugins_mpc_decoder_mppdec_mpc_dec_cpp,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
--- akode/plugins/mpc_decoder/mppdec/mpc_dec.cpp.orig Fri Mar 10 11:33:14 2006
+++ akode/plugins/mpc_decoder/mppdec/mpc_dec.cpp Fri Mar 10 11:33:21 2006
@@ -1056,6 +1056,7 @@ void MPC_decoder::UpdateBuffer ( unsigne
f_read_dword ( Speicher + (RING & MEMSIZE2), MEMSIZE2 ); // update buffer
}
+#undef swap32
static unsigned long swap32(unsigned long val)
{
const unsigned char * src = (const unsigned char*)&val;

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-akode_plugins_mpc_decoder_mppdec_streaminfo_cpp,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
--- akode/plugins/mpc_decoder/mppdec/streaminfo.cpp.orig Fri Mar 10 11:33:38 2006
+++ akode/plugins/mpc_decoder/mppdec/streaminfo.cpp Fri Mar 10 11:33:50 2006
@@ -143,6 +143,7 @@ int StreamInfo::ReadHeaderSV6 ( unsigned
return ERROR_CODE_OK;
}
+#undef swap32
static unsigned int swap32(unsigned int val)
{
const unsigned char * src = (const unsigned char*)&val;

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-akode_plugins_sun_sink_sun_sink_cpp,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
--- akode/plugins/sun_sink/sun_sink.cpp.orig Wed Feb 22 12:52:14 2006
+++ akode/plugins/sun_sink/sun_sink.cpp Wed Feb 22 14:21:18 2006
@@ -20,13 +20,15 @@
#include <config.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <string.h>
#include <sys/audioio.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
-#include <alloca.h>
#include <audioframe.h>
#include "sun_sink.h"
@@ -97,7 +99,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)
{

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-configure_in,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
--- configure.in.orig Wed Dec 14 21:09:22 2005
+++ configure.in Wed Feb 22 12:08:06 2006
@@ -120,7 +120,7 @@ AC_DEFUN([AC_CHECK_LIBFLAC],
])
if test "x$have_libFLAC" = "xyes"; then
- LIBFLAC="-lFLAC"
+ LIBFLAC="-lFLAC -lm"
AC_DEFINE(HAVE_LIBFLAC, 1,
[Define if you have libFLAC (required for loading FLAC files)])
fi
@@ -136,7 +136,7 @@ AC_DEFUN([AC_CHECK_LIBOGGFLAC],
KDE_CHECK_HEADER(OggFLAC/seekable_stream_decoder.h,
[
KDE_CHECK_LIB(OggFLAC,OggFLAC__seekable_stream_decoder_process_single,
- have_libOggFLAC=yes,,[-lm -lOggFLAC -lFLAC])
+ have_libOggFLAC=yes,,[-lm -logg -lOggFLAC -lFLAC])
])
if test "x$have_libOggFLAC" = "xyes"; then
@@ -159,13 +159,13 @@ AC_DEFUN([KDE_CHECK_OGGVORBIS],
[:], [have_oggvorbis=no])
KDE_CHECK_LIB(vorbis, vorbis_info_init,
- [:], [have_oggvorbis=no], -logg)
+ [:], [have_oggvorbis=no], -logg -lm)
KDE_CHECK_LIB(vorbisfile, ov_open,
- [:], [have_oggvorbis=no], -lvorbis -logg)
+ [:], [have_oggvorbis=no], -lvorbis -logg -lm)
if test "x$have_oggvorbis" = xyes; then
- VORBIS_LIBS="-lvorbis -logg"
+ VORBIS_LIBS="-lvorbis -logg -lm"
VORBISFILE_LIBS="-lvorbisfile"
# for akode/plugins/xiph_decoder/

7
audio/akode/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
aKode is the decoding library used in akode_artsplugin in kdemultimedia,
and improves the aRts experience by fewer drop-outs, more supported
formats and fewer bugs in general. It can also be used directly without
aRts in JuK and Amarok.
aKode supports decoding of MPEG audio, Ogg Vorbis, Ogg FLAC, old FLAC,
Speex, WAV, and Musepack audio.

View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
@lib lib/libakode.so.${LIBakode_VERSION}
lib/libakode_mpc_decoder.so
lib/libakode_mpeg_decoder.so
lib/libakode_oss_sink.so
lib/libakode_sun_sink.so
lib/libakode_xiph_decoder.so

42
audio/akode/pkg/PLIST Normal file
View File

@ -0,0 +1,42 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/03/10 10:40:16 espie Exp $
%%SHARED%%
bin/akode-config
bin/akodeplay
include/akode/
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.a
lib/libakode.la
lib/libakode_mpc_decoder.a
lib/libakode_mpc_decoder.la
lib/libakode_mpeg_decoder.a
lib/libakode_mpeg_decoder.la
lib/libakode_oss_sink.a
lib/libakode_oss_sink.la
lib/libakode_sun_sink.a
lib/libakode_sun_sink.la
lib/libakode_xiph_decoder.a
lib/libakode_xiph_decoder.la