git: c486a2e17b24 - main - audio/re: Fix build on 15-CURRENT and 14-STABLE

From: Thomas Zander <riggs_at_FreeBSD.org>
Date: Sun, 04 Feb 2024 10:22:29 UTC
The branch main has been updated by riggs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c486a2e17b24d1a5ad642eab46f6303bd8b785f7

commit c486a2e17b24d1a5ad642eab46f6303bd8b785f7
Author:     Thomas Zander <riggs@FreeBSD.org>
AuthorDate: 2024-02-04 10:16:48 +0000
Commit:     Thomas Zander <riggs@FreeBSD.org>
CommitDate: 2024-02-04 10:22:27 +0000

    audio/re: Fix build on 15-CURRENT and 14-STABLE
    
    Details:
    - Recent changes on head[1] and stable/14[2] cause the resolv detection
      in audio/re to add -lresolv to the linker flags, which is not
      available on FreeBSD.
    
    [1] https://cgit.freebsd.org/src/commit/?id=58cf91d3b72a01777bacf72d66a648a744ae3143
    [2] https://cgit.freebsd.org/src/commit/?h=stable/14&id=5a70219b209f4ba8e8244d3886d364da4c00e4df
    
    Reported by:    Herbert J. Skuhra <herbert@gojira.at>
---
 audio/re/files/patch-cmake_re-config.cmake | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/audio/re/files/patch-cmake_re-config.cmake b/audio/re/files/patch-cmake_re-config.cmake
new file mode 100644
index 000000000000..62460acc807d
--- /dev/null
+++ b/audio/re/files/patch-cmake_re-config.cmake
@@ -0,0 +1,10 @@
+--- cmake/re-config.cmake.orig	2024-01-31 07:29:02 UTC
++++ cmake/re-config.cmake
+@@ -56,7 +56,6 @@ if(HAVE_RESOLV)
+   check_symbol_exists(res_ninit resolv.h HAVE_RESOLV)
+ endif()
+ if(HAVE_RESOLV)
+-  set(RESOLV_LIBRARY resolv)
+   list(APPEND RE_DEFINITIONS HAVE_RESOLV)
+ else()
+   set(RESOLV_LIBRARY)