File 01-speclet-cmake.patch of Package speclet

diff -ur speclet-v1.0.1.orig/CMakeLists.txt speclet-v1.0.1/CMakeLists.txt
--- speclet-v1.0.1.orig/CMakeLists.txt	2022-06-19 20:19:56.000000000 +1000
+++ speclet-v1.0.1/CMakeLists.txt	2022-06-23 10:15:43.128898778 +1000
@@ -34,7 +34,7 @@
 project(${PROJECT_NAME} VERSION ${CURRENT_VERSION})
 
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
-include(Environment)
+#include(Environment)
 
 # Build Options
 option(JUCE_BUILD_EXTRAS "Build JUCE Extras" OFF)
@@ -43,11 +43,14 @@
 
 # Import dependencies
 #CPMAddPackage("https://math.ryerson.ca/~lkolasa/xxx.tar.gz") # Not online anymore (2022). Now directly included in this repository.
-CPMAddPackage("gh:juce-framework/JUCE#6.1.6")
-CPMAddPackage("https://www.fftw.org/fftw-3.3.10.tar.gz#MD5=8ccbf6a5ea78a16dbc3e1306e234cc5c")
-CPMAddPackage("gh:tcbrindle/span#117fbada0f888e1535e3db20c7c9ddd86db129e2")
+#CPMAddPackage("gh:juce-framework/JUCE#6.1.6")
+#CPMAddPackage("https://www.fftw.org/fftw-3.3.10.tar.gz#MD5=8ccbf6a5ea78a16dbc3e1306e234cc5c")
+#CPMAddPackage("gh:tcbrindle/span#117fbada0f888e1535e3db20c7c9ddd86db129e2")
 # CPMAddPackage("gh:Neargye/magic_enum#v0.8.0") # simplifies enum handling, not yet needed
 
+find_package(PkgConfig REQUIRED)
+pkg_check_modules (fftw REQUIRED fftw3)
+
 # If you've installed JUCE somehow (via a package manager, or directly using the CMake install
 # target), you'll need to tell this project that it depends on the installed copy of JUCE. If you've
 # included JUCE directly in your source tree (perhaps as a submodule), you'll need to tell CMake to
@@ -57,10 +60,12 @@
 # or
 # add_subdirectory(${JUCE_SOURCE_DIR})      # If you've put JUCE in a subdirectory called JUCE
 
+find_package(JUCE CONFIG REQUIRED)
+
 # If you are building a VST2 or AAX plugin, CMake needs to be told where to find these SDKs on your
 # system. This setup should be done before calling `juce_add_plugin`.
 
-# juce_set_vst2_sdk_path(...)
+juce_set_vst2_sdk_path(/usr/include)
 # juce_set_aax_sdk_path(...)
 
 # `juce_add_plugin` adds a static library target with the name passed as the first argument
@@ -75,8 +80,8 @@
     COMPANY_WEBSITE "https://github.com/JohT/speclet" # Specify the website for the plugin
     DESCRIPTION "Audio Spectrum Analyzer using Fourier- and Wavelet-Transformation (v${CURRENT_VERSION})" # A short description of the plugin
     # VERSION 0.9.0                             # Set this if the plugin version is different to the project version
-    FORMATS VST3 AU Standalone                  # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
-
+    FORMATS VST3 VST LV2 Standalone                  # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
+    LV2_URI "https://github.com/JohT/speclet"
     PLUGIN_MANUFACTURER_CODE "JohT"             # A four-character manufacturer id with at least one upper-case character
     PLUGIN_CODE "SpcJ"                          # A unique four-character plugin id with exactly one upper-case character
                                                 # GarageBand 10.3 requires the first letter to be upper-case, and the remaining letters to be lower-case
@@ -129,10 +134,10 @@
 endif()
 
 # Import span header to include with #include "tcb/span.hpp"
-if (span_ADDED)
-    include_directories("${PROJECT_NAME}" PRIVATE "${span_SOURCE_DIR}/include")
+#if (span_ADDED)
+    include_directories("${PROJECT_NAME}" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/lib/span/include")
     message(VERBOSE "tcb span headers directory included for all targets: ${span_SOURCE_DIR}/include")
-endif()
+#endif()
 
 # Import magic_enum header to include with #include "magic_enum.hpp"
 #if (magic_enum_ADDED)
@@ -202,4 +207,4 @@
         juce::juce_recommended_warning_flags)
 
 # Add tests
-add_subdirectory(test)
\ No newline at end of file
+#add_subdirectory(test)
Only in speclet-v1.0.1: span-1647862971.117fbad.tar.gz
openSUSE Build Service is sponsored by