commit 88bf7bfe31346db4f4fcad8545c952fc6643b42f
Author: Jakub Bogusz <[email protected]>
Date:   Sun Dec 1 10:16:27 2024 +0100

    - patch to build bundled libfmt statically

 OpenAL-bundled-fmt.patch | 11 +++++++++++
 OpenAL.spec              |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/OpenAL.spec b/OpenAL.spec
index 5cbc69b..d1f3e79 100644
--- a/OpenAL.spec
+++ b/OpenAL.spec
@@ -23,6 +23,7 @@ Group:                Libraries
 Source0:       
https://openal-soft.org/openal-releases/openal-soft-%{version}.tar.bz2
 # Source0-md5: 21ab0cb013229b3145db8a6b0b8062ad
 Patch0:                %{name}-nosse.patch
+Patch1:                %{name}-bundled-fmt.patch
 URL:           https://www.openal.org/
 %{?with_sdl:BuildRequires:     SDL2-devel >= 2}
 %{?with_alsa:BuildRequires:    alsa-lib-devel}
@@ -94,6 +95,7 @@ Graficzny interfejs do konfiguracji biblioteki OpenAL.
 %prep
 %setup -q -n openal-soft-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %cmake -B build \
diff --git a/OpenAL-bundled-fmt.patch b/OpenAL-bundled-fmt.patch
new file mode 100644
index 0000000..33314cd
--- /dev/null
+++ b/OpenAL-bundled-fmt.patch
@@ -0,0 +1,11 @@
+--- openal-soft-1.24.1/fmt-11.0.2/CMakeLists.txt.orig  2024-11-28 
04:21:16.000000000 +0100
++++ openal-soft-1.24.1/fmt-11.0.2/CMakeLists.txt       2024-12-01 
09:08:16.507841204 +0100
+@@ -66,7 +66,7 @@ add_headers(FMT_HEADERS args.h base.h ch
+                         xchar.h)
+ set(FMT_SOURCES src/format.cc src/os.cc)
+ 
+-add_library(alsoft.fmt ${FMT_SOURCES} ${FMT_HEADERS} README.md ChangeLog.md)
++add_library(alsoft.fmt STATIC ${FMT_SOURCES} ${FMT_HEADERS} README.md 
ChangeLog.md)
+ add_library(alsoft::fmt ALIAS alsoft.fmt)
+ 
+ if (cxx_std_11 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/OpenAL.git/commitdiff/88bf7bfe31346db4f4fcad8545c952fc6643b42f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to