--- libao-1.0.0.orig/debian/watch
+++ libao-1.0.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://downloads.xiph.org/releases/ao/libao-(.+)\.tar\.gz
--- libao-1.0.0.orig/debian/libao-common.install
+++ libao-1.0.0/debian/libao-common.install
@@ -0,0 +1,2 @@
+debian/libao.conf etc/
+debian/tmp/usr/share/man
--- libao-1.0.0.orig/debian/copyright
+++ libao-1.0.0/debian/copyright
@@ -0,0 +1,23 @@
+This package was debianized by Christopher L Cheney <ccheney@debian.org> on
+Sun, 29 Oct 2000 00:39:24 -0500.
+
+It was downloaded from http://www.xiph.org/downloads/:
+
+ URL:<http://downloads.xiph.org/releases/ao/libao-0.8.6.tar.gz>
+
+Upstream Authors:
+ Aaron Holtzman
+ Stan Seibert <volsung@xiph.org>
+ Jack Moffitt <jack@xiph.org>
+ Ralph Giles <giles@xiph.org>
+ Warren Dukes <shank@xiph.org>
+
+Copyright:
+
+Originally Copyright (C) Aaron Holtzman - May 1999
+Changes Copyright (C) Stan Seibert - July 2000-March 2004
+
+You are free to distribute this software under the terms of the GNU
+General Public License. On Debian systems, the complete text of the
+GNU General Public License can be found in
+/usr/share/common-licenses/GPL file.
--- libao-1.0.0.orig/debian/compat
+++ libao-1.0.0/debian/compat
@@ -0,0 +1 @@
+7
--- libao-1.0.0.orig/debian/changelog
+++ libao-1.0.0/debian/changelog
@@ -0,0 +1,292 @@
+libao (1.0.0-5) unstable; urgency=low
+
+ * Need to conflict on libao2 due to /etc/libao.conf stupidness.
+ * Added quiet option to libao.conf since libraries shouldn't print error
+ messages by default. (Closes: #590961)
+ * Added quilt support and debian/README.source
+ * Add upstream patch for compiling on BSD with sndio. (Closes: #592013)
+
+ -- John Francesco Ferlito <johnf@inodes.org> Tue, 13 Apr 2010 22:41:05 +1000
+
+libao (1.0.0-4) unstable; urgency=low
+
+ * Actually depend on libao.
+
+ -- John Francesco Ferlito <johnf@inodes.org> Sun, 11 Apr 2010 11:04:30 +1000
+
+libao (1.0.0-3) unstable; urgency=low
+
+ * Split out libao.conf into libao-common package so we don't have problems
+ with future SONAME changes. (Closes: #576604)
+ * Include man page for libao.conf
+ * Bumped standards version to 3.8.4.
+ * Added source/format with version 1.0
+
+ -- John Francesco Ferlito <johnf@inodes.org> Tue, 06 Apr 2010 18:36:44 +1000
+
+libao (1.0.0-2) unstable; urgency=low
+
+ * Fix shlibdeps to ignore the plugins
+
+ -- John Francesco Ferlito <johnf@inodes.org> Sat, 03 Apr 2010 19:15:19 +1100
+
+libao (1.0.0-1) unstable; urgency=low
+
+ * New upstream release.
+ - Please package new upstream version 1.0.0. (Closes: #575678)
+ - pa_xmalloc' implicitly converted to pointer. (Closes: #573093)
+ - libao2: need to clear the final period in alsa driver before closing it.
+ (Closes: #462753)
+ - libao: oss plugin assumes malloc not to return NULL. (Closes: #316724)
+ - useless message about underruns. (Closes: #393471)
+ - useless libs in pkg-config file. (Closes: #466692)
+ - vorbis-tools: ogg123 --quiet is not entirely quiet. (Closes: #410174)
+ - libao2: WAV device doesn't print error when device is full.
+ (Closes: #130816)
+ - libao2: esd driver: issues when using over network. (Closes: #267073)
+ * Soname bump libao2 -> libao4
+ * Update debian/control
+ - Add version dependency on debhelper.
+ - Bump to Standards-Version 3.8.3.
+ - Remove Adeodato Simó from Uploaders.
+ - Add John Francesco Ferlito to Uploaders.
+ - Remove duplicate Section headers.
+ - Improve descriptions.
+ - Add ${misc:Depends}.
+ * Add debian/symbols
+ * Remove all references to libarts
+ * Removed debian/patches/path-max.patch, applied upstream.
+ * Cleaned up some lintian warnings (Thanks to Benjamin Drung).
+ (Closes: #572286)
+
+ -- John Francesco Ferlito <johnf@inodes.org> Sat, 03 Apr 2010 15:46:12 +1100
+
+libao (0.8.8-5.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix FTBFS on hurd-i386; thanks Samuel Thibault for the patch
+ (Closes: #522101).
+
+ -- Benjamin Drung <bdrung@ubuntu.com> Tue, 02 Mar 2010 20:53:11 +0100
+
+libao (0.8.8-5) unstable; urgency=low
+
+ * Bump to Standards-Version 3.8.0.
+ * Remove myself from Uploaders.
+
+ -- Clint Adams <schizo@debian.org> Fri, 27 Feb 2009 19:33:14 -0500
+
+libao (0.8.8-4) unstable; urgency=medium
+
+ [ Adeodato Simó ]
+ * Capitalize ALSA correctly in the long description. (Closes: #432958)
+
+ [ William Pitcock ]
+ * Capitalize ALSA correctly in the long description. (Closes: #432958)
+ * debian/control, debian/rules: Add debug symbols package libao-dbg.
+ * debian/patches/01_fix_arts_init_wackyness.patch:
+ Fix arts_init() wackyness where on non-KDE systems, it causes _exit()
+ to be called in ao_initialize(). (Closes: #464638, #461119, #440040).
+ * Standards-Version bump; no changes required.
+
+ [ Clint Adams ]
+ * Rename XS-VCS-Bzr header to Vcs-Bzr.
+
+ -- Clint Adams <schizo@debian.org> Fri, 08 Feb 2008 18:20:30 -0500
+
+libao (0.8.8-3) unstable; urgency=low
+
+ * Change default_driver from 'alsa09' to 'alsa' in /etc/libao.conf.
+ closes: #427903.
+
+ -- Clint Adams <schizo@debian.org> Sun, 01 Jul 2007 20:39:56 -0400
+
+libao (0.8.8-2) unstable; urgency=low
+
+ * Make libao2 Replace: libao-pulse, and Suggest: libpulse0. (Closes: #426751)
+
+ -- Adeodato Simó <dato@net.com.org.es> Wed, 30 May 2007 21:08:19 +0200
+
+libao (0.8.8-1) unstable; urgency=low
+
+ * New upstream release.
+
+ * Add libpulse-dev to Build-Depends, and install the pulse plugin.
+
+ * Drop debian/patches/no_debian_subdir.diff, applied upstream.
+
+ * Install CHANGES as the upstream changelog.
+
+ * Sundry housekeeping changes:
+ - update Standards-Version to 3.7.2 (no changes required).
+ - use ${binary:Version} instead of ${Source-Version}.
+ - remove Emacs cruft from debian/changelog.
+ - use quilt.make.
+
+ -- Adeodato Simó <dato@net.com.org.es> Tue, 29 May 2007 22:12:18 +0200
+
+libao (0.8.6-4) unstable; urgency=low
+
+ * Don't build-depend on libasound2-dev on kfreebsd-amd64.
+ closes: #361484.
+
+ -- Clint Adams <schizo@debian.org> Sun, 9 Apr 2006 12:55:36 -0400
+
+libao (0.8.6-3) unstable; urgency=low
+
+ * Fix FTBFS on kFreeBSD and Hurd (closes: #272373):
+ + don't build-depend on libasound2-dev on kfreebsd-i386 and hurd-i386.
+ + pass "--exclude usr/lib/ao/plugins-2/libalsa09." to dh_install if
+ DEB_HOST_ARCH_OS is not linux.
+
+ -- Adeodato Simó <dato@net.com.org.es> Tue, 17 Jan 2006 23:01:05 +0100
+
+libao (0.8.6-2) unstable; urgency=low
+
+ * Switch maintenance to the Debian Xiph.org Maintainers (alioth/pkg-xiph).
+
+ * Change default device from 'oss' to 'alsa09' in /etc/libao.conf. With the
+ availability of dmix, this should mean that more users get it working out
+ of the box, even if they have a sound daemon running. (Closes: #304421)
+
+ * Move HTML documentation from /usr/share/doc/libao-dev itself to an html/
+ subdirectory of it.
+
+ * Update debian/control:
+ + drop unnecessary build-dependencies on gawk and devscripts.
+ + drop version restriction on debhelper build-dependency, since it's
+ already satisfied with stable.
+
+ * Overhaul debian/rules, and switch to quilt for patch management.
+
+ * debian/patches:
+ + no_debian_subdir.diff: teach Makefile.in and configure that debian/ is
+ not a subdirectory that they should be caring about.
+
+ * Update download URL in debian/copyright.
+
+ * Add debian/watch file.
+
+ * Bumped Standards-Version to 3.6.2 (no changes required).
+
+ * Ship as a non-native package. (Closes: #321624)
+
+ * Drop useless/empty libao2/README.Debian.
+
+ -- Adeodato Simó <dato@net.com.org.es> Tue, 17 Jan 2006 02:07:19 +0100
+
+libao (0.8.6-1.1) unstable; urgency=low
+
+ * Non-maintainer upload to fix RC bug (FTBFS).
+ * Add libxau-dev to Build-Depends, so that the nas plugin is compiled again.
+ (Closes: #319343)
+
+ -- Adeodato Simó <asp16@alu.ua.es> Sat, 06 Aug 2005 16:02:18 +0200
+
+libao (0.8.6-1) unstable; urgency=low
+
+ * New upstream.
+ * libao supports polypaudio in source now and will be rebuilt with support
+ for it enabled once Debian has polyaudio packages.
+
+ -- Christopher L Cheney <ccheney@debian.org> Thu, 17 Mar 2005 20:30:00 -0600
+
+libao (0.8.5-1) unstable; urgency=low
+
+ * New upstream.
+ * Included NMU fixes. (Closes: #225616, #225983)
+
+ -- Christopher L Cheney <ccheney@debian.org> Sun, 28 Mar 2004 22:00:00 -0600
+
+libao (0.8.4-1.1) unstable; urgency=medium
+
+ * NMU
+ * [debian/control] Added build dependencies on libaudio-dev (for NAS) and
+ xlibs-dev (for libXau needed for NAS support). (Closes: #225616)
+
+ -- J.H.M. Dassen (Ray) <jdassen@debian.org> Sat, 3 Jan 2004 14:15:00 +0100
+
+libao (0.8.4-1) unstable; urgency=low
+
+ * New upstream.
+
+ -- Christopher L Cheney <ccheney@debian.org> Fri, 10 Oct 2003 23:00:00 -0500
+
+libao (0.8.3-1.1) unstable; urgency=low
+
+ * Non-maintainer upload sponsored by Joey Hess.
+ * Build-depend on libartsc0-dev and suggest libartsc0 instead of
+ libarts-dev and libarts (Closes: #189160).
+ * GNU config automated update: config.sub (20020621 to 20030509),
+ config.guess (20020529 to 20030519)
+
+ -- Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> Mon, 14 Jul 2003 15:55:31 +0200
+
+libao (0.8.3-1) unstable; urgency=low
+
+ * New upstream. (Closes: #134520, #145785)
+
+ -- Christopher L Cheney <ccheney@debian.org> Fri, 19 Jul 2002 09:00:00 -0500
+
+libao (0.8.2-1) unstable; urgency=low
+
+ * New upstream. (Closes: #110858)
+ * Changed to building alsa 0.9.x plugin instead of obsolete 0.5.x (Closes:
+ #103787)
+ * added autotools target (config.* updater) to rules
+
+ -- Christopher L Cheney <ccheney@debian.org> Mon, 24 Dec 2001 11:00:00 -0600
+
+libao (0.8.1-1) unstable; urgency=high
+
+ * New upstream.
+ * Plugin dir changed. (Closes: #109071, #109532, #108750, #108755, #108790,
+ #109383, #109877, #109383)
+
+ -- Christopher L Cheney <ccheney@debian.org> Wed, 22 Aug 2001 23:00:00 -0500
+
+libao (0.8.0-1) unstable; urgency=low
+
+ * New upstream. (Closes: #101380)
+ * soname changed to 2.
+
+ -- Christopher L Cheney <ccheney@debian.org> Sun, 12 Aug 2001 21:00:00 -0500
+
+libao (0.7.0-1) unstable; urgency=low
+
+ * New upstream.
+ * Fixed versioned depends
+ * Changed clean method to distclean
+
+ -- Christopher L Cheney <ccheney@debian.org> Sun, 17 Jun 2001 20:00:00 -0500
+
+libao (0.6.0-1) unstable; urgency=low
+
+ * New upstream.
+ * Fixed spelling error (closes: #85420)
+
+ -- Christopher L Cheney <ccheney@debian.org> Mon, 26 Feb 2001 08:00:00 -0600
+
+libao (0.5.0-3) unstable; urgency=low
+
+ * Fixed Build-Depends libasound1-dev to only not be on m68k.
+ * Fixed Sections.
+ * Updated to Standards-Version to 3.5.1.0
+ * Added Lintian override file.
+
+ -- Christopher L Cheney <ccheney@debian.org> Sat, 17 Feb 2001 16:45:59 -0600
+
+libao (0.5.0-2) unstable; urgency=low
+
+ * Fixed Build-Depends for archs that do not have libasound1-dev (closes:
+ #78097)
+ * Renamed development library package
+
+ -- Christopher L Cheney <ccheney@debian.org> Sat, 3 Feb 2001 12:30:52 -0600
+
+libao (0.5.0-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Christopher L Cheney <ccheney@debian.org> Sun, 29 Oct 2000 00:39:24 -0500
+
--- libao-1.0.0.orig/debian/libao-dev.doc-base
+++ libao-1.0.0/debian/libao-dev.doc-base
@@ -0,0 +1,8 @@
+Document: libao
+Title: libao documentation
+Abstract: Documentation for libao in HTML form.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libao-dev/html/index.html
+Files: /usr/share/doc/libao-dev/html/*.html
--- libao-1.0.0.orig/debian/libao4.install
+++ libao-1.0.0/debian/libao4.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/ao/plugins-4/*.so
+debian/tmp/usr/lib/libao.so.*
--- libao-1.0.0.orig/debian/libao-dev.install
+++ libao-1.0.0/debian/libao-dev.install
@@ -0,0 +1,9 @@
+debian/tmp/usr/include/ao/*
+debian/tmp/usr/lib/ao/plugins-4/*.a
+debian/tmp/usr/lib/ao/plugins-4/*.la
+debian/tmp/usr/lib/libao.a
+debian/tmp/usr/lib/libao.la
+debian/tmp/usr/lib/libao.so
+debian/tmp/usr/lib/pkgconfig/*
+debian/tmp/usr/share/aclocal/*
+debian/tmp/usr/share/doc/libao-*/* usr/share/doc/libao-dev/html
--- libao-1.0.0.orig/debian/rules
+++ libao-1.0.0/debian/rules
@@ -0,0 +1,20 @@
+#! /usr/bin/make -f
+
+%:
+ dh --with quilt $@
+
+override_dh_strip:
+ dh_strip --dbg-package=libao-dbg
+
+override_dh_shlibdeps:
+ dh_shlibdeps --exclude=/usr/lib/ao/plugins-4
+
+# Put config.sub rules in until http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559098 is fixed
+override_dh_auto_configure:
+ ln -sf /usr/share/misc/config.sub .
+ ln -sf /usr/share/misc/config.guess .
+ dh_auto_configure -- --enable-static
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f config.sub config.guess
--- libao-1.0.0.orig/debian/control
+++ libao-1.0.0/debian/control
@@ -0,0 +1,89 @@
+Source: libao
+Section: libs
+Priority: optional
+Maintainer: Debian Xiph.org Maintainers <pkg-xiph-maint@lists.alioth.debian.org>
+Uploaders: John Francesco Ferlito <johnf@inodes.org>
+Build-Depends: autotools-dev, debhelper (>= 7.0.50~), libasound2-dev [!kfreebsd-i386 !hurd-i386 !kfreebsd-amd64], libaudio-dev, libesd0-dev, libpulse-dev, libxt-dev, libxau-dev, quilt (>= 0.46-7~)
+Standards-Version: 3.8.4
+Vcs-Bzr: http://bzr.debian.org/bzr/pkg-xiph/libao
+Homepage: http://www.xiph.org/ao/
+
+Package: libao4
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libao-common
+Suggests: libasound2, libaudio2, libesd0 | libesd-alsa0, libpulse0
+Replaces: libao-pulse
+Description: Cross Platform Audio Output Library
+ Libao is a cross-platform audio library that allows programs to output audio
+ using a simple API on a wide variety of platforms. It currently supports:
+ .
+ * Null output (handy for testing without a sound device)
+ * WAV files
+ * AU files
+ * OSS (Open Sound System, used on Linux and FreeBSD)
+ * ALSA (Advanced Linux Sound Architecture)
+ * PulseAudio (next generation GNOME sound server)
+ * esd (EsounD or Enlightened Sound Daemon)
+ * and several others.
+
+Package: libao-dev
+Architecture: any
+Section: libdevel
+Depends: ${misc:Depends}, libao4 (= ${binary:Version}), libc6-dev
+Description: Cross Platform Audio Output Library Development
+ Libao is a cross-platform audio library that allows programs to output audio
+ using a simple API on a wide variety of platforms. It currently supports:
+ .
+ * Null output (handy for testing without a sound device)
+ * WAV files
+ * AU files
+ * OSS (Open Sound System, used on Linux and FreeBSD)
+ * ALSA (Advanced Linux Sound Architecture)
+ * PulseAudio (next generation GNOME sound server)
+ * esd (EsounD or Enlightened Sound Daemon)
+ * and several others.
+ .
+ This package contains the header files and static libraries required for
+ developing applications that use libao.
+
+Package: libao-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends}, libao4 (= ${binary:Version})
+Description: Cross Platform Audio Output Library Debug Symbols
+ Libao is a cross-platform audio library that allows programs to output audio
+ using a simple API on a wide variety of platforms. It currently supports:
+ .
+ * Null output (handy for testing without a sound device)
+ * WAV files
+ * AU files
+ * OSS (Open Sound System, used on Linux and FreeBSD)
+ * ALSA (Advanced Linux Sound Architecture)
+ * PulseAudio (next generation GNOME sound server)
+ * esd (EsounD or Enlightened Sound Daemon)
+ * and several others.
+ .
+ This package contains debugging symbols useful for tracing bugs in the
+ libao package.
+
+Package: libao-common
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: libao2
+Replaces: libao4 (<< 1.0.0-2)
+Breaks: libao4 (<< 1.0.0-2)
+Description: Cross Platform Audio Output Library (Common files)
+ Libao is a cross-platform audio library that allows programs to output audio
+ using a simple API on a wide variety of platforms. It currently supports:
+ .
+ * Null output (handy for testing without a sound device)
+ * WAV files
+ * AU files
+ * OSS (Open Sound System, used on Linux and FreeBSD)
+ * ALSA (Advanced Linux Sound Architecture)
+ * PulseAudio (next generation GNOME sound server)
+ * esd (EsounD or Enlightened Sound Daemon)
+ * and several others.
+ .
+ This package contains config files and man pages for libao.
--- libao-1.0.0.orig/debian/libao.conf
+++ libao-1.0.0/debian/libao.conf
@@ -0,0 +1,2 @@
+default_driver=alsa
+quiet
--- libao-1.0.0.orig/debian/libao4.symbols
+++ libao-1.0.0/debian/libao4.symbols
@@ -0,0 +1,20 @@
+libao.so.4 libao4 #MINVER#
+ ao_append_global_option@Base 1.0.0
+ ao_append_option@Base 1.0.0
+ ao_au@Base 1.0.0
+ ao_close@Base 1.0.0
+ ao_default_driver_id@Base 1.0.0
+ ao_driver_id@Base 1.0.0
+ ao_driver_info@Base 1.0.0
+ ao_driver_info_list@Base 1.0.0
+ ao_free_options@Base 1.0.0
+ ao_initialize@Base 1.0.0
+ ao_is_big_endian@Base 1.0.0
+ ao_null@Base 1.0.0
+ ao_open_file@Base 1.0.0
+ ao_open_live@Base 1.0.0
+ ao_play@Base 1.0.0
+ ao_raw@Base 1.0.0
+ ao_read_config_files@Base 1.0.0
+ ao_shutdown@Base 1.0.0
+ ao_wav@Base 1.0.0
--- libao-1.0.0.orig/debian/README.source
+++ libao-1.0.0/debian/README.source
@@ -0,0 +1,3 @@
+The source package uses quilt for the modifications of the upstream source.
+If you want to change something it is best to use the quilt approach as
+documented in /usr/share/doc/quilt/README.source.
--- libao-1.0.0.orig/debian/libao-common.docs
+++ libao-1.0.0/debian/libao-common.docs
@@ -0,0 +1,2 @@
+README
+TODO
--- libao-1.0.0.orig/debian/patches/series
+++ libao-1.0.0/debian/patches/series
@@ -0,0 +1 @@
+snd_audio_bsd
--- libao-1.0.0.orig/debian/patches/snd_audio_bsd
+++ libao-1.0.0/debian/patches/snd_audio_bsd
@@ -0,0 +1,29 @@
+# Fix compilation for sndio on BSD
+# Patched upstream in SVN r17358
+Index: src/plugins/sndio/ao_sndio.c
+===================================================================
+--- a/src/plugins/sndio/ao_sndio.c (revision 17134)
++++ b/src/plugins/sndio/ao_sndio.c (working copy)
+@@ -37,7 +37,7 @@
+ 4
+ };
+
+-typedef struct ao_alsa_internal
++typedef struct ao_sndio_internal
+ {
+ struct sio_hdl *hdl;
+ char *dev;
+@@ -100,10 +100,10 @@
+ par.bits = format->bits;
+ par.rate = format->rate;
+ par.pchan = device->output_channels;
+- if (!sio_setpar(hdl, &par))
++ if (!sio_setpar(internal->hdl, &par))
+ return 0;
+ device->driver_byte_format = AO_FMT_NATIVE;
+- if (!sio_start(hdl))
++ if (!sio_start(internal->hdl))
+ return 0;
+
+ if(!device->inter_matrix){
+
--- libao-1.0.0.orig/debian/source/format
+++ libao-1.0.0/debian/source/format
@@ -0,0 +1 @@
+1.0