diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/liblo/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/liblo/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/liblo/portfile.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/liblo/portfile.cmake b/vcpkg/ports/liblo/portfile.cmake new file mode 100644 index 0000000..68a54d7 --- /dev/null +++ b/vcpkg/ports/liblo/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO radarsat1/liblo + REF c1a51bca21e8535ce77a9daf256f2e74c1a7e80f # 0.32 + SHA512 baf7f11b5e03b01e1f01e6ff8984bc0cf1bb8f70df0dfe8d5f472dd06185997a93cf60e8fae0c54430c0c8f444084e926d41ca4e5291a191ebe4d8564d1854ad + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/cmake" + OPTIONS -DTHREADING=1 -DWITH_STATIC=ON -DWITH_TESTS=OFF +) + +vcpkg_cmake_install() + +# Install needed files into package directory +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/liblo) + +vcpkg_copy_tools(TOOL_NAMES oscsend oscdump oscsendfile AUTO_CLEAN) + +# Remove unnecessary files +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL static) + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +vcpkg_fixup_pkgconfig() |