2019-10-31 03:39:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO wgois/OIS
|
2021-11-09 12:43:34 +08:00
|
|
|
REF v1.5.1
|
|
|
|
SHA512 20598aef999a70900cb7f75ffaf62059acf8e811822971cb21986b5d25d28dacb79e4b4cf4770c70e00d3c55cdd01ef3e68a77c2dd148677784fc4df38891340
|
2019-10-31 03:39:13 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-09 12:43:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-11 02:31:40 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-10-31 03:39:13 +08:00
|
|
|
)
|
|
|
|
|
2021-11-09 12:43:34 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-10-31 03:39:13 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2021-11-09 12:43:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-10-31 03:39:13 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Include files should not be duplicated into the /debug/include directory
|
2021-11-09 12:43:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-10-31 03:39:13 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-09 12:43:34 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|