Bump PORTREVISION after libao update and handle API incompatibility.

This commit is contained in:
Christian Weisgerber 2010-06-06 20:39:21 +00:00
parent 2f2aafd9bf
commit f613ac049d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255956
50 changed files with 343 additions and 46 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= cmus PORTNAME= cmus
PORTVERSION= 2.3.1 PORTVERSION= 2.3.1
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,10 @@
--- ao.c.orig 2010-06-05 20:09:57.000000000 +0200
+++ ao.c 2010-06-05 20:10:36.000000000 +0200
@@ -71,6 +71,7 @@ static int op_ao_open(sample_format_t sf
return -OP_ERROR_ERRNO;
}
+ memset(&format, 0, sizeof(format));
format.bits = sf_get_bits(sf);
format.rate = sf_get_rate(sf);
format.channels = sf_get_channels(sf);

View file

@ -7,7 +7,7 @@
PORTNAME= flac123 PORTNAME= flac123
PORTVERSION= 0.0.11 PORTVERSION= 0.0.11
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF/flac-tools/${PORTNAME}/${PORTVERSION} MASTER_SITES= SF/flac-tools/${PORTNAME}/${PORTVERSION}
@ -15,7 +15,7 @@ MAINTAINER= multimedia@FreeBSD.org
COMMENT= Command-line player for flac audio files COMMENT= Command-line player for flac audio files
LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \ LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \
ao.3:${PORTSDIR}/audio/libao \ ao.4:${PORTSDIR}/audio/libao \
popt.0:${PORTSDIR}/devel/popt popt.0:${PORTSDIR}/devel/popt
USE_GMAKE= yes USE_GMAKE= yes

View file

@ -7,7 +7,7 @@
PORTNAME= gnomoradio PORTNAME= gnomoradio
PORTVERSION= 0.15.1 PORTVERSION= 0.15.1
PORTREVISION= 13 PORTREVISION= 14
CATEGORIES= audio net CATEGORIES= audio net
MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- roboradio/audio/ogg.cc.orig
+++ roboradio/audio/ogg.cc
@@ -193,6 +193,7 @@
int device_id = ao_default_driver_id();
ao_sample_format output_fmt;
+ memset(&output_fmt, 0, sizeof(output_fmt));
output_fmt.bits = 16;
output_fmt.rate = 44100;
output_fmt.channels = 2;

View file

@ -7,7 +7,7 @@
PORTNAME= herrie PORTNAME= herrie
PORTVERSION= 2.2 PORTVERSION= 2.2
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= http://herrie.info/distfiles/ \ MASTER_SITES= http://herrie.info/distfiles/ \
http://www.stack.nl/~ed/projects/herrie/distfiles/ http://www.stack.nl/~ed/projects/herrie/distfiles/
@ -67,7 +67,7 @@ LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+=no_http no_scrobbler CONFIGURE_ARGS+=no_http no_scrobbler
.endif .endif
.if !defined(WITHOUT_LIBAO) .if !defined(WITHOUT_LIBAO)
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
CONFIGURE_ARGS+=ao CONFIGURE_ARGS+=ao
.endif .endif
.if !defined(WITHOUT_XCURSES) .if !defined(WITHOUT_XCURSES)

View file

@ -7,7 +7,7 @@
PORTNAME= liquidsoap PORTNAME= liquidsoap
PORTVERSION= 0.9.2 PORTVERSION= 0.9.2
PORTREVISION?= 1 PORTREVISION?= 2
DISTVERSIONPREFIX= full- DISTVERSIONPREFIX= full-
CATEGORIES= audio net CATEGORIES= audio net
MASTER_SITES= SF/savonet/${PORTNAME}/${PORTVERSION} MASTER_SITES= SF/savonet/${PORTNAME}/${PORTVERSION}
@ -75,14 +75,14 @@ PLIST_SUB= PORTVERSION=${PORTVERSION} LIQUIDSOAP_USER=${LIQUIDSOAP_USER} LIQUIDS
# alsa and portaudio disabled permanently - alsa is linux only, portaudio broken # alsa and portaudio disabled permanently - alsa is linux only, portaudio broken
_ALL_PACKAGES= alsa ao faac faad gavl ladspa lame mad ogg vorbis speex theora samplerate soundtouch portaudio pulseaudio taglib xmlplaylist lastfm _ALL_PACKAGES= alsa ao faac faad gavl ladspa lame mad ogg vorbis speex theora samplerate soundtouch portaudio pulseaudio taglib xmlplaylist lastfm
LIB_DEPENDS_ao= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS_ao= ao.4:${PORTSDIR}/audio/libao
LIB_DEPENDS_faac= faac.0:${PORTSDIR}/audio/faac LIB_DEPENDS_faac= faac.0:${PORTSDIR}/audio/faac
LIB_DEPENDS_faad= faad.2:${PORTSDIR}/audio/faad LIB_DEPENDS_faad= faad.2:${PORTSDIR}/audio/faad
LIB_DEPENDS_gavl= gavl.1:${PORTSDIR}/multimedia/gavl LIB_DEPENDS_gavl= gavl.1:${PORTSDIR}/multimedia/gavl
BUILD_DEPENDS_ladspa= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa BUILD_DEPENDS_ladspa= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
LIB_DEPENDS_lame= mp3lame.0:${PORTSDIR}/audio/lame LIB_DEPENDS_lame= mp3lame.0:${PORTSDIR}/audio/lame
LIB_DEPENDS_mad= mad.2:${PORTSDIR}/audio/libmad LIB_DEPENDS_mad= mad.2:${PORTSDIR}/audio/libmad
LIB_DEPENDS_ogg= ogg.6:${PORTSDIR}/audio/libogg LIB_DEPENDS_ogg= ogg.7:${PORTSDIR}/audio/libogg
LIB_DEPENDS_vorbis= vorbis.4:${PORTSDIR}/audio/libvorbis LIB_DEPENDS_vorbis= vorbis.4:${PORTSDIR}/audio/libvorbis
LIB_DEPENDS_speex= speex.1:${PORTSDIR}/audio/speex LIB_DEPENDS_speex= speex.1:${PORTSDIR}/audio/speex
LIB_DEPENDS_theora= theora.0:${PORTSDIR}/multimedia/libtheora LIB_DEPENDS_theora= theora.0:${PORTSDIR}/multimedia/libtheora

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- ocaml-ao-0.1.10/src/ao_stubs.c.orig
+++ ocaml-ao-0.1.10/src/ao_stubs.c
@@ -138,6 +138,7 @@
value channels,
value byte_format)
{
+ memset(format, 0, sizeof(*format));
format->bits = Int_val(bits);
format->rate = Int_val(rate);
format->channels = Int_val(channels);

View file

@ -6,14 +6,14 @@
PORTNAME= liteamp PORTNAME= liteamp
PORTVERSION= 0.2.3.2 PORTVERSION= 0.2.3.2
PORTREVISION= 17 PORTREVISION= 18
CATEGORIES= audio gnome CATEGORIES= audio gnome
MASTER_SITES= http://kldp.net/frs/download.php/547/ MASTER_SITES= http://kldp.net/frs/download.php/547/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Light-weight Music Player for GNOME2 COMMENT= Light-weight Music Player for GNOME2
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao \ LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao \
mad.2:${PORTSDIR}/audio/mad \ mad.2:${PORTSDIR}/audio/mad \
vorbisfile.6:${PORTSDIR}/audio/libvorbis vorbisfile.6:${PORTSDIR}/audio/libvorbis

View file

@ -0,0 +1,10 @@
--- src/playback.c.orig 2010-06-05 23:11:54.000000000 +0200
+++ src/playback.c 2010-06-05 23:12:22.000000000 +0200
@@ -275,6 +275,7 @@ void playback_open_playdevice(int srate,
and restore it afterwards */
signal(SIGINT, SIG_DFL);
+ memset(&format, 0, sizeof(format));
format.bits = bitrate;
format.rate = srate;
format.channels = nch;

View file

@ -7,14 +7,14 @@
PORTNAME= mpg321 PORTNAME= mpg321
PORTVERSION= 0.2.10 PORTVERSION= 0.2.10
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF MASTER_SITES= SF
MAINTAINER= naddy@FreeBSD.org MAINTAINER= naddy@FreeBSD.org
COMMENT= A free command-line mp3 player, compatible with mpg123 COMMENT= A free command-line mp3 player, compatible with mpg123
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao \ LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao \
id3tag.0:${PORTSDIR}/audio/libid3tag \ id3tag.0:${PORTSDIR}/audio/libid3tag \
mad.2:${PORTSDIR}/audio/libmad mad.2:${PORTSDIR}/audio/libmad

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- ao.c.orig
+++ ao.c
@@ -229,6 +229,7 @@
and restore it afterwards */
signal(SIGINT, SIG_DFL);
+ memset(&format, 0, sizeof(format));
format.bits = 16;
format.rate = header->samplerate;
format.channels = (options.opt & MPG321_FORCE_STEREO) ? 2 : MAD_NCHANNELS(header);

View file

@ -7,7 +7,7 @@
PORTNAME= musicpd PORTNAME= musicpd
PORTVERSION= 0.15.8 PORTVERSION= 0.15.8
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= audio ipv6 CATEGORIES= audio ipv6
MASTER_SITES= SF/${PORTNAME}/mpd/${PORTVERSION} MASTER_SITES= SF/${PORTNAME}/mpd/${PORTVERSION}
DISTNAME= mpd-${PORTVERSION} DISTNAME= mpd-${PORTVERSION}
@ -184,7 +184,7 @@ CONFIGURE_ARGS+=--disable-ipv6
.if defined(WITH_AO) .if defined(WITH_AO)
CONFIGURE_ARGS+=--enable-ao CONFIGURE_ARGS+=--enable-ao
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
.else .else
CONFIGURE_ARGS+=--disable-ao CONFIGURE_ARGS+=--disable-ao
.endif .endif

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- src/output/ao_plugin.c.orig
+++ src/output/ao_plugin.c
@@ -175,6 +175,7 @@
if (audio_format->bits > 16)
audio_format->bits = 16;
+ memset(&format, 0, sizeof(format));
format.bits = audio_format->bits;
format.rate = audio_format->sample_rate;
format.byte_format = AO_FMT_NATIVE;

View file

@ -7,6 +7,7 @@
PORTNAME= playgsf PORTNAME= playgsf
PORTVERSION= 0.7.1 PORTVERSION= 0.7.1
PORTREVISION= 1
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= http://projects.raphnet.net/playgsf/ \ MASTER_SITES= http://projects.raphnet.net/playgsf/ \
CRITICAL CRITICAL
@ -14,7 +15,7 @@ MASTER_SITES= http://projects.raphnet.net/playgsf/ \
MAINTAINER= ehaupt@FreeBSD.org MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A command line player for gsf audio files COMMENT= A command line player for gsf audio files
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes

View file

@ -7,6 +7,7 @@
PORTNAME= ao PORTNAME= ao
PORTVERSION= 0.82 PORTVERSION= 0.82
PORTREVISION= 1
CATEGORIES= audio python CATEGORIES= audio python
MASTER_SITES= http://ekyo.nerim.net/software/pyogg/ \ MASTER_SITES= http://ekyo.nerim.net/software/pyogg/ \
http://www.sourcefiles.org/Programming/Development/Modules/Python/ http://www.sourcefiles.org/Programming/Development/Modules/Python/
@ -16,7 +17,7 @@ DISTNAME= pyao-${PORTVERSION}
MAINTAINER= xride@FreeBSD.org MAINTAINER= xride@FreeBSD.org
COMMENT= A python wrapper for ao, an audio device abstraction library COMMENT= A python wrapper for ao, an audio device abstraction library
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/aomodule.so PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/aomodule.so
USE_PYTHON= yes USE_PYTHON= yes

View file

@ -0,0 +1,66 @@
--- src/aomodule.c.orig 2010-06-06 18:41:04.000000000 +0200
+++ src/aomodule.c 2010-06-06 18:45:01.000000000 +0200
@@ -4,7 +4,7 @@
static ao_option *
dict_to_options(PyObject *dict)
{
- int pos = 0;
+ Py_ssize_t pos = 0;
PyObject *key, *val;
ao_option *head = NULL;
int ret;
@@ -71,7 +71,7 @@ parse_args(PyObject *args, PyObject *kwa
*overwrite = 0;
- if(PyArg_ParseTupleAndKeywords(args, kwargs, "s|llllO!sl",
+ if(PyArg_ParseTupleAndKeywords(args, kwargs, "s|iiiiO!si",
(char **) driver_name_kwlist,
&driver_name,
&format->bits,
@@ -84,7 +84,7 @@ parse_args(PyObject *args, PyObject *kwa
*driver_id = ao_driver_id(driver_name);
} else {
PyErr_Clear();
- if(!(PyArg_ParseTupleAndKeywords(args, kwargs, "i|llllO!sl",
+ if(!(PyArg_ParseTupleAndKeywords(args, kwargs, "i|iiiiO!si",
(char **) driver_id_kwlist,
driver_id,
&format->bits,
@@ -114,6 +114,7 @@ py_ao_new(PyObject *self, PyObject *args
ao_sample_format sample_format;
ao_Object *retobj;
+ memset(&sample_format, 0, sizeof(sample_format));
if (!parse_args(args, kwargs,
&sample_format, &py_options,
&filename, &driver_id, &overwrite))
@@ -141,8 +142,9 @@ py_ao_new(PyObject *self, PyObject *args
return NULL;
}
- retobj = (ao_Object *) PyObject_NEW(ao_Object, &ao_Type);
+ retobj = (ao_Object *) PyObject_New(ao_Object, &ao_Type);
retobj->dev = dev;
+ retobj->driver_id = driver_id;
return (PyObject *) retobj;
}
@@ -150,7 +152,7 @@ static void
py_ao_dealloc(ao_Object *self)
{
ao_close(self->dev);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *
@@ -184,7 +186,7 @@ py_ao_driver_info(PyObject *self, PyObje
/* It's a method */
ao_Object *ao_self = (ao_Object *) self;
- info = ao_driver_info(ao_self->dev->driver_id);
+ info = ao_driver_info(ao_self->driver_id);
} else {

View file

@ -0,0 +1,10 @@
--- src/aomodule.h.orig 2010-06-06 18:45:10.000000000 +0200
+++ src/aomodule.h 2010-06-06 18:45:25.000000000 +0200
@@ -9,6 +9,7 @@
typedef struct {
PyObject_HEAD
ao_device *dev;
+ uint32_t driver_id;
} ao_Object;
static PyObject *Py_aoError;

View file

@ -7,6 +7,7 @@
PORTNAME= pytone PORTNAME= pytone
PORTVERSION= 3.0.2 PORTVERSION= 3.0.2
PORTREVISION= 1
CATEGORIES= audio python CATEGORIES= audio python
MASTER_SITES= http://www.luga.de/pytone/download/ \ MASTER_SITES= http://www.luga.de/pytone/download/ \
http://redundancy.redundancy.org/mirror/ http://redundancy.redundancy.org/mirror/
@ -15,7 +16,7 @@ DISTNAME= PyTone-${PORTVERSION}
MAINTAINER= lx@FreeBSD.org MAINTAINER= lx@FreeBSD.org
COMMENT= A music jukebox written in Python with a curses GUI COMMENT= A music jukebox written in Python with a curses GUI
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pysqlite2/_sqlite.so:${PORTSDIR}/databases/py-pysqlite23 \ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pysqlite2/_sqlite.so:${PORTSDIR}/databases/py-pysqlite23 \
${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen

View file

@ -7,7 +7,7 @@
PORTNAME= sox PORTNAME= sox
PORTVERSION= 14.3.0 PORTVERSION= 14.3.0
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF MASTER_SITES= SF
@ -57,7 +57,7 @@ CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
.if defined(WITH_AO) .if defined(WITH_AO)
CONFIGURE_ARGS+= --with-ao CONFIGURE_ARGS+= --with-ao
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
.else .else
CONFIGURE_ARGS+= --without-ao CONFIGURE_ARGS+= --without-ao
.endif .endif

View file

@ -6,7 +6,7 @@
PORTNAME= squash PORTNAME= squash
PORTVERSION= 1.0 PORTVERSION= 1.0
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}
@ -19,7 +19,7 @@ LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac \
id3-3.8.3:${PORTSDIR}/audio/id3lib \ id3-3.8.3:${PORTSDIR}/audio/id3lib \
mad.2:${PORTSDIR}/audio/mad \ mad.2:${PORTSDIR}/audio/mad \
vorbis.4:${PORTSDIR}/audio/libvorbis \ vorbis.4:${PORTSDIR}/audio/libvorbis \
ao.3:${PORTSDIR}/audio/libao ao.4:${PORTSDIR}/audio/libao
RUN_DEPENDS= id3v2:${PORTSDIR}/audio/id3v2 RUN_DEPENDS= id3v2:${PORTSDIR}/audio/id3v2
USE_BZIP2= yes USE_BZIP2= yes

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- src/player.c.orig
+++ src/player.c
@@ -118,6 +118,7 @@
char *full_filename;
long start_position;
+ memset(&sound_format, 0, sizeof(sound_format));
play_state = STATE_BEFORE_SONG;
/* make the compiler happy */

View file

@ -7,6 +7,7 @@
PORTNAME= uade PORTNAME= uade
PORTVERSION= 2.13 PORTVERSION= 2.13
PORTREVISION= 1
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= http://zakalwe.fi/uade/uade2/ \ MASTER_SITES= http://zakalwe.fi/uade/uade2/ \
CRITICAL CRITICAL
@ -14,7 +15,7 @@ MASTER_SITES= http://zakalwe.fi/uade/uade2/ \
MAINTAINER= ehaupt@FreeBSD.org MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Unix Amiga Delitracker Emulator COMMENT= Unix Amiga Delitracker Emulator
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
USE_BZIP2= yes USE_BZIP2= yes

View file

@ -8,7 +8,7 @@
PORTNAME= umodplayer PORTNAME= umodplayer
PORTVERSION= 0.${DISTVERSION:L} PORTVERSION= 0.${DISTVERSION:L}
DISTVERSION= B5.1 DISTVERSION= B5.1
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/UModPlayer%20B5 MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/UModPlayer%20B5
DISTNAME= ${PORTNAME}_${DISTVERSION} DISTNAME= ${PORTNAME}_${DISTVERSION}
@ -17,7 +17,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Console module player COMMENT= Console module player
LIB_DEPENDS= modplug.1:${PORTSDIR}/audio/libmodplug \ LIB_DEPENDS= modplug.1:${PORTSDIR}/audio/libmodplug \
ao.3:${PORTSDIR}/audio/libao ao.4:${PORTSDIR}/audio/libao
BUILD_DEPENDS= ${LOCALBASE}/lib/libaiff.a:${PORTSDIR}/audio/libaiff BUILD_DEPENDS= ${LOCALBASE}/lib/libaiff.a:${PORTSDIR}/audio/libaiff
HAS_CONFIGURE= yes HAS_CONFIGURE= yes

View file

@ -0,0 +1,10 @@
--- coresound.c.orig 2010-06-06 14:23:02.000000000 +0200
+++ coresound.c 2010-06-06 14:23:40.000000000 +0200
@@ -132,6 +132,7 @@ CoreSound_InitAudio()
if (drv < 0)
return FALSE;
+ memset(&fmt, 0, sizeof(fmt));
fmt.rate = sets.samplerate;
fmt.bits = 16;
fmt.byte_format = AO_FMT_NATIVE;

View file

@ -7,7 +7,7 @@
PORTNAME= waon PORTNAME= waon
PORTVERSION= 0.9 PORTVERSION= 0.9
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF MASTER_SITES= SF
@ -15,7 +15,7 @@ MAINTAINER= kichiki@users.sourceforge.net
COMMENT= A Wave-to-Notes transcriber and some utility tools COMMENT= A Wave-to-Notes transcriber and some utility tools
LIB_DEPENDS= fftw3.5:${PORTSDIR}/math/fftw3 \ LIB_DEPENDS= fftw3.5:${PORTSDIR}/math/fftw3 \
ao.3:${PORTSDIR}/audio/libao \ ao.4:${PORTSDIR}/audio/libao \
sndfile.1:${PORTSDIR}/audio/libsndfile \ sndfile.1:${PORTSDIR}/audio/libsndfile \
samplerate.1:${PORTSDIR}/audio/libsamplerate samplerate.1:${PORTSDIR}/audio/libsamplerate

View file

@ -0,0 +1,10 @@
--- ao-wrapper.c.orig 2010-06-06 14:28:59.000000000 +0200
+++ ao-wrapper.c 2010-06-06 14:29:25.000000000 +0200
@@ -53,6 +53,7 @@ ao_init_16_stereo (int samplerate, int v
default_driver = ao_default_driver_id ();
+ memset(&format, 0, sizeof(format));
format.bits = 16;
format.channels = 2;
format.rate = samplerate;

View file

@ -7,7 +7,7 @@
PORTNAME?= xmms2 PORTNAME?= xmms2
PORTVERSION= 0.6 PORTVERSION= 0.6
PORTREVISION= 5 PORTREVISION= 6
DISTVERSIONSUFFIX=DrMattDestruction DISTVERSIONSUFFIX=DrMattDestruction
CATEGORIES?= audio CATEGORIES?= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20DrMattDestruction MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20DrMattDestruction
@ -97,7 +97,7 @@ PLIST_SUB+= AIRPLAY="@comment "
.endif .endif
.if !defined(WITHOUT_AO) .if !defined(WITHOUT_AO)
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
PLIST_SUB+= AO="" PLIST_SUB+= AO=""
.else .else
EXCLUDE+= --without-plugins="ao" EXCLUDE+= --without-plugins="ao"

View file

@ -0,0 +1,10 @@
--- src/plugins/ao/ao.c.orig
+++ src/plugins/ao/ao.c
@@ -160,6 +160,7 @@
/* let's just use some common format to check if the device
* name is valid */
+ memset(&format, 0, sizeof(format));
format.bits = 16;
format.rate = 44100;
format.channels = 2;

View file

@ -7,6 +7,7 @@
PORTNAME= aldo PORTNAME= aldo
PORTVERSION= 0.7.5 PORTVERSION= 0.7.5
PORTREVISION= 1
CATEGORIES= comms hamradio CATEGORIES= comms hamradio
MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,10 @@
--- src/audioworkspace.cc.orig 2010-06-06 14:43:58.000000000 +0200
+++ src/audioworkspace.cc 2010-06-06 14:44:27.000000000 +0200
@@ -104,6 +104,7 @@ oastream AudioWorkSpace::create_output_s
{
ao_sample_format format;
+ memset(&format, 0, sizeof(format));
format.bits = m_bits;
format.channels = m_channels;
format.rate = m_sample_rate;

View file

@ -6,7 +6,7 @@
PORTNAME= bsnes PORTNAME= bsnes
PORTVERSION= 0.58 PORTVERSION= 0.58
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= emulators CATEGORIES= emulators
MASTER_SITES= http://byuu.org/files/ \ MASTER_SITES= http://byuu.org/files/ \
ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/ ftp://ftp.arcadebsd.org/pub/ArcadeBSD/ports/distfiles/
@ -73,7 +73,7 @@ AUDIO_DRIVER+= audio.pulseaudio
.endif .endif
.if defined(WITH_SOUND_AO) .if defined(WITH_SOUND_AO)
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
AUDIO_DRIVER+= audio.ao AUDIO_DRIVER+= audio.ao
.endif .endif

View file

@ -0,0 +1,10 @@
--- src/lib/ruby/audio/ao.cpp.orig 2010-06-06 18:49:07.000000000 +0200
+++ src/lib/ruby/audio/ao.cpp 2010-06-06 18:49:30.000000000 +0200
@@ -51,6 +51,7 @@ public:
driver_id = ao_default_driver_id(); //ao_driver_id((const char*)driver)
if(driver_id < 0) return false;
+ memset(&driver_format, 0, sizeof(driver_format));
driver_format.bits = 16;
driver_format.channels = 2;
driver_format.rate = settings.frequency;

View file

@ -7,7 +7,7 @@
PORTNAME= fuse PORTNAME= fuse
PORTVERSION= 0.10.0.2 PORTVERSION= 0.10.0.2
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= emulators CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}-emulator/${PORTNAME}/${PORTVERSION} MASTER_SITES= SF/${PORTNAME}-emulator/${PORTNAME}/${PORTVERSION}
@ -31,7 +31,7 @@ OPTIONS= AO "Use libao for audio output" off \
.if defined(WITH_AO) .if defined(WITH_AO)
CONFIGURE_ARGS+=--with-libao CONFIGURE_ARGS+=--with-libao
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
.endif .endif
.if !defined(WITHOUT_SAMPLERATE) .if !defined(WITHOUT_SAMPLERATE)

View file

@ -7,7 +7,7 @@
PORTNAME= zsnes PORTNAME= zsnes
PORTVERSION= 1.51 PORTVERSION= 1.51
PORTREVISION= 5 PORTREVISION= 6
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= emulators CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ZSNES%20v${PORTVERSION} MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/ZSNES%20v${PORTVERSION}
@ -78,7 +78,7 @@ CONFIGURE_ARGS+= --disable-opengl
.endif .endif
.if defined(WITH_LIBAO) .if defined(WITH_LIBAO)
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
CONFIGURE_ARGS+= --enable-libao CONFIGURE_ARGS+= --enable-libao
.else .else
CONFIGURE_ARGS+= --disable-libao CONFIGURE_ARGS+= --disable-libao

View file

@ -0,0 +1,10 @@
--- linux/audio.c.orig 2010-06-06 14:56:20.000000000 +0200
+++ linux/audio.c 2010-06-06 14:56:41.000000000 +0200
@@ -166,6 +166,7 @@ static int SoundInit_ao()
if (driver_id < 0) { driver_id = ao_default_driver_id(); }
ao_sample_format driver_format;
+ memset(&driver_format, 0, sizeof(driver_format));
driver_format.bits = 16;
driver_format.channels = StereoSound+1;
driver_format.rate = freqtab[SoundQuality = ((SoundQuality > 6) ? 1 : SoundQuality)];

View file

@ -7,7 +7,7 @@
PORTNAME= gcompris PORTNAME= gcompris
PORTVERSION= 9.2 PORTVERSION= 9.2
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES= games gnome CATEGORIES= games gnome
MASTER_SITES= SF MASTER_SITES= SF
DISTNAME= gcompris-9.2-2 DISTNAME= gcompris-9.2-2
@ -19,7 +19,7 @@ BUILD_DEPENDS= texi2html:${PORTSDIR}/textproc/texi2html \
gnuchess:${PORTSDIR}/games/gnuchess \ gnuchess:${PORTSDIR}/games/gnuchess \
${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20 ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \ LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \
ao.3:${PORTSDIR}/audio/libao \ ao.4:${PORTSDIR}/audio/libao \
assetml.0:${PORTSDIR}/devel/libassetml \ assetml.0:${PORTSDIR}/devel/libassetml \
sqlite3.8:${PORTSDIR}/databases/sqlite3 \ sqlite3.8:${PORTSDIR}/databases/sqlite3 \
gnet-2.0.0:${PORTSDIR}/net/gnet2 \ gnet-2.0.0:${PORTSDIR}/net/gnet2 \

View file

@ -7,7 +7,7 @@
PORTNAME= quake2forge PORTNAME= quake2forge
PORTVERSION= 0.3 PORTVERSION= 0.3
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= games CATEGORIES= games
MASTER_SITES= https://www.spoerlein.net/pub/ MASTER_SITES= https://www.spoerlein.net/pub/
DISTNAME= quake2-${PORTVERSION} DISTNAME= quake2-${PORTVERSION}
@ -40,7 +40,7 @@ USE_XORG= xxf86dga
.endif .endif
.if defined(WITH_AO) .if defined(WITH_AO)
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
CONFIGURE_ARGS+=--with-ao=${LOCALBASE} CONFIGURE_ARGS+=--with-ao=${LOCALBASE}
PLIST_SUB+= AO="" PLIST_SUB+= AO=""
.else .else

View file

@ -0,0 +1,10 @@
--- src/snd_ao.c.orig 2010-06-06 16:01:19.000000000 +0200
+++ src/snd_ao.c 2010-06-06 16:01:46.000000000 +0200
@@ -62,6 +62,7 @@ qboolean SNDDMA_Init(struct sndinfo * s)
}
}
+ memset(&format, 0, sizeof(format));
format.bits = si->dma->samplebits = si->bits->value;
format.rate = si->dma->speed = 44100;
format.channels = si->dma->channels = si->channels->value;

View file

@ -7,7 +7,7 @@
PORTNAME= dvbcut PORTNAME= dvbcut
PORTVERSION= 0.6.0 PORTVERSION= 0.6.0
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= multimedia CATEGORIES= multimedia
MASTER_SITES= http://www.mr511.de/dvbcut/ MASTER_SITES= http://www.mr511.de/dvbcut/
@ -16,7 +16,7 @@ COMMENT= Qt application for cutting of MPEG PS and MPEG TS streams (DVB)
BUILD_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer BUILD_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 \ LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 \
ao.3:${PORTSDIR}/audio/libao \ ao.4:${PORTSDIR}/audio/libao \
mad.2:${PORTSDIR}/audio/libmad \ mad.2:${PORTSDIR}/audio/libmad \
avutil.1:${PORTSDIR}/multimedia/ffmpeg avutil.1:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS:= ${BUILD_DEPENDS} RUN_DEPENDS:= ${BUILD_DEPENDS}

View file

@ -0,0 +1,10 @@
--- src/playaudio.cpp.orig 2010-06-06 16:19:25.000000000 +0200
+++ src/playaudio.cpp 2010-06-06 16:19:47.000000000 +0200
@@ -55,6 +55,7 @@ public:
ao_sample_format format;
+ memset(&format, 0, sizeof(format));
format.bits = 16;
format.channels = channels;
format.rate = samplerate;

View file

@ -7,7 +7,7 @@
PORTNAME= shell-fm PORTNAME= shell-fm
PORTVERSION= 0.7 PORTVERSION= 0.7
PORTEPOCH= 1 PORTEPOCH= 2
CATEGORIES= multimedia CATEGORIES= multimedia
MASTER_SITES= http://nex.scrapping.cc/shell-fm/releases/ MASTER_SITES= http://nex.scrapping.cc/shell-fm/releases/

View file

@ -7,7 +7,7 @@
PORTNAME= vyqchat PORTNAME= vyqchat
PORTVERSION= 0.2.8 PORTVERSION= 0.2.8
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= net CATEGORIES= net
MASTER_SITES= http://linux.bydg.org/~yogin/ MASTER_SITES= http://linux.bydg.org/~yogin/

View file

@ -0,0 +1,10 @@
--- src/sound.cpp.orig 2010-06-06 16:28:57.000000000 +0200
+++ src/sound.cpp 2010-06-06 16:29:34.000000000 +0200
@@ -173,6 +173,7 @@ void SoundLibAo::play(VyEvent evt)/*{{{*
{
ao_sample_format frmt;
+ memset(&frmt, 0, sizeof(frmt));
frmt.bits = sizeof(short) << 3;
frmt.channels = sfinf[evt].channels;
frmt.rate = sfinf[evt].samplerate;

View file

@ -7,7 +7,7 @@
PORTNAME?= cdrdao PORTNAME?= cdrdao
PORTVERSION= 1.2.3 PORTVERSION= 1.2.3
PORTREVISION?= 0 PORTREVISION?= 1
CATEGORIES= sysutils audio CATEGORIES= sysutils audio
MASTER_SITES= SF MASTER_SITES= SF
MASTER_SITE_SUBDIR= cdrdao/cdrdao/${PORTVERSION} MASTER_SITE_SUBDIR= cdrdao/cdrdao/${PORTVERSION}
@ -20,7 +20,7 @@ USE_BZIP2= yes
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
MP3OGG_LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao \ MP3OGG_LIB_DEPENDS= ao.4:${PORTSDIR}/audio/libao \
mad.2:${PORTSDIR}/audio/libmad \ mad.2:${PORTSDIR}/audio/libmad \
vorbis.4:${PORTSDIR}/audio/libvorbis vorbis.4:${PORTSDIR}/audio/libvorbis

View file

@ -0,0 +1,10 @@
--- trackdb/FormatMp3.cc.orig 2010-06-06 16:45:00.000000000 +0200
+++ trackdb/FormatMp3.cc 2010-06-06 16:45:36.000000000 +0200
@@ -111,6 +111,7 @@ FormatSupport::Status FormatMp3::madInit
// Initialize libao for WAV output;
ao_sample_format out_format;
+ memset(&out_format, 0, sizeof(out_format));
out_format.bits = 16;
out_format.rate = 44100;
out_format.channels = 2;

View file

@ -0,0 +1,10 @@
--- trackdb/FormatOgg.cc.orig 2010-06-06 16:45:05.000000000 +0200
+++ trackdb/FormatOgg.cc 2010-06-06 16:48:23.000000000 +0200
@@ -84,6 +84,7 @@ FormatSupport::Status FormatOgg::oggInit
return FS_WRONG_FORMAT;
}
+ memset(&outFormat_, 0, sizeof(outFormat_));
outFormat_.bits = 16;
outFormat_.rate = 44100;
outFormat_.channels = 2;

View file

@ -0,0 +1,10 @@
--- xdao/SoundIF-ao.cc.orig 2010-06-06 16:37:14.000000000 +0200
+++ xdao/SoundIF-ao.cc 2010-06-06 16:42:17.000000000 +0200
@@ -37,6 +37,7 @@ SoundIF::SoundIF()
impl_ = new SoundIFImpl;
impl_->driverId = ao_default_driver_id();
+ memset(&impl_->format, 0, sizeof(impl_->format));
impl_->format.bits = 16;
impl_->format.rate = 44100;
impl_->format.channels = 2;

View file

@ -8,6 +8,7 @@
PORTNAME= gnustep-gui PORTNAME= gnustep-gui
.if defined(WITH_GNUSTEP_DEVEL) .if defined(WITH_GNUSTEP_DEVEL)
PORTVERSION= 0.19.0 PORTVERSION= 0.19.0
PORTREVISION= 1
.else .else
PORTVERSION= 0.17.1 PORTVERSION= 0.17.1
PORTREVISION= 2 PORTREVISION= 2
@ -25,7 +26,7 @@ LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
.if defined(WITH_GNUSTEP_DEVEL) .if defined(WITH_GNUSTEP_DEVEL)
LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
BUILD_DEPENDS+= ${LOCALBASE}/lib/libflite.a:${PORTSDIR}/audio/flite BUILD_DEPENDS+= ${LOCALBASE}/lib/libflite.a:${PORTSDIR}/audio/flite
.else .else
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile

View file

@ -0,0 +1,10 @@
--- Tools/sound/AudioOutputSink.m.orig 2010-06-06 18:12:07.000000000 +0200
+++ Tools/sound/AudioOutputSink.m 2010-06-06 18:12:53.000000000 +0200
@@ -72,6 +72,7 @@
return nil;
}
+ memset(&_format, 0, sizeof(_format));
_format.channels = (int)channelCount;
_format.rate = (int)sampleRate;