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

Collapse All | Expand All

(-)math/petsc/Makefile (-2 / +10 lines)
Lines 28-35 Link Here
28
			PETSC_DIR=${WRKSRC}
28
			PETSC_DIR=${WRKSRC}
29
CONFIGURE_ARGS=		--prefix=${PREFIX}/${PFX} --COPTFLAGS="${CFLAGS}"	\
29
CONFIGURE_ARGS=		--prefix=${PREFIX}/${PFX} --COPTFLAGS="${CFLAGS}"	\
30
			--CXXOPTFLAGS="${CXXFLAGS}" --FOPTFLAGS="${FFLAGS}"	\
30
			--CXXOPTFLAGS="${CXXFLAGS}" --FOPTFLAGS="${FFLAGS}"	\
31
			--with-shared=1 --with-cc=${CC} --with-fc=${FC}	\
31
			--with-shared=1 --with-cc=${CC} --with-fc=${FC}		\
32
			--CPPFLAGS="-I${LOCALBASE}/include"
32
			--CPPFLAGS="-I${LOCALBASE}/include" --LDFLAGS=${PTHREAD_LIBS}
33
ALL_TARGET=		all
33
ALL_TARGET=		all
34
MAKEFILE=		makefile
34
MAKEFILE=		makefile
35
MAKE_ENV=		PETSC_DIR=${WRKSRC}
35
MAKE_ENV=		PETSC_DIR=${WRKSRC}
Lines 258-263 Link Here
258
	${REINPLACE_CMD} -e "s|/bin/ksh|${LOCALBASE}/bin/ksh|"	\
258
	${REINPLACE_CMD} -e "s|/bin/ksh|${LOCALBASE}/bin/ksh|"	\
259
		${WRKSRC}/bin/popup
259
		${WRKSRC}/bin/popup
260
	@${RM} ${WRKSRC}/bin/popup.bak
260
	@${RM} ${WRKSRC}/bin/popup.bak
261
.if defined (WITH_MPI)
262
. for ps in ml.py MPE.py
263
	${REINPLACE_CMD} -e "s|-lpmpich|-lmpl|"	\
264
		${WRKSRC}/python/PETSc/packages/${ps}
265
. endfor
266
	${REINPLACE_CMD} -e "s|libpmpich|libmpl|"	\
267
		${WRKSRC}/python/BuildSystem/config/packages/MPI.py
268
.endif
261
.if defined(PACKAGE_BUILDING)
269
.if defined(PACKAGE_BUILDING)
262
	${REINPLACE_CMD} -e "s|%%PACKAGE%%exit 1; ||"		\
270
	${REINPLACE_CMD} -e "s|%%PACKAGE%%exit 1; ||"		\
263
		-e "s|%%PACKAGE%%sys.exit(3)||"			\
271
		-e "s|%%PACKAGE%%sys.exit(3)||"			\

Return to bug 151867