2022-06-08 04:36:34 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2018-02-24 14:32:02 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-06-08 04:36:34 +08:00
|
|
|
REPO gts/gts
|
|
|
|
REF 0.7.6
|
|
|
|
FILENAME gts-0.7.6.tar.gz
|
|
|
|
SHA512 645123b72dba3d04dad3c5d936d7e55947826be0fb25e84595368919b720deccddceb7c3b30865a5a40f2458254c2af793b7c014e6719cf07e7f8e6ff30890f8
|
2023-10-27 11:42:32 +08:00
|
|
|
PATCHES
|
|
|
|
fix-dllexport.patch
|
2017-09-26 22:04:49 +08:00
|
|
|
)
|
2022-06-08 04:36:34 +08:00
|
|
|
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/predicates_init.h" DESTINATION "${SOURCE_PATH}/src")
|
|
|
|
|
2021-04-27 01:28:21 +08:00
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
2022-06-08 04:36:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-27 01:28:21 +08:00
|
|
|
OPTIONS
|
2022-06-08 04:36:34 +08:00
|
|
|
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
2023-10-27 11:42:32 +08:00
|
|
|
"-DVERSION=${VERSION}"
|
2017-09-26 22:04:49 +08:00
|
|
|
)
|
|
|
|
|
2022-06-08 04:36:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-12 12:30:40 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-02-24 14:32:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-06-12 12:30:40 +08:00
|
|
|
|
2023-10-27 11:42:32 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2022-06-08 04:36:34 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-10-27 11:42:32 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|