aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2018-05-06 16:15:59 +0800
committerthierry <thierry@FreeBSD.org>2018-05-06 16:15:59 +0800
commit892496d37f3704d703c5a38022e0e953b2c1cc67 (patch)
treed04c13f76ee81afafdf1bb71b955009214b68e5e /math
parent7a8b9d701ced2a52f62acc49eb9154e1a83b4cf2 (diff)
downloadfreebsd-ports-gnome-892496d37f3704d703c5a38022e0e953b2c1cc67.tar.gz
freebsd-ports-gnome-892496d37f3704d703c5a38022e0e953b2c1cc67.tar.zst
freebsd-ports-gnome-892496d37f3704d703c5a38022e0e953b2c1cc67.zip
Since the upgrade of math/suitesparse to 5.2.0, it depends unconditionnaly on
math/metis. Because math/metis and math/metis-edf are conflicting, this means that the ports which depend on SuiteSparse and on metis-edf became BROKEN. To solve this problem, this revision adds the missings includes brought by metis-edf to metis. Note for myself: if everything goes well, do not forget to deprecate the port math/metis-edf in a near future.
Diffstat (limited to 'math')
-rw-r--r--math/metis/Makefile19
-rw-r--r--math/metis/files/patch-CMakeLists.txt8
-rw-r--r--math/metis/files/patch-libmetis__CMakeLists.txt17
-rw-r--r--math/metis/files/patch-programs_CMakeLists.txt17
-rw-r--r--math/metis/pkg-plist34
5 files changed, 75 insertions, 20 deletions
diff --git a/math/metis/Makefile b/math/metis/Makefile
index aba4a1819bbc..00a3483d8898 100644
--- a/math/metis/Makefile
+++ b/math/metis/Makefile
@@ -3,7 +3,7 @@
PORTNAME= metis
PORTVERSION= 5.1.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
@@ -34,21 +34,6 @@ CMAKE_ARGS+= -DOPENMP=1
USE_GCC= any
.endif
-#.if ${PORT_OPTIONS:MPROFILE}
-#.if !exists(/usr/lib/libc_p.a)
-#IGNORE = : you have enabled the PROFILE option, but have not installed \
-# the base system profiling libraries
-#.endif
-#ALL_TARGET_PROFILE= metis
-#CMAKE_ARGS_PROFILE= -DGPROF=1
-#PLIST_SUB+= PROFILE=""
-##PROFILE_FLAGS ?= -pg
-#WRKSRC_PROFILE = ${WRKSRC}_PROFILE
-#INSTALL_WRKSRC_PROFILE = ${WRKSRC_PROFILE}/libmetis
-#.else
-#PLIST_SUB+= PROFILE="@comment "
-#.endif
-
.if ${PORT_OPTIONS:MSHARED}
ALL_TARGET_SHARED= all
CMAKE_ARGS_SHARED= -DSHARED=1
@@ -76,7 +61,7 @@ INSTALL_WRKSRC_STATIC= ${WRKSRC_STATIC}/libmetis
PLIST_SUB+= STATIC="@comment "
.endif
-post-patch:
+pre-configure:
@${REINPLACE_CMD} -e "/^# Add compiler flags/,/^$$/d" \
-e "/^check_include_file(execinfo.h/d" \
${WRKSRC}/GKlib/GKlibSystem.cmake
diff --git a/math/metis/files/patch-CMakeLists.txt b/math/metis/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..853854bb20fc
--- /dev/null
+++ b/math/metis/files/patch-CMakeLists.txt
@@ -0,0 +1,8 @@
+--- CMakeLists.txt.orig 2013-03-30 16:24:45 UTC
++++ CMakeLists.txt
+@@ -25,3 +25,5 @@ include_directories(include)
+ add_subdirectory("include")
+ add_subdirectory("libmetis")
+ add_subdirectory("programs")
++# Borrowed from metis-edf
++add_subdirectory("GKlib")
diff --git a/math/metis/files/patch-libmetis__CMakeLists.txt b/math/metis/files/patch-libmetis__CMakeLists.txt
index 268dc32d564c..59a107bf143e 100644
--- a/math/metis/files/patch-libmetis__CMakeLists.txt
+++ b/math/metis/files/patch-libmetis__CMakeLists.txt
@@ -1,7 +1,11 @@
---- libmetis/CMakeLists.txt.orig 2011-06-22 13:47:13.000000000 -0400
-+++ libmetis/CMakeLists.txt 2012-07-07 11:05:47.000000000 -0400
-@@ -4,6 +4,9 @@
+--- libmetis/CMakeLists.txt.orig 2013-03-30 16:24:45 UTC
++++ libmetis/CMakeLists.txt
+@@ -2,8 +2,13 @@
+ include_directories(.)
+ # Find sources.
file(GLOB metis_sources *.c)
++# Borrowed from metis-edf
++file(GLOB libmetis_h *.h)
# Build libmetis.
add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})
+if(SHARED)
@@ -10,3 +14,10 @@
if(UNIX)
target_link_libraries(metis m)
endif()
+@@ -13,4 +18,6 @@ if(METIS_INSTALL)
+ LIBRARY DESTINATION lib
+ RUNTIME DESTINATION lib
+ ARCHIVE DESTINATION lib)
++# Borrowed from metis-edf
++ install(FILES ${libmetis_h} DESTINATION include/libmetis)
+ endif()
diff --git a/math/metis/files/patch-programs_CMakeLists.txt b/math/metis/files/patch-programs_CMakeLists.txt
new file mode 100644
index 000000000000..0a0702e71e90
--- /dev/null
+++ b/math/metis/files/patch-programs_CMakeLists.txt
@@ -0,0 +1,17 @@
+--- programs/CMakeLists.txt.orig 2013-03-30 16:24:45 UTC
++++ programs/CMakeLists.txt
+@@ -13,9 +13,14 @@ foreach(prog gpmetis ndmetis mpmetis m2g
+ # target_link_libraries(${prog} metis profiler)
+ endforeach(prog)
+
++# Borrowed from metis-edf
++file(GLOB metis_h *.h)
++
+ if(METIS_INSTALL)
+ install(TARGETS gpmetis ndmetis mpmetis m2gmetis graphchk cmpfillin
+ RUNTIME DESTINATION bin)
++# Borrowed from metis-edf
++ install(FILES ${metis_h} DESTINATION include/programs)
+ endif()
+
+ # Try to find subversion revision.
diff --git a/math/metis/pkg-plist b/math/metis/pkg-plist
index 9b65ce081b31..5b67c0fee49c 100644
--- a/math/metis/pkg-plist
+++ b/math/metis/pkg-plist
@@ -4,7 +4,41 @@
%%SHARED%%bin/m2gmetis
%%SHARED%%bin/mpmetis
%%SHARED%%bin/ndmetis
+%%SHARED%%include/GKlib.h
+%%SHARED%%include/gk_arch.h
+%%SHARED%%include/gk_defs.h
+%%SHARED%%include/gk_externs.h
+%%SHARED%%include/gk_getopt.h
+%%SHARED%%include/gk_macros.h
+%%SHARED%%include/gk_mkblas.h
+%%SHARED%%include/gk_mkmemory.h
+%%SHARED%%include/gk_mkpqueue.h
+%%SHARED%%include/gk_mkpqueue2.h
+%%SHARED%%include/gk_mkrandom.h
+%%SHARED%%include/gk_mksort.h
+%%SHARED%%include/gk_mkutils.h
+%%SHARED%%include/gk_proto.h
+%%SHARED%%include/gk_struct.h
+%%SHARED%%include/gk_types.h
+%%SHARED%%include/gkregex.h
+%%STATIC%%include/libmetis/defs.h
+%%STATIC%%include/libmetis/gklib_defs.h
+%%STATIC%%include/libmetis/gklib_rename.h
+%%STATIC%%include/libmetis/macros.h
+%%STATIC%%include/libmetis/metislib.h
+%%STATIC%%include/libmetis/proto.h
+%%STATIC%%include/libmetis/rename.h
+%%STATIC%%include/libmetis/stdheaders.h
+%%STATIC%%include/libmetis/struct.h
%%SHARED%%include/metis.h
+%%SHARED%%include/ms_inttypes.h
+%%SHARED%%include/ms_stat.h
+%%SHARED%%include/ms_stdint.h
+%%SHARED%%include/programs/defs.h
+%%SHARED%%include/programs/metisbin.h
+%%SHARED%%include/programs/proto.h
+%%SHARED%%include/programs/struct.h
+%%SHARED%%lib/libGKlib.a
%%STATIC%%lib/libmetis.a
%%SHARED%%lib/libmetis.so
%%SHARED%%lib/libmetis.so.2