2019-01-26 05:44:47 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-07 04:57:25 +08:00
|
|
|
REPO xtensor-stack/xtl
|
2021-06-11 07:02:29 +08:00
|
|
|
REF e0f00666d90086bb245ae73abb6123d0e2c1b30b # 0.7.2
|
|
|
|
SHA512 d7a552dc4e43a3270a56c57fde8fdc48a108909d4fa1e3fdd7ab12b178b3e271ed4d89aac9fd184e2739ddacfb3b5cb248538ed50a0ba56e740875c0faf5aa62
|
2019-01-26 05:44:47 +08:00
|
|
|
HEAD_REF master
|
2021-06-11 07:02:29 +08:00
|
|
|
PATCHES
|
|
|
|
fix-fixup-cmake.patch
|
2019-01-26 05:44:47 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-26 05:44:47 +08:00
|
|
|
OPTIONS
|
2019-05-06 14:19:09 +08:00
|
|
|
-DBUILD_TESTS=OFF
|
2019-01-26 05:44:47 +08:00
|
|
|
-DDOWNLOAD_GTEST=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-26 05:44:47 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-01-26 05:44:47 +08:00
|
|
|
|
2021-06-11 07:02:29 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-01-26 05:44:47 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|