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

Collapse All | Expand All

(-)science/cp2k/Makefile (-2 / +11 lines)
Lines 43-49 Link Here
43
SERIAL_VARS=		VERSION=sopt
43
SERIAL_VARS=		VERSION=sopt
44
44
45
OPENMP_VARS=		VERSION=ssmp
45
OPENMP_VARS=		VERSION=ssmp
46
OPENMP_BROKEN=		undefined reference to `dfftw_plan_with_nthreads_': https://github.com/cp2k/cp2k/issues/12 (need OPENMP=on in math/fftw3 ?)
47
46
48
MPI_VARS=		VERSION=popt
47
MPI_VARS=		VERSION=popt
49
MPI_LIB_DEPENDS=	libmpich.so:net/mpich2 \
48
MPI_LIB_DEPENDS=	libmpich.so:net/mpich2 \
Lines 52-61 Link Here
52
OPENMP_MPI_DESC=	Enable both OpenMP and MPI
51
OPENMP_MPI_DESC=	Enable both OpenMP and MPI
53
OPENMP_MPI_VARS=	VERSION=psmp
52
OPENMP_MPI_VARS=	VERSION=psmp
54
OPENMP_MPI_LIB_DEPENDS=	${MPI_LIB_DEPENDS}
53
OPENMP_MPI_LIB_DEPENDS=	${MPI_LIB_DEPENDS}
55
OPENMP_MPI_BROKEN=	${OPENMP_BROKEN}
56
54
57
PLIST_FILES=		bin/${PORTNAME}
55
PLIST_FILES=		bin/${PORTNAME}
58
56
57
.include <bsd.port.options.mk>
58
59
.if ${PORT_OPTIONS:MOPENMP} || ${PORT_OPTIONS:MOPENMP_MPI}
60
pre-configure:
61
	@(if [ ! -e ${LOCALBASE}/lib/libfftw3_omp.so ] ; then \
62
	${ECHO_MSG} "The OPENMP and OPENMP_MPI options require math/fftw3" ; \
63
	${ECHO_MSG} "to be built and installed with the OPENMP option ON" ; \
64
	exit 1; \
65
	fi)
66
.endif
67
59
post-patch:
68
post-patch:
60
	@${REINPLACE_CMD} 's|LIBS.*=.*|& ${LDFLAGS}|; s|^FCFLAGS.*=.*|& -I${LOCALBASE}/include|' ${WRKSRC}/arch/FreeBSD-*
69
	@${REINPLACE_CMD} 's|LIBS.*=.*|& ${LDFLAGS}|; s|^FCFLAGS.*=.*|& -I${LOCALBASE}/include|' ${WRKSRC}/arch/FreeBSD-*
61
70

Return to bug 231163