libao4 stable port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: libao4
Version: 1.1.0
Revision: 1
Maintainer: Max Horn

Depends: %N-shlibs (= %v-%r), macosx
Conflicts: libao2
Replaces: libao2
BuildDepends: pkgconfig (>= 0.21-1), fink (>= 0.24.12)
BuildDependsOnly: True

Source: http://downloads.xiph.org/releases/ao/libao-%v.tar.gz
Source-MD5: 2b2508c29bc97e4dc218fa162cf883c8
PatchFile: %n.patch
PatchFile-MD5: d13ecfbb673f3f8f12a69eabba14e488

SetCPPFLAGS: -DAO_SYSTEM_CONFIG='"%p/etc/libao.conf"'
ConfigureParams: <<
--mandir=%p/share/man \
--disable-dependency-tracking \
--disable-arts \
--disable-esd \
--disable-oss \
--disable-X
<<
InstallScript: <<
make install mandir=%p/share/man DESTDIR=%d

# Strip bogus inherited_linker_flags from plugin
perl -pi -e "s/inherited_linker_flags=.*$/inherited_linker_flags=''/" %i/lib/ao/plugins-4/libmacosx.la

# Install a default config files
mkdir -p %i/etc
echo "default_driver=macosx" >> %i/etc/libao.conf
<<
ConfFiles: %p/etc/libao.conf
DocFiles: README COPYING AUTHORS
SplitOff: <<
Package: %N-shlibs
Files: lib/libao.*.dylib lib/ao/plugins-4/*.so
Shlibs: %p/lib/libao.4.dylib 5.0.0 %n (>= 1.0.0-1)
DocFiles: README COPYING AUTHORS
<<

Description: Audio output library
DescDetail: <<
libao is a way to easily add cross-platform audio output to your program.
Output devices are implemented as dynamic plugins. The Fink package
only builds the macosx plugin.
<<
DescPort: <<
- Uses patch to change documentation location.
<<
Homepage: http://www.xiph.org/ao/
License: GPL

libao4 stable port .patch

diff -ruN libao-1.1.0/doc/Makefile.in libao-1.1.0-patched/doc/Makefile.in
--- libao-1.1.0/doc/Makefile.in 2011-02-22 23:54:29.000000000 +0100
+++ libao-1.1.0-patched/doc/Makefile.in 2011-02-23 15:22:16.000000000 +0100
@@ -202,7 +202,7 @@
build_vendor = @build_vendor@
datadir = @datadir@
datarootdir = @datarootdir@
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
+docdir = $(datadir)/doc/$(PACKAGE)
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@

libao4 _unstable_ port .patch