#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=libvorbis
pkgver=aotuv.b5.7
pkgrel=3tm
source=("http://www.geocities.jp/aoyoume/aotuv/source_code/libvorbis-aotuv_b5.7.tar.bz2")
url="http://www.geocities.jp/aoyoume/aotuv/"
docs=('aoTuV_README-1st.txt' 'aoTuV_technical.txt' 'AUTHORS' 'COPYING' 'todo.txt')

# you can use flags for an optimized build, e.g.:
#CFLAGS="-O3 -march=k8 -msse3"
#CXXFLAGS="-O3 -march=k8 -msse3"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - (Ogg Vorbis library)"
"This library supports the Vorbis General Audio Compression Codec"
"(commonly known as Ogg Vorbis).  Ogg Vorbis is a fully open,"
"non-proprietary, patent-and-royalty-free, general-purpose compressed"
"audio format for audio and music at fixed and variable bitrates."
""
"This is the aoTuV version, recommended by hydrogenaudio.org. For more"
"informations about the aoTuV version take a look at:"
"http://wiki.hydrogenaudio.org/index.php?title=Recommended_Ogg_Vorbis"
)

build() {
	cd $startdir/src/aotuv-b5.7_20090301
	chmod +x autogen.sh configure
	sed -i "/white-xifish\.png\ \\\/d" doc/Makefile*
	./autogen.sh || return 1
	sed -i 's#CFLAGS="-O20#CFLAGS="-O2#' configure || return 1
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --disable-static || return 1
	make -j $numjobs || return 1
	make DESTDIR=$startdir/pkg install || return 1
	rm -R $startdir/pkg/usr/share/doc
}