View | Details | Raw Unified | Return to bug 219749 | Differences between
and this patch

Collapse All | Expand All

(-)math/metis/Makefile (-3 / +8 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	metis
4
PORTNAME=	metis
5
PORTVERSION=	5.1.0
5
PORTVERSION=	5.1.0
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	math
7
CATEGORIES=	math
8
MASTER_SITES=	http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
8
MASTER_SITES=	http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/
9
9
Lines 23-29 Link Here
23
SHARED_DESC=	shared library and dynamically-linked executables
23
SHARED_DESC=	shared library and dynamically-linked executables
24
STATIC_DESC=	libmetis archive
24
STATIC_DESC=	libmetis archive
25
25
26
OPTIONS_DEFAULT=	SHARED STATIC
26
OPTIONS_DEFAULT=	OPENMP SHARED STATIC
27
27
28
BINS=	cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis
28
BINS=	cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis
29
29
Lines 30-37 Link Here
30
.include <bsd.port.options.mk>
30
.include <bsd.port.options.mk>
31
31
32
.if ${PORT_OPTIONS:MOPENMP}
32
.if ${PORT_OPTIONS:MOPENMP}
33
USES+=		compiler:openmp
33
CMAKE_ARGS+=	-DOPENMP=1
34
CMAKE_ARGS+=	-DOPENMP=1
34
USE_GCC=	any
35
.endif
35
.endif
36
36
37
#.if ${PORT_OPTIONS:MPROFILE}
37
#.if ${PORT_OPTIONS:MPROFILE}
Lines 82-87 Link Here
82
	${WRKSRC}/GKlib/GKlibSystem.cmake
82
	${WRKSRC}/GKlib/GKlibSystem.cmake
83
	@${REINPLACE_CMD} -e "\|/home/karypis/|d" \
83
	@${REINPLACE_CMD} -e "\|/home/karypis/|d" \
84
	${WRKSRC}/programs/CMakeLists.txt
84
	${WRKSRC}/programs/CMakeLists.txt
85
.if ((${ARCH}=="amd64") || (${ARCH}=="aarch64") || (${ARCH}=="sparc64") || (${ARCH}=="ppc64") || (${ARCH}=="ia64"))
86
	@${REINPLACE_CMD}-e \
87
		's|IDXTYPEWIDTH 32|IDXTYPEWIDTH 64|' \
88
		${WRKSRC}/include/metis.h
89
.endif
85
.for o in SHARED #PROFILE
90
.for o in SHARED #PROFILE
86
.if ${PORT_OPTIONS:M${o}}
91
.if ${PORT_OPTIONS:M${o}}
87
	@${CP} -R ${WRKSRC} ${WRKSRC_${o}}
92
	@${CP} -R ${WRKSRC} ${WRKSRC_${o}}
(-)math/metis/files/patch-libmetis__CMakeLists.txt (-3 / +3 lines)
Lines 1-6 Link Here
1
--- libmetis/CMakeLists.txt.orig	2011-06-22 13:47:13.000000000 -0400
1
--- libmetis/CMakeLists.txt.orig	2013-03-30 16:24:45 UTC
2
+++ libmetis/CMakeLists.txt	2012-07-07 11:05:47.000000000 -0400
2
+++ libmetis/CMakeLists.txt
3
@@ -4,6 +4,9 @@
3
@@ -4,6 +4,9 @@ include_directories(.)
4
 file(GLOB metis_sources *.c)
4
 file(GLOB metis_sources *.c)
5
 # Build libmetis.
5
 # Build libmetis.
6
 add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})
6
 add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})

Return to bug 219749