Index: math/metis/Makefile =================================================================== --- math/metis/Makefile (revision 442496) +++ math/metis/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= metis PORTVERSION= 5.1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MASTER_SITES= http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ @@ -23,7 +23,7 @@ SHARED_DESC= shared library and dynamically-linked executables STATIC_DESC= libmetis archive -OPTIONS_DEFAULT= SHARED STATIC +OPTIONS_DEFAULT= OPENMP SHARED STATIC BINS= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis @@ -30,8 +30,8 @@ .include .if ${PORT_OPTIONS:MOPENMP} +USES+= compiler:openmp CMAKE_ARGS+= -DOPENMP=1 -USE_GCC= any .endif #.if ${PORT_OPTIONS:MPROFILE} @@ -82,6 +82,11 @@ ${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}} Index: math/metis/files/patch-libmetis__CMakeLists.txt =================================================================== --- math/metis/files/patch-libmetis__CMakeLists.txt (revision 442496) +++ math/metis/files/patch-libmetis__CMakeLists.txt (working copy) @@ -1,6 +1,6 @@ ---- 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 +@@ -4,6 +4,9 @@ include_directories(.) file(GLOB metis_sources *.c) # Build libmetis. add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})