Skip to content

Commit

Permalink
[lilv] Fix dependencies, tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Dec 18, 2024
1 parent 2dc91c6 commit 3d44200
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
23 changes: 21 additions & 2 deletions ports/lilv/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,34 @@ vcpkg_from_gitlab(
HEAD_REF master
)

set(options "")
if("tools" IN_LIST FEATURES)
list(APPEND options -Dtools=enabled)
else()
list(APPEND options -Dtools=disabled)
endif()

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${options}
-Dbindings_cpp=enabled
-Dbindings_py=disabled
-Ddocs=disabled
-Dtests=disabled
)

vcpkg_install_meson()
vcpkg_copy_tools(TOOL_NAMES lv2info lv2ls AUTO_CLEAN)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES lv2apply lv2bench lv2info lv2ls AUTO_CLEAN)
endif()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/etc"
"${CURRENT_PACKAGES_DIR}/debug/share"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
14 changes: 12 additions & 2 deletions ports/lilv/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "lilv",
"version": "0.24.24",
"port-version": 1,
"description": "Lilv is a C library for simple use of LV2 plugins in applications.",
"homepage": "https://drobilla.net/software/lilv",
"license": "ISC",
"supports": "!uwp",
"dependencies": [
"lv2",
"serd",
Expand All @@ -13,6 +13,16 @@
{
"name": "vcpkg-tool-meson",
"host": true
},
"zix"
],
"features": {
"tools": {
"description": "Build tools",
"supports": "!windows",
"dependencies": [
"libsndfile"
]
}
]
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5546,7 +5546,7 @@
},
"lilv": {
"baseline": "0.24.24",
"port-version": 0
"port-version": 1
},
"linalg": {
"baseline": "2.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lilv.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "75faa9fdbf900e93fb303580d24c06ac31be7e6e",
"version": "0.24.24",
"port-version": 1
},
{
"git-tree": "350900cd2f7b77c0b2cfc8d033fe98dc4f092ee7",
"version": "0.24.24",
Expand Down

0 comments on commit 3d44200

Please sign in to comment.