From 16c5f5fd5c4c4ee6b362dfc7951b8b0ff8d01752 Mon Sep 17 00:00:00 2001 From: hazen2215 Date: Wed, 22 Feb 2023 04:42:14 +0900 Subject: [PATCH] timidity: build on musl without broken alsa audio --- srcpkgs/timidity/template | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/srcpkgs/timidity/template b/srcpkgs/timidity/template index 4488d67ad953..9efb53716ee8 100644 --- a/srcpkgs/timidity/template +++ b/srcpkgs/timidity/template @@ -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