aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lilv
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/lilv')
-rw-r--r--vcpkg/ports/lilv/portfile.cmake40
-rw-r--r--vcpkg/ports/lilv/vcpkg.json28
2 files changed, 68 insertions, 0 deletions
diff --git a/vcpkg/ports/lilv/portfile.cmake b/vcpkg/ports/lilv/portfile.cmake
new file mode 100644
index 0000000..99c1272
--- /dev/null
+++ b/vcpkg/ports/lilv/portfile.cmake
@@ -0,0 +1,40 @@
+vcpkg_from_gitlab(
+ GITLAB_URL https://gitlab.com
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lv2/lilv
+ REF "v${VERSION}"
+ SHA512 add394bdf6453c9e33e73c2ffe3074f0fddfb067351ff6f0242d1ce5219c212398531c979d952a48c14a13efb3114d4314b553e20689435626b36af8a3c8c56c
+ 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_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")
diff --git a/vcpkg/ports/lilv/vcpkg.json b/vcpkg/ports/lilv/vcpkg.json
new file mode 100644
index 0000000..bbeaad0
--- /dev/null
+++ b/vcpkg/ports/lilv/vcpkg.json
@@ -0,0 +1,28 @@
+{
+ "name": "lilv",
+ "version": "0.24.26",
+ "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",
+ "sord",
+ "sratom",
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ },
+ "zix"
+ ],
+ "features": {
+ "tools": {
+ "description": "Build tools",
+ "supports": "!windows",
+ "dependencies": [
+ "libsndfile"
+ ]
+ }
+ }
+}