mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
math/metis: update IDXTYPEWIDTH to 64 on 64 bit platforms
While here, pet portlint PR: 219749 Submitted by: pfg
This commit is contained in:
parent
90e79f86a7
commit
9403d24029
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490369
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= metis
|
||||
PORTVERSION= 5.1.0
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
|
||||
|
||||
@ -12,10 +12,10 @@ COMMENT= Package for unstructured graph partitioning
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
CONFLICTS= metis4-4* metis-edf-[0-9]*
|
||||
|
||||
USES= cmake:noninja compiler:c11
|
||||
|
||||
CONFLICTS= metis4-4* metis-edf-[0-9]*
|
||||
|
||||
OPTIONS_DEFINE= OPENMP SHARED STATIC DOCS
|
||||
|
||||
OPENMP_DESC= multithreading via OpenMP
|
||||
@ -30,8 +30,8 @@ BINS= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MOPENMP}
|
||||
USES+= compiler:openmp
|
||||
CMAKE_ARGS+= -DOPENMP=1
|
||||
USE_GCC= any
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSHARED}
|
||||
@ -67,6 +67,11 @@ pre-configure:
|
||||
${WRKSRC}/GKlib/GKlibSystem.cmake
|
||||
@${REINPLACE_CMD} -e "\|/home/karypis/|d" \
|
||||
${WRKSRC}/programs/CMakeLists.txt
|
||||
.if ((${ARCH}=="amd64") || (${ARCH}=="aarch64") || (${ARCH}=="sparc64") || (${ARCH}=="ppc64") || (${ARCH}=="ia64"))
|
||||
@${REINPLACE_CMD}-e \
|
||||
's|IDXTYPEWIDTH 32|IDXTYPEWIDTH 64|' \
|
||||
${WRKSRC}/include/metis.h
|
||||
.endif
|
||||
.for o in SHARED #PROFILE
|
||||
.if ${PORT_OPTIONS:M${o}}
|
||||
@${CP} -R ${WRKSRC} ${WRKSRC_${o}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- programs/CMakeLists.txt.orig 2013-03-30 16:24:45 UTC
|
||||
+++ programs/CMakeLists.txt
|
||||
@@ -13,9 +13,14 @@ foreach(prog gpmetis ndmetis mpmetis m2g
|
||||
@@ -13,9 +13,14 @@ foreach(prog gpmetis ndmetis mpmetis m2gmetis graphchk
|
||||
# target_link_libraries(${prog} metis profiler)
|
||||
endforeach(prog)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user