timidity: build on musl without broken alsa audio

This commit is contained in:
hazen2215 2023-02-22 04:42:14 +09:00 committed by Duncan Overbruck
parent 903c445712
commit d7e614a47e

View file

@ -1,12 +1,10 @@
# Template file for 'timidity'
pkgname=timidity
version=2.15.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-default-path=/etc/timidity
--enable-audio=alsa,oss,ao,vorbis,flac --enable-server
--enable-alsaseq=yes --enable-network
--enable-gtk --enable-ncurses"
configure_args="--with-default-path=/etc/timidity --enable-server
--enable-alsaseq=yes --enable-network --enable-gtk --enable-ncurses"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel libvorbis-devel libao-devel libflac-devel
libX11-devel gtk+-devel ncurses-devel"
@ -17,9 +15,12 @@ homepage="http://timidity.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/timidity/TiMidity++-${version}.tar.xz"
checksum=9eaf4fadb0e19eb8e35cd4ac16142d604c589e43d0e8798237333697e6381d39
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="uses alsa's pcm_old.h, which depends on symbol versioning to work";;
esac
# disable alsa audio on musl since it uses pcm_old.h, which depends on symbol versioning to work
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" --enable-audio=oss,ao,vorbis,flac"
else
configure_args+=" --enable-audio=alsa,oss,ao,vorbis,flac"
fi
if [ "$CROSS_BUILD" ]; then
# check for va_copy runs test program; assume no for target