2022-06-08 04:36:34 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
set(patches fix-dllexport.patch)
|
2022-08-06 15:16:14 +08:00
|
|
|
elseif(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
set(patches fix-dllexport_2.patch fix_missing_extern.patch)
|
2022-06-08 04:36:34 +08:00
|
|
|
endif()
|
2017-09-26 22:04:49 +08:00
|
|
|
|
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
|
|
|
|
PATCHES ${patches}
|
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}"
|
2017-09-26 22:04:49 +08:00
|
|
|
)
|
|
|
|
|
2022-06-08 04:36:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-09-26 22:04:49 +08:00
|
|
|
|
2022-06-08 04:36:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-09-26 22:04:49 +08:00
|
|
|
|
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
|
|
|
|
2022-06-08 04:36:34 +08:00
|
|
|
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|