[lilv] update to 0.24.24 (#42537)

This commit is contained in:
jim wang 2024-12-14 15:59:15 +00:00 committed by GitHub
parent 3b57fb2e1f
commit b545373a9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
24 changed files with 158 additions and 340 deletions

View File

@ -1,96 +0,0 @@
cmake_minimum_required(VERSION 3.17)
project(lilv C)
find_package(lv2 CONFIG REQUIRED)
find_package(serd CONFIG REQUIRED)
find_package(sord CONFIG REQUIRED)
find_package(sratom CONFIG REQUIRED)
add_library(lilv
src/collections.c
src/filesystem.c
src/instance.c
src/lib.c
src/node.c
src/plugin.c
src/pluginclass.c
src/port.c
src/query.c
src/scalepoint.c
src/state.c
src/ui.c
src/util.c
src/world.c
src/zix/tree.c
)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "MinGW")
set(LILV_PATH_SEP [[;]])
set(LILV_DIR_SEP [[\\]])
set(LV2_PATH [[%APPDATA%\\LV2;%COMMONPROGRAMFILES%\\LV2]])
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(LILV_PATH_SEP ":")
set(LILV_DIR_SEP "/")
set(LV2_PATH "~/Library/Audio/Plug-Ins/LV2:~/.lv2:/usr/local/lib/lv2:/usr/lib/lv2:/Library/Audio/Plug-Ins/LV2")
else()
set(LILV_PATH_SEP ":")
set(LILV_DIR_SEP "/")
set(LV2_PATH "~/.lv2:/usr/lib/lv2:/usr/local/lib/lv2")
endif()
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/lilv_config.h.in" [[
#define LILV_PATH_SEP "@LILV_PATH_SEP@"
#define LILV_DIR_SEP "@LILV_DIR_SEP@"
#define LILV_DEFAULT_LV2_PATH "@LV2_PATH@"
]])
configure_file("${CMAKE_CURRENT_BINARY_DIR}/lilv_config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/lilv_config.h")
target_include_directories(lilv
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}"
)
target_link_libraries(lilv
PUBLIC lv2::lv2
PRIVATE serd::serd sord::sord sratom::sratom
)
set_target_properties(lilv PROPERTIES
C_STANDARD 99
C_STANDARD_REQUIRED ON
)
target_compile_definitions(lilv PRIVATE LILV_INTERNAL _CRT_SECURE_NO_WARNINGS)
if(BUILD_SHARED_LIBS)
target_compile_definitions(lilv PUBLIC LILV_SHARED)
endif()
install(
TARGETS lilv
EXPORT lilv-targets
INCLUDES DESTINATION include
)
if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY lilv DESTINATION include)
endif()
install(
EXPORT lilv-targets
NAMESPACE lilv::
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/lilv"
)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/lilv-config.cmake" [[
include(CMakeFindDependencyMacro)
find_dependency(lv2 CONFIG)
find_dependency(serd CONFIG)
find_dependency(sord CONFIG)
find_dependency(sratom CONFIG)
include("${CMAKE_CURRENT_LIST_DIR}/lilv-targets.cmake")
]])
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/lilv-config.cmake"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/lilv"
)

View File

@ -2,24 +2,20 @@ vcpkg_from_gitlab(
GITLAB_URL https://gitlab.com
OUT_SOURCE_PATH SOURCE_PATH
REPO lv2/lilv
REF v0.24.10
SHA512 be47b72f2671f3bbab219944519b990156547e26aa432c2618273683c86dc23ae3b071d1de586f45dfda3ea8dbbc095429ad318fda60efcf715ae917a7caa34b
REF "v${VERSION}"
SHA512 844d72a07d3978e1cc908962f0fb957b47032277a419e1639885e3a49d27278fc48ab774229d18ba2b811bab755c8a1cbfa10b805de5f1cfe1bc2f9424913f5a
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
OPTIONS
-Dtests=disabled
)
vcpkg_cmake_install()
vcpkg_install_meson()
vcpkg_copy_tools(TOOL_NAMES lv2info lv2ls AUTO_CLEAN)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(
INSTALL "${SOURCE_PATH}/COPYING"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,7 +1,6 @@
{
"name": "lilv",
"version": "0.24.10",
"port-version": 2,
"version": "0.24.24",
"description": "Lilv is a C library for simple use of LV2 plugins in applications.",
"homepage": "https://drobilla.net/software/lilv",
"license": "ISC",
@ -12,11 +11,7 @@
"sord",
"sratom",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"name": "vcpkg-tool-meson",
"host": true
}
]

View File

@ -1,5 +1,3 @@
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lv2/lv2
@ -17,8 +15,9 @@ vcpkg_configure_meson(
)
vcpkg_install_meson()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/lv2-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,6 +1,7 @@
{
"name": "lv2",
"version": "1.18.10",
"port-version": 1,
"description": "LV2 is a plugin standard for audio systems. It defines a minimal yet extensible C API for plugin code and a format for plugin \"bundles\".",
"homepage": "https://lv2plug.in",
"license": "ISC",

View File

@ -1,46 +0,0 @@
cmake_minimum_required(VERSION 3.17)
project(serd C)
add_library(serd
src/byte_source.c
src/env.c
src/n3.c
src/node.c
src/reader.c
src/string.c
src/uri.c
src/writer.c
)
file(WRITE "${CMAKE_BINARY_DIR}/serd_config.h" "")
target_include_directories(serd
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_BINARY_DIR}"
)
set_target_properties(serd PROPERTIES
C_STANDARD 99
C_STANDARD_REQUIRED ON
)
target_compile_definitions(serd PRIVATE SERD_INTERNAL _CRT_SECURE_NO_WARNINGS)
if(BUILD_SHARED_LIBS)
target_compile_definitions(serd PUBLIC SERD_SHARED)
endif()
install(
TARGETS serd
EXPORT serd-config
INCLUDES DESTINATION include
)
if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY serd DESTINATION include)
endif()
install(
EXPORT serd-config
NAMESPACE serd::
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/serd"
)

View File

@ -2,24 +2,19 @@ vcpkg_from_gitlab(
GITLAB_URL https://gitlab.com
OUT_SOURCE_PATH SOURCE_PATH
REPO drobilla/serd
REF v0.30.4
SHA512 59b4f67dfa8a2c01119b1c69609030d851339ba6d85c5c559b7c2454492ef40498ce710e5cf5f7a698a292db81e6bffacb86f9dafa5d7f3fe0c60d53d6e2281f
HEAD_REF master
REF "v${VERSION}"
SHA512 f90bf597579c5f858ebfe19a7e7cb0b824fe7485c475e3cce88427dd99f9228f5bf4708b7a9f2c67763a3c76166043cdc8cfc2d4891fab6d2a85d6ae8cd97615
HEAD_REF main
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
)
vcpkg_cmake_install()
vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(
INSTALL "${SOURCE_PATH}/COPYING"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_tools(TOOL_NAMES serdi AUTO_CLEAN)
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,17 +1,12 @@
{
"name": "serd",
"version": "0.30.4",
"port-version": 2,
"version": "0.32.2",
"description": "Serd is a lightweight C library for RDF syntax which supports reading and writing Turtle, TRiG, NTriples, and NQuads.",
"homepage": "https://drobilla.net/software/serd",
"license": "ISC",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"name": "vcpkg-tool-meson",
"host": true
}
]

View File

@ -1,55 +0,0 @@
cmake_minimum_required(VERSION 3.17)
project(sord C)
find_package(serd CONFIG REQUIRED)
add_library(sord
src/sord.c
src/syntax.c
)
file(WRITE "${CMAKE_BINARY_DIR}/sord_config.h" "")
target_include_directories(sord
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_BINARY_DIR}"
)
target_link_libraries(sord PUBLIC serd::serd)
set_target_properties(sord PROPERTIES
C_STANDARD 99
C_STANDARD_REQUIRED ON
)
target_compile_definitions(sord PRIVATE SORD_INTERNAL _CRT_SECURE_NO_WARNINGS)
if(BUILD_SHARED_LIBS)
target_compile_definitions(sord PUBLIC SORD_SHARED)
endif()
install(
TARGETS sord
EXPORT sord-targets
INCLUDES DESTINATION include
)
if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY sord DESTINATION include)
endif()
install(
EXPORT sord-targets
NAMESPACE sord::
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/sord"
)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/sord-config.cmake" [[
include(CMakeFindDependencyMacro)
find_dependency(serd CONFIG)
include("${CMAKE_CURRENT_LIST_DIR}/sord-targets.cmake")
]])
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/sord-config.cmake"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/sord"
)

View File

@ -2,24 +2,19 @@ vcpkg_from_gitlab(
GITLAB_URL https://gitlab.com
OUT_SOURCE_PATH SOURCE_PATH
REPO drobilla/sord
REF v0.16.4
SHA512 cad8f8fd07afb5075938fce247d95f9d666f61f4d913ff0c3fde335384177de066a5c0f2620c76e098178aeded0412b3e76ef63a1ae65aba7eb99e3e8ce15896
REF "v${VERSION}"
SHA512 73011eba2beea1620f6ca2a911ac331e7a5b31835361893158ac04345504d7d071525fcae6126c2bd87e087c0a407afbd7dbcd37020a3e43cdf5679cb4b27a8b
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
)
vcpkg_cmake_install()
vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(
INSTALL "${SOURCE_PATH}/COPYING"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_tools(TOOL_NAMES sordi sord_validate AUTO_CLEAN)
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,19 +1,17 @@
{
"name": "sord",
"version": "0.16.4",
"port-version": 2,
"version": "0.16.16",
"description": "Sord is a lightweight C library for storing RDF statements in memory.",
"homepage": "https://drobilla.net/software/sord",
"license": "ISC",
"supports": "!uwp",
"dependencies": [
"pcre2",
"serd",
{
"name": "vcpkg-cmake",
"name": "vcpkg-tool-meson",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
"zix"
]
}

View File

@ -1,54 +0,0 @@
cmake_minimum_required(VERSION 3.17)
project(sratom C)
find_package(lv2 CONFIG REQUIRED)
find_package(serd CONFIG REQUIRED)
find_package(sord CONFIG REQUIRED)
add_library(sratom
src/sratom.c
)
target_include_directories(sratom PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(sratom PUBLIC lv2::lv2 serd::serd sord::sord)
set_target_properties(sratom PROPERTIES
C_STANDARD 99
C_STANDARD_REQUIRED ON
)
target_compile_definitions(sratom PRIVATE SRATOM_INTERNAL _CRT_SECURE_NO_WARNINGS)
if(BUILD_SHARED_LIBS)
target_compile_definitions(sratom PUBLIC SRATOM_SHARED)
endif()
install(
TARGETS sratom
EXPORT sratom-targets
INCLUDES DESTINATION include
)
if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY include/sratom DESTINATION include)
endif()
install(
EXPORT sratom-targets
NAMESPACE sratom::
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/sratom"
)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/sratom-config.cmake" [[
include(CMakeFindDependencyMacro)
find_dependency(lv2 CONFIG)
find_dependency(serd CONFIG)
find_dependency(sord CONFIG)
include("${CMAKE_CURRENT_LIST_DIR}/sratom-targets.cmake")
]])
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/sratom-config.cmake"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/sratom"
)

View File

@ -7,19 +7,12 @@ vcpkg_from_gitlab(
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
)
vcpkg_cmake_install()
vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(
INSTALL "${SOURCE_PATH}/COPYING"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,6 +1,7 @@
{
"name": "sratom",
"version": "0.6.16",
"port-version": 1,
"description": "Sratom is a library for serialising LV2 atoms to and from RDF, particularly the Turtle syntax.",
"homepage": "https://drobilla.net/software/sratom",
"license": "ISC",
@ -9,11 +10,7 @@
"serd",
"sord",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"name": "vcpkg-tool-meson",
"host": true
}
]

33
ports/zix/fix-win32.patch Normal file
View File

@ -0,0 +1,33 @@
diff --git a/benchmark/bench.h b/benchmark/bench.h
index bcfe077..b247e17 100644
--- a/benchmark/bench.h
+++ b/benchmark/bench.h
@@ -15,6 +15,21 @@ bench_elapsed_s(const BenchmarkTime* start, const BenchmarkTime* end)
((double)(end->tv_nsec - start->tv_nsec) * 0.000000001));
}
+#ifdef _WIN32
+#include <windows.h>
+
+static inline BenchmarkTime bench_start(void) {
+ BenchmarkTime start_t;
+ QueryPerformanceCounter(&start_t);
+ return start_t;
+}
+
+static inline double bench_end(const BenchmarkTime* start_t) {
+ BenchmarkTime end_t;
+ QueryPerformanceCounter(&end_t);
+ return bench_elapsed_s(start_t, &end_t);
+}
+#else
static inline BenchmarkTime
bench_start(void)
{
@@ -30,5 +45,6 @@ bench_end(const BenchmarkTime* start_t)
clock_gettime(CLOCK_REALTIME, &end_t);
return bench_elapsed_s(start_t, &end_t);
}
+#endif
#endif // BENCH_H

21
ports/zix/portfile.cmake Normal file
View File

@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO drobilla/zix
REF "v${VERSION}"
SHA512 806b6b2e48bd0f1205958a63dd8aea73edb4b791c158cf9087c8fb2fad1111459ee6ed06428e04962ec98da4c38796b5c419573e0ffb65bdc5e7a1342387ef79
HEAD_REF main
PATCHES
fix-win32.patch
)
vcpkg_configure_meson(
SOURCE_PATH ${SOURCE_PATH}
)
vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
vcpkg_fixup_pkgconfig()

13
ports/zix/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "zix",
"version": "0.4.2",
"description": "Zix is a lightweight C library of portability wrappers and data structures.",
"homepage": "https://github.com/drobilla/zix",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-tool-meson",
"host": true
}
]
}

View File

@ -5537,8 +5537,8 @@
"port-version": 0
},
"lilv": {
"baseline": "0.24.10",
"port-version": 2
"baseline": "0.24.24",
"port-version": 0
},
"linalg": {
"baseline": "2.2",
@ -5702,7 +5702,7 @@
},
"lv2": {
"baseline": "1.18.10",
"port-version": 0
"port-version": 1
},
"lz4": {
"baseline": "1.10.0",
@ -8297,8 +8297,8 @@
"port-version": 3
},
"serd": {
"baseline": "0.30.4",
"port-version": 2
"baseline": "0.32.2",
"port-version": 0
},
"serdepp": {
"baseline": "0.1.4.1",
@ -8541,8 +8541,8 @@
"port-version": 4
},
"sord": {
"baseline": "0.16.4",
"port-version": 2
"baseline": "0.16.16",
"port-version": 0
},
"soundtouch": {
"baseline": "2.3.3",
@ -8686,7 +8686,7 @@
},
"sratom": {
"baseline": "0.6.16",
"port-version": 0
"port-version": 1
},
"srell": {
"baseline": "3.010",
@ -9976,6 +9976,10 @@
"baseline": "2.12.0",
"port-version": 1
},
"zix": {
"baseline": "0.4.2",
"port-version": 0
},
"zkpp": {
"baseline": "0.2.3",
"port-version": 3

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "350900cd2f7b77c0b2cfc8d033fe98dc4f092ee7",
"version": "0.24.24",
"port-version": 0
},
{
"git-tree": "6a016d4a605d325266dcc5eb9cedc40532d10cce",
"version": "0.24.10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "cab447776d32bdd7add9366f6aa0770cfcd162c9",
"version": "1.18.10",
"port-version": 1
},
{
"git-tree": "e830f219cb53b0527bd3061a8153b304a7f3b27c",
"version": "1.18.10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "41de26b50c0d03376f6d3813c74f6b739086561b",
"version": "0.32.2",
"port-version": 0
},
{
"git-tree": "8f1848f6d4c698376b95a53e329eba78ff6ae893",
"version": "0.30.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "30ceeb7adaee92be3eace7f729814220f55d1095",
"version": "0.16.16",
"port-version": 0
},
{
"git-tree": "5d67b14f489ea7ebae790682dfe2beb9acb54720",
"version": "0.16.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "54b94ed23ebf55fb612048eaa9018c445800671d",
"version": "0.6.16",
"port-version": 1
},
{
"git-tree": "425b119026416be70339ec4c4ec0e4ee21c42549",
"version": "0.6.16",

9
versions/z-/zix.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "500baf4d01fd4dc9143addf9d23ac2a9536f2b5a",
"version": "0.4.2",
"port-version": 0
}
]
}