File new_buildsystem_fix.patch of Package obs-studio-next
diff --git a/CMakePresets.json b/CMakePresets.json
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -8,7 +8,7 @@
"configurePresets": [
{
"name": "environmentVars",
- "hidden": true,
+ "hidden": false,
"cacheVariables": {
"RESTREAM_CLIENTID": {"type": "STRING", "value": "$penv{RESTREAM_CLIENTID}"},
"RESTREAM_HASH": {"type": "STRING", "value": "$penv{RESTREAM_HASH}"},
@@ -89,6 +89,41 @@
}
},
{
+ "name": "opensuse",
+ "displayName": "openSUSE",
+ "description": "obs-studio for openSUSE",
+ "inherits": ["environmentVars"],
+ "condition": {
+ "type": "equals",
+ "lhs": "${hostSystemName}",
+ "rhs": "Linux"
+ },
+ "binaryDir": "${sourceDir}/build_opensuse",
+ "generator": "Ninja",
+ "warnings": {"dev": true, "deprecated": true},
+ "cacheVariables": {
+ "CMAKE_BUILD_TYPE": "Debug",
+ "CMAKE_INSTALL_LIBDIR": "lib64",
+ "OBS_CMAKE_VERSION": {"type": "STRING", "value": "4.0.2"},
+ "ENABLE_AJA": false,
+ "ENABLE_NATIVE_NVENC": true,
+ "ENABLE_VLC": true,
+ "ENABLE_WAYLAND": true,
+ "ENABLE_WEBRTC": true,
+ "ENABLE_BROWSER": true
+ }
+ },
+ {
+ "name": "opensuse-ci",
+ "inherits": ["opensuse"],
+ "cacheVariables": {
+ "CMAKE_BUILD_TYPE": "RelWithDebInfo",
+ "CMAKE_COMPILE_WARNING_AS_ERROR": true,
+ "CMAKE_COLOR_DIAGNOSTICS": true,
+ "ENABLE_CCACHE": true
+ }
+ },
+ {
"name": "windows-x64",
"displayName": "Windows x64",
"description": "Default Windows build (x64)",
diff --git a/libobs/pkgconfig/libobs.pc.in b/libobs/pkgconfig/libobs.pc.in
--- a/libobs/pkgconfig/libobs.pc.in
+++ b/libobs/pkgconfig/libobs.pc.in
@@ -1,1 +1,1 @@
-prefix=@CMAKE_INSTALL_PREFIX@
+prefix=/usr
@@ -3,1 +3,1 @@
-libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+libdir=/usr/lib64
@@ -4,1 +4,1 @@
-includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/obs
+includedir=/usr/include/obs
@@ -8,1 +8,1 @@
-Version: @OBS_VERSION_CANONICAL@
+Version: 31.1.0
@@ -9,1 +9,1 @@
-Cflags: -I${includedir} @_TARGET_DEFINITIONS@ @_TARGET_OPTIONS@ @_LINKED_DEFINITIONS@ @_LINKED_OPTIONS@
+Cflags: -I${includedir} -DHAVE_OBSCONFIG_H -mmmx -msse -msse2
@ -10,1 +10,1 @@
-Libs: -L${libdir} -lobs @_LINKED_LIBRARIES@
+Libs: -L${libdir} -lobs