2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2024-03-08 15:03:41 +08:00
|
|
|
string(REGEX REPLACE "^([0-9]*)[.].*" "\\1" MAJOR "${VERSION}")
|
|
|
|
string(REGEX REPLACE "^.*[.]([0-9]*)" "\\1" MINOR "${VERSION}")
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2017-09-03 08:09:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO adah1972/libunibreak
|
2024-03-08 15:03:41 +08:00
|
|
|
REF "libunibreak_${MAJOR}_${MINOR}"
|
|
|
|
SHA512 a85333d59c78b67b1c05d33ab99c069ba493780d6a98ad5ab00e33235c454b8b33515cac4e815de35533f235be7cf5473550b3a6389f7581ba2f6216d42d38e1
|
2017-09-03 08:09:07 +08:00
|
|
|
HEAD_REF master
|
2024-04-02 05:51:51 +08:00
|
|
|
PATCHES
|
|
|
|
fix_export.patch
|
2017-09-03 08:09:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
2022-04-30 03:33:44 +08:00
|
|
|
vcpkg_cmake_configure(
|
2017-09-03 08:09:07 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
2022-04-30 03:33:44 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/libunibreak-config.cmake.in"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/libunibreak-config.cmake" @ONLY)
|
2017-09-03 08:09:07 +08:00
|
|
|
|
2024-04-02 05:51:51 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENCE")
|