aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/parmetis/CONTROL3
-rw-r--r--ports/parmetis/fix-root-cmakelist-2.patch18
-rw-r--r--ports/parmetis/portfile.cmake1
3 files changed, 21 insertions, 1 deletions
diff --git a/ports/parmetis/CONTROL b/ports/parmetis/CONTROL
index c98d4869f..7ef872fac 100644
--- a/ports/parmetis/CONTROL
+++ b/ports/parmetis/CONTROL
@@ -1,5 +1,6 @@
Source: parmetis
-Version: 4.0.3-3
+Version: 4.0.3
+Port-Version: 4
Homepage: https://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview
Description: Parallel Graph Partitioning and Fill-reducing Matrix Ordering
Build-Depends: metis, mpi
diff --git a/ports/parmetis/fix-root-cmakelist-2.patch b/ports/parmetis/fix-root-cmakelist-2.patch
new file mode 100644
index 000000000..8f4630bfa
--- /dev/null
+++ b/ports/parmetis/fix-root-cmakelist-2.patch
@@ -0,0 +1,18 @@
+--- a/CMakeLists.txt 2013-03-30 17:24:50.000000000 +0100
++++ b/CMakeLists.txt 2021-04-20 10:41:49.946801222 +0200
+@@ -1,12 +1,12 @@
+ cmake_minimum_required(VERSION 2.8)
+ project(ParMETIS)
+
+-set(GKLIB_PATH METIS/GKlib CACHE PATH "path to GKlib")
+-set(METIS_PATH METIS CACHE PATH "path to METIS")
++set(GKLIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/metis/GKlib CACHE PATH "path to GKlib")
++set(METIS_PATH metis CACHE PATH "path to METIS")
+
+ # Symlink ./metis to wherever metis is. This allows files to be
+ # included from metis/libmetis/.
+-execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${METIS_PATH} metis)
++#execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${METIS_PATH} metis)
+
+ # Search for MPI.
+ # GK commented this out as it seems to be creating problems
diff --git a/ports/parmetis/portfile.cmake b/ports/parmetis/portfile.cmake
index a7558a877..62d633eac 100644
--- a/ports/parmetis/portfile.cmake
+++ b/ports/parmetis/portfile.cmake
@@ -16,6 +16,7 @@ vcpkg_extract_source_archive_ex(
fix-root-cmakelist.patch
fix-libparmetis-cmakelist.patch
use_stdint.patch
+ fix-root-cmakelist-2.patch
)
vcpkg_configure_cmake(