2018-02-17 06:42:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO radarsat1/liblo
|
2024-03-12 07:41:21 +08:00
|
|
|
REF c1a51bca21e8535ce77a9daf256f2e74c1a7e80f # 0.32
|
|
|
|
SHA512 baf7f11b5e03b01e1f01e6ff8984bc0cf1bb8f70df0dfe8d5f472dd06185997a93cf60e8fae0c54430c0c8f444084e926d41ca4e5291a191ebe4d8564d1854ad
|
2018-02-17 06:42:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/cmake"
|
2024-03-12 07:41:21 +08:00
|
|
|
OPTIONS -DTHREADING=1 -DWITH_STATIC=ON -DWITH_TESTS=OFF
|
2018-02-17 06:42:54 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-17 06:42:54 +08:00
|
|
|
|
|
|
|
# Install needed files into package directory
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/liblo)
|
2018-02-17 06:42:54 +08:00
|
|
|
|
2024-03-12 07:41:21 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES oscsend oscdump oscsendfile AUTO_CLEAN)
|
2018-02-17 06:42:54 +08:00
|
|
|
|
|
|
|
# Remove unnecessary files
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-02-17 06:42:54 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2018-02-17 06:42:54 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|