NAME="libsndfile"
VERSION=1.2.0
RELEASE=1
LICENSE="LGPL-2.1-only"
CATEGORY="Libs"
SUMMARY="Sampled audio data library"
DESCRIPTION="libsndfile is a library of C routines for reading and writing
files containing sampled audio data."
HOMEPAGE="https://www.mega-nerd.com/libsndfile/"
SRC_URI="https://github.com/libsndfile/libsndfile/releases/download/${VERSION}/${NAME}-${VERSION}.tar.xz"
PATCH_URI="1.0.23-oss.patch"

PKG_NAMES="${NAME}1 ${NAME}-devel ${NAME}-utils"
libsndfile1_CONTENTS='usr/bin/*-1.dll usr/share/doc/'
libsndfile1_OBSOLETES="libsndfile" # no longer required by packaging tools
libsndfile_devel_CONTENTS='usr/include/ usr/lib/'
libsndfile_utils_CATEGORY="Audio"
libsndfile_utils_SUMMARY="${SUMMARY% *} utilities"
libsndfile_utils_CONTENTS='usr/bin/*.exe usr/share/man/man1/'

ACLOCAL_FLAGS="-I M4"
CYGCONF_ARGS="
	--disable-alsa
	--enable-sqlite
	--disable-gcc-pipe
	--disable-gcc-werror
"
MAKEOPTS+=" htmldocdir=/usr/share/doc/${NAME}/html"

BUILD_REQUIRES="flac-devel libogg-devel libmp3lame-devel libmpg123-devel libmpg123-devel libvorbis-devel"
