Le Mon, Mar 11, 2024 at 01:48:22PM +0000, Klemens Nanni a écrit :
> You can use CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_PIPEWIRE=Yes
> instead of a patch, that ought to work equally well.

right, didn't know about it, but seems to work fine after testing here,
i dont see pipewire/pulse/portaudio/jack being detected with the
attached diff.

? baresip-3.4.0-libbaresip.so.0.0
? baresip-3.6.0-libbaresip.so.0.1
? notes.txt
? patch-cmake_modules_cmake
Index: Makefile
===================================================================
RCS file: /cvs/ports/telephony/baresip/baresip/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile    21 Oct 2023 08:36:19 -0000      1.38
+++ Makefile    11 Mar 2024 14:00:39 -0000
@@ -33,6 +33,10 @@
                        telephony/spandsp
 LIB_DEPENDS-gtk =      x11/gtk+3,-main
 RUN_DEPENDS-gtk =      telephony/baresip/baresip,-main
+CONFIGURE_ARGS +=      -DCMAKE_DISABLE_FIND_PACKAGE_JACK=Yes \
+                       -DCMAKE_DISABLE_FIND_PACKAGE_PULSE=Yes \
+                       -DCMAKE_DISABLE_FIND_PACKAGE_PORTAUDIO=Yes \
+                       -DCMAKE_DISABLE_FIND_PACKAGE_PIPEWIRE=Yes
 
 post-extract:
        # revert https://github.com/baresip/baresip/pull/2422
Index: patches/patch-cmake_modules_cmake
===================================================================
RCS file: patches/patch-cmake_modules_cmake
diff -N patches/patch-cmake_modules_cmake
--- patches/patch-cmake_modules_cmake   1 Sep 2023 15:56:49 -0000       1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-disable other backends
-Index: cmake/modules.cmake
---- cmake/modules.cmake.orig
-+++ cmake/modules.cmake
-@@ -12,14 +12,11 @@ find_package(GIO)
- find_package(GST)
- find_package(GTK3)
- find_package(GZRTP)
--find_package(JACK)
- find_package(MOSQUITTO)
- find_package(MPA)
- find_package(OPENSLES)
- find_package(OPUS)
- find_package(PNG)
--find_package(PORTAUDIO)
--find_package(PULSE)
- find_package(PIPEWIRE)
- find_package(SDL)
- find_package(SNDFILE)

Reply via email to