mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:53:02 +08:00
[blitz] no absolute paths (#21708)
This commit is contained in:
parent
e54a86b184
commit
84216277df
@ -10,27 +10,32 @@ vcpkg_from_github(
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON2)
|
||||
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
|
||||
vcpkg_add_to_path(${PYTHON2_DIR})
|
||||
vcpkg_add_to_path("${PYTHON2_DIR}")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_DOC=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
|
||||
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}" "")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,8 +1,18 @@
|
||||
{
|
||||
"name": "blitz",
|
||||
"version-string": "2020-03-25",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"description": "Blitz++ is a C++ template class library that provides high-performance multidimensional array containers for scientific computing.",
|
||||
"homepage": "https://github.com/blitzpp/blitz",
|
||||
"supports": "!(arm | arm64 | uwp)"
|
||||
"supports": "!(arm | arm64 | uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ddf54a36a0fa345a482b66d648778c13f0008eeb",
|
||||
"version-string": "2020-03-25",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "6f6a860240cf01fea1a9f90f6970dec75980a1d1",
|
||||
"version-string": "2020-03-25",
|
||||
|
@ -502,7 +502,7 @@
|
||||
},
|
||||
"blitz": {
|
||||
"baseline": "2020-03-25",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"blosc": {
|
||||
"baseline": "1.18.1",
|
||||
|
Loading…
Reference in New Issue
Block a user