2020-02-09 12:26:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO blitzpp/blitz
|
2020-03-28 10:15:32 +08:00
|
|
|
REF 839fc5e0f35b1c38a01cfd7a94e83de81e8a6b55
|
|
|
|
SHA512 efb6b19691e23c95cf6abd59607bce299b0c02a12ce6be105a35ad8509ab564b8dac8d6363f048e547d199e117d2bdd0e4ef3046d3c411f669c0a453a0b75627
|
2020-02-09 12:26:05 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON2)
|
|
|
|
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
|
2021-11-30 08:52:16 +08:00
|
|
|
vcpkg_add_to_path("${PYTHON2_DIR}")
|
2020-02-09 12:26:05 +08:00
|
|
|
|
2021-11-30 08:52:16 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2020-03-28 10:15:32 +08:00
|
|
|
-DBUILD_DOC=OFF
|
2022-01-26 02:31:15 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2020-02-09 12:26:05 +08:00
|
|
|
)
|
|
|
|
|
2021-11-30 08:52:16 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-02-09 12:26:05 +08:00
|
|
|
|
2021-11-30 08:52:16 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-02-09 12:26:05 +08:00
|
|
|
|
2020-03-28 10:15:32 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2021-11-30 08:52:16 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2020-03-28 10:15:32 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-30 08:52:16 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/matbops.h" "${SOURCE_PATH}" "")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/matuops.h" "${SOURCE_PATH}" "")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/mathfunc.h" "${SOURCE_PATH}" "")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/promote-old.h" "${SOURCE_PATH}" "")
|
2020-02-09 12:26:05 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-30 08:52:16 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|