2018-01-12 19:24:02 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO laurikari/tre
|
|
|
|
REF 6fb7206b935b35814c5078c20046dbe065435363
|
|
|
|
SHA512 f1d664719eab23b665d71e34ca3d11f8ba49da23ff20dc28f46d4ce30fe155c12208ba7fd212dbeb20a7037e069909f0c2120ce1fc01074656399805e3289a90
|
|
|
|
HEAD_REF master
|
2022-06-24 05:51:01 +08:00
|
|
|
PATCHES
|
|
|
|
fix-config.patch
|
2018-01-12 19:24:02 +08:00
|
|
|
)
|
|
|
|
|
2021-05-29 01:09:56 +08:00
|
|
|
if(VCPKG_TARGET_IS_MINGW)
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/win32/tre.def" "tre.dll" "libtre.dll")
|
2021-05-29 01:09:56 +08:00
|
|
|
endif()
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2023-11-22 11:05:40 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2018-01-12 19:24:02 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-01-12 19:24:02 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-11-22 11:05:40 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
2018-01-12 19:24:02 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-11-22 11:05:40 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-01-12 19:24:02 +08:00
|
|
|
|
2023-11-22 11:05:40 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|