diff options
Diffstat (limited to 'vcpkg/ports/vtk-compile-tools')
| -rw-r--r-- | vcpkg/ports/vtk-compile-tools/name-suffix.diff | 12 | ||||
| -rw-r--r-- | vcpkg/ports/vtk-compile-tools/portfile.cmake | 36 | ||||
| -rw-r--r-- | vcpkg/ports/vtk-compile-tools/vcpkg.json | 19 |
3 files changed, 67 insertions, 0 deletions
diff --git a/vcpkg/ports/vtk-compile-tools/name-suffix.diff b/vcpkg/ports/vtk-compile-tools/name-suffix.diff new file mode 100644 index 0000000..e2e4c16 --- /dev/null +++ b/vcpkg/ports/vtk-compile-tools/name-suffix.diff @@ -0,0 +1,12 @@ +diff --git a/Wrapping/Tools/CMakeLists.txt b/Wrapping/Tools/CMakeLists.txt +index 05aa805f..911a032f 100644 +--- a/Wrapping/Tools/CMakeLists.txt ++++ b/Wrapping/Tools/CMakeLists.txt +@@ -46,6 +46,7 @@ set_property(SOURCE vtkParseMain.c + set(_vtk_module_no_namespace_abi_mangling ON) + + vtk_module_add_module("${ns}::WrappingTools" ++ LIBRARY_NAME_SUFFIX "_CompileTools" # distinct from port vtk + SOURCES ${sources} + HEADERS ${headers}) + diff --git a/vcpkg/ports/vtk-compile-tools/portfile.cmake b/vcpkg/ports/vtk-compile-tools/portfile.cmake new file mode 100644 index 0000000..9b2d5f6 --- /dev/null +++ b/vcpkg/ports/vtk-compile-tools/portfile.cmake @@ -0,0 +1,36 @@ +set(VCPKG_BUILD_TYPE release) # tools +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) +set(VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES enabled) + +set(SHORT_VERSION 9.3) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Kitware/VTK + REF 09a76bc55b37caad94d0d8ebe865caaed1b438af # v9.3.x used by ParaView 5.12.0 + SHA512 396ee901fafacae8aef860b9c9c17cb92ae8b4969527fd271ad8dd9f6a9e0dc8e3dc807c8d43cc585608ad101a64edcd7aff49e1580c7a61a817c2ea8e2655f5 + HEAD_REF master + PATCHES + name-suffix.diff +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCMAKE_INSTALL_INCLUDEDIR=install/${PORT} + -DVTK_BUILD_COMPILE_TOOLS_ONLY=ON + -DVTK_ENABLE_LOGGING=OFF +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +# Not adjusting the directory name: The package is meant to be +# selected either explicitly, or transitively via package vtk. +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/vtkcompiletools-${SHORT_VERSION}) +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/vtkcompiletools-config-version.cmake" "set(PACKAGE_VERSION_UNSUITABLE TRUE)" "# allow host tools on any arch") + +vcpkg_copy_tools(AUTO_CLEAN TOOL_NAMES vtkParseJava-${SHORT_VERSION} vtkWrapHierarchy-${SHORT_VERSION} vtkWrapJava-${SHORT_VERSION} vtkWrapPython-${SHORT_VERSION} vtkWrapPythonInit-${SHORT_VERSION}) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Copyright.txt") diff --git a/vcpkg/ports/vtk-compile-tools/vcpkg.json b/vcpkg/ports/vtk-compile-tools/vcpkg.json new file mode 100644 index 0000000..cfd2f75 --- /dev/null +++ b/vcpkg/ports/vtk-compile-tools/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "vtk-compile-tools", + "version-semver": "9.3.0-pv5.12.1", + "port-version": 1, + "description": "Tools needed for crosscompiling VTK", + "homepage": "https://github.com/Kitware/VTK", + "license": null, + "supports": "native", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |