-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework juce packaging, split 6.0, 6.1 and 7.0 variants
Signed-off-by: falkTX <falktx@falktx.com>
- Loading branch information
Showing
47 changed files
with
428 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distrho-juce-6.0 (6:6.0.8+git2023-12-25-1kxstudio3) focal; urgency=medium | ||
|
||
* Initial package | ||
|
||
-- falkTX <falktx@falktx.com> Mon, 25 Dec 2023 14:29:55 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ho-juce6/debian/distrho-juce6-dev.install → ...e-6.0/debian/distrho-juce-6.0-dev.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/opt/kxstudio/include | ||
/opt/kxstudio/lib | ||
extras/Build/CMake/lv2_ttl_generator.c /opt/kxstudio/lib/cmake/JUCE6/ | ||
extras/Build/CMake/lv2_ttl_generator.c /opt/kxstudio/lib/cmake/JUCE-6.0.8/ |
1 change: 1 addition & 0 deletions
1
sources/libs/distrho-juce-6.0/debian/distrho-juce-6.0-dev.links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/opt/kxstudio/lib/cmake/JUCE-6.0.8/JUCEConfig.cmake /opt/kxstudio/lib/cmake/JUCE-6.0.8/JUCE-6.0.8Config.cmake |
File renamed without changes.
File renamed without changes.
84 changes: 84 additions & 0 deletions
84
sources/libs/distrho-juce-6.0/debian/patches/03_versioned-juceaide.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
diff --git a/extras/Build/CMake/JUCEConfig.cmake.in b/extras/Build/CMake/JUCEConfig.cmake.in | ||
index 3e5c97d..f2af3a8 100644 | ||
--- a/extras/Build/CMake/JUCEConfig.cmake.in | ||
+++ b/extras/Build/CMake/JUCEConfig.cmake.in | ||
@@ -20,10 +20,12 @@ | ||
|
||
@PACKAGE_INIT@ | ||
|
||
-if(NOT TARGET juce::juceaide) | ||
- add_executable(juce::juceaide IMPORTED) | ||
- set_target_properties(juce::juceaide PROPERTIES | ||
- IMPORTED_LOCATION "@PACKAGE_JUCEAIDE_PATH@") | ||
+set(PACKAGE_PREFIX_DIR "@CMAKE_INSTALL_PREFIX@") | ||
+ | ||
+if(NOT TARGET juceaide60) | ||
+ add_executable(juceaide60 IMPORTED) | ||
+ set_target_properties(juceaide60 PROPERTIES | ||
+ IMPORTED_LOCATION "${PACKAGE_PREFIX_DIR}/bin/juceaide60") | ||
endif() | ||
|
||
check_required_components("@PROJECT_NAME@") | ||
diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake | ||
index 23b56c4..0d8fd93 100644 | ||
--- a/extras/Build/CMake/JUCEUtils.cmake | ||
+++ b/extras/Build/CMake/JUCEUtils.cmake | ||
@@ -414,7 +414,7 @@ function(_juce_add_au_resource_fork shared_code_target au_target) | ||
# In the end, it's simplest to generate a special single-purpose appconfig just for the | ||
# resource compiler. | ||
add_custom_command(OUTPUT "${secret_au_plugindefines}" | ||
- COMMAND juce::juceaide auplugindefines "${defs_file}" "${secret_au_plugindefines}" | ||
+ COMMAND juceaide60 auplugindefines "${defs_file}" "${secret_au_plugindefines}" | ||
DEPENDS "${defs_file}" | ||
VERBATIM) | ||
|
||
@@ -856,7 +856,7 @@ function(juce_add_binary_data target) | ||
list(APPEND binary_file_names "${juce_binary_data_folder}/${JUCE_ARG_HEADER_NAME}") | ||
|
||
add_custom_command(OUTPUT ${binary_file_names} | ||
- COMMAND juce::juceaide binarydata "${JUCE_ARG_NAMESPACE}" "${JUCE_ARG_HEADER_NAME}" | ||
+ COMMAND juceaide60 binarydata "${JUCE_ARG_NAMESPACE}" "${JUCE_ARG_HEADER_NAME}" | ||
${juce_binary_data_folder} ${JUCE_ARG_SOURCES} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} | ||
DEPENDS ${JUCE_ARG_SOURCES} | ||
@@ -953,7 +953,7 @@ function(juce_generate_juce_header target) | ||
set(extra_args) | ||
|
||
add_custom_command(OUTPUT "${juce_header}" | ||
- COMMAND juce::juceaide header "${defs_file}" "${juce_header}" ${extra_args} | ||
+ COMMAND juceaide60 header "${defs_file}" "${juce_header}" ${extra_args} | ||
DEPENDS "${defs_file}" | ||
VERBATIM) | ||
endfunction() | ||
@@ -961,11 +961,11 @@ endfunction() | ||
# ================================================================================================== | ||
|
||
function(_juce_execute_juceaide) | ||
- if(NOT TARGET juce::juceaide) | ||
+ if(NOT TARGET juceaide60) | ||
message(FATAL_ERROR "The juceaide target does not exist") | ||
endif() | ||
|
||
- get_target_property(juceaide_location juce::juceaide IMPORTED_LOCATION) | ||
+ get_target_property(juceaide_location juceaide60 IMPORTED_LOCATION) | ||
|
||
if(NOT EXISTS "${juceaide_location}") | ||
message(FATAL_ERROR "juceaide was imported, but it doesn't exist!") | ||
@@ -1095,7 +1095,7 @@ function(_juce_configure_bundle source_target dest_target) | ||
MACOSX_BUNDLE_INFO_PLIST "${this_output_plist}") | ||
|
||
add_custom_command(OUTPUT "${this_output_pkginfo}" | ||
- COMMAND juce::juceaide pkginfo "${juce_kind_string}" "${this_output_pkginfo}" | ||
+ COMMAND juceaide60 pkginfo "${juce_kind_string}" "${this_output_pkginfo}" | ||
VERBATIM) | ||
|
||
set(output_folder "$<TARGET_BUNDLE_CONTENT_DIR:${dest_target}>") | ||
@@ -1187,7 +1187,7 @@ function(_juce_add_resources_rc source_target dest_target) | ||
set(resource_rc_file "${juce_library_code}/resources.rc") | ||
|
||
add_custom_command(OUTPUT "${resource_rc_file}" | ||
- COMMAND juce::juceaide rcfile "${input_info_file}" "${resource_rc_file}" | ||
+ COMMAND juceaide60 rcfile "${input_info_file}" "${resource_rc_file}" | ||
${dependency} | ||
VERBATIM) | ||
|
2 changes: 1 addition & 1 deletion
2
...6/debian/patches/04_copy-to-destdir.patch → ...0/debian/patches/04_copy-to-destdir.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
01_kxstudio-build.patch | ||
02_skip-alsa-dependency.patch | ||
03_versioned-juceaide.patch | ||
04_copy-to-destdir.patch | ||
05_disable-xinerama.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distrho-juce-6.1 (6:6.1.6+git2023-12-25-1kxstudio2) focal; urgency=medium | ||
|
||
* Initial package | ||
|
||
-- falkTX <falktx@falktx.com> Mon, 25 Dec 2023 14:29:55 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Source: distrho-juce-6.1 | ||
Section: devel | ||
Priority: optional | ||
Maintainer: falkTX <falktx@falktx.com> | ||
Build-Depends: debhelper-compat (= 13), | ||
kxstudio-build-scripts, | ||
cmake, | ||
pkg-config, | ||
libfreetype6-dev, | ||
libgl1-mesa-dev | libglvnd-dev, | ||
libx11-dev, | ||
libxcomposite-dev, | ||
libxcursor-dev, | ||
libxrandr-dev, | ||
libxrender-dev | ||
Standards-Version: 4.5.0 | ||
Homepage: https://github.com/DISTRHO/JUCE/ | ||
Rules-Requires-Root: no | ||
|
||
Package: distrho-juce-6.1-bin | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: cross-platform C++ framework with DISTRHO/KXStudio changes | ||
JUCE is an open-source cross-platform C++ application framework used for | ||
rapidly developing high quality desktop and mobile applications, | ||
including LV2, VST, AU (and AUv3), RTAS and AAX audio plug-ins. | ||
. | ||
This package provides the DISTRHO/KXStudio fork of JUCE, version 6.1. | ||
|
||
Package: distrho-juce-6.1-dev | ||
Architecture: all | ||
Depends: ${misc:Depends}, distrho-juce-6.1-bin, | ||
cmake, | ||
pkg-config, | ||
libfreetype6-dev, | ||
libgl1-mesa-dev | libglvnd-dev, | ||
libx11-dev, | ||
libxcomposite-dev, | ||
libxcursor-dev, | ||
libxrandr-dev, | ||
libxrender-dev | ||
Description: cross-platform C++ framework with DISTRHO/KXStudio changes | ||
JUCE is an open-source cross-platform C++ application framework used for | ||
rapidly developing high quality desktop and mobile applications, | ||
including LV2, VST, AU (and AUv3), RTAS and AAX audio plug-ins. | ||
. | ||
This package provides the DISTRHO/KXStudio fork of JUCE, version 6.1. |
1 change: 1 addition & 0 deletions
1
sources/libs/distrho-juce-6.1/debian/distrho-juce-6.1-bin.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/opt/kxstudio/bin |
3 changes: 3 additions & 0 deletions
3
sources/libs/distrho-juce-6.1/debian/distrho-juce-6.1-dev.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/opt/kxstudio/include | ||
/opt/kxstudio/lib | ||
extras/Build/CMake/lv2_ttl_generator.c /opt/kxstudio/lib/cmake/JUCE-6.1.6/ |
1 change: 1 addition & 0 deletions
1
sources/libs/distrho-juce-6.1/debian/distrho-juce-6.1-dev.links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/opt/kxstudio/lib/cmake/JUCE-6.1.6/JUCEConfig.cmake /opt/kxstudio/lib/cmake/JUCE-6.1.6/JUCE-6.1.6Config.cmake |
2 changes: 1 addition & 1 deletion
2
...e7/debian/patches/01_kxstudio-build.patch → ....1/debian/patches/01_kxstudio-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sources/libs/distrho-juce-6.1/debian/patches/02_skip-alsa-dependency.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/modules/juce_audio_devices/juce_audio_devices.h b/modules/juce_audio_devices/juce_audio_devices.h | ||
index 0cc0a4496..f0eb557e5 100644 | ||
--- a/modules/juce_audio_devices/juce_audio_devices.h | ||
+++ b/modules/juce_audio_devices/juce_audio_devices.h | ||
@@ -41,7 +41,6 @@ | ||
dependencies: juce_audio_basics, juce_events | ||
OSXFrameworks: CoreAudio CoreMIDI AudioToolbox | ||
iOSFrameworks: CoreAudio CoreMIDI AudioToolbox AVFoundation | ||
- linuxPackages: alsa | ||
mingwLibs: winmm | ||
|
||
END_JUCE_MODULE_DECLARATION | ||
@@ -105,7 +104,7 @@ | ||
Enables ALSA audio devices (Linux only). | ||
*/ | ||
#ifndef JUCE_ALSA | ||
- #define JUCE_ALSA 1 | ||
+ #define JUCE_ALSA 0 | ||
#endif | ||
|
||
/** Config: JUCE_JACK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
sources/libs/distrho-juce-6.1/debian/patches/04_copy-to-destdir.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake | ||
index 86af138..07c279c 100644 | ||
--- a/extras/Build/CMake/JUCEUtils.cmake | ||
+++ b/extras/Build/CMake/JUCEUtils.cmake | ||
@@ -117,9 +117,9 @@ function(_juce_set_default_properties) | ||
set_property(GLOBAL PROPERTY JUCE_VST3_COPY_DIR "${prefix}/VST3") | ||
set_property(GLOBAL PROPERTY JUCE_AAX_COPY_DIR "${prefix}/Avid/Audio/Plug-Ins") | ||
elseif((CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_SYSTEM_NAME MATCHES ".*BSD")) | ||
- set_property(GLOBAL PROPERTY JUCE_VST_COPY_DIR "$ENV{HOME}/.vst") | ||
- set_property(GLOBAL PROPERTY JUCE_VST3_COPY_DIR "$ENV{HOME}/.vst3") | ||
- set_property(GLOBAL PROPERTY JUCE_LV2_COPY_DIR "$ENV{HOME}/.lv2") | ||
+ set_property(GLOBAL PROPERTY JUCE_VST_COPY_DIR "$ENV{DESTDIR}/usr/lib/vst") | ||
+ set_property(GLOBAL PROPERTY JUCE_VST3_COPY_DIR "$ENV{DESTDIR}/usr/lib/vst3") | ||
+ set_property(GLOBAL PROPERTY JUCE_LV2_COPY_DIR "$ENV{DESTDIR}/usr/lib/lv2") | ||
endif() | ||
endfunction() | ||
|
Oops, something went wrong.