2018-02-17 06:42:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO radarsat1/liblo
|
2020-10-14 04:17:32 +08:00
|
|
|
REF 840ed69b1d669a1ce587eb592746e3dff6985d76 # 0.31
|
|
|
|
SHA512 c84ab8ac874595df29fd121fff6ddaa670bcc31e7ca4e5cc0f35092032c9f648cd890bc7eea0152af87b842f8cc7804505ac84a13bac8a5d40e43039efa4aa2d
|
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"
|
2018-02-17 06:42:54 +08:00
|
|
|
OPTIONS -DTHREADING=1
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
2021-08-31 09:35:02 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES oscsend oscdump 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()
|