[packages/libopenmpt] add portaudio bcond
atler
atler at pld-linux.org
Wed Feb 22 23:32:53 CET 2023
commit bcc266194fcedbaf90f68599e6fa3ba70be4bcfd
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Feb 22 23:32:11 2023 +0100
add portaudio bcond
libopenmpt.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/libopenmpt.spec b/libopenmpt.spec
index ed01d4b..f3d6bbd 100644
--- a/libopenmpt.spec
+++ b/libopenmpt.spec
@@ -2,6 +2,7 @@
# Conditional build:
%bcond_without apidocs # API documentation (doxygen based)
%bcond_without openmpt123 # openmpt123 CLI player
+%bcond_without portaudio # PortAudio support
%bcond_with sdl # SDL2 output in openmpt123
%bcond_without static_libs # don't build static libraries
%bcond_without tests # unit tests
@@ -29,8 +30,10 @@ BuildRequires: zlib-devel
%{?with_sdl:BuildRequires: SDL2-devel >= 2.0.4}
BuildRequires: flac-devel >= 1.3.0
BuildRequires: libsndfile-devel
+%if %{with portaudio}
BuildRequires: portaudio-devel >= 19
BuildRequires: portaudio-c++-devel >= 19
+%endif
BuildRequires: pulseaudio-devel
%endif
Requires: libmpg123 >= 1.14.0
@@ -104,6 +107,8 @@ libopenmpt.
--disable-examples \
%{!?with_openmpt123:--disable-openmpt123} \
%{!?with_static_libs:--disable-static} \
+ %{!?with_portaudio:--without-portaudio} \
+ %{!?with_portaudio:--without-portaudiocpp} \
%{?with_sdl:--with-sdl2}
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libopenmpt.git/commitdiff/bcc266194fcedbaf90f68599e6fa3ba70be4bcfd
More information about the pld-cvs-commit
mailing list