pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

elmerfem: depend wip/paraview, add rpath



Module Name:	pkgsrc-wip
Committed By:	Atsushi Toyokura <asteria.at%gmail.com@localhost>
Pushed By:	steleto
Date:		Mon Apr 3 23:43:19 2023 +0900
Changeset:	b43d19658faa9712adbafc5f00db9aa4c702f056

Modified Files:
	elmerfem/Makefile

Log Message:
elmerfem: depend wip/paraview, add rpath

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b43d19658faa9712adbafc5f00db9aa4c702f056

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 elmerfem/Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diffs:
diff --git a/elmerfem/Makefile b/elmerfem/Makefile
index 56275a8f1e..eda27f8700 100644
--- a/elmerfem/Makefile
+++ b/elmerfem/Makefile
@@ -16,10 +16,20 @@ LICENSE=	gnu-gpl-v2
 CMAKE_CONFIGURE_ARGS+=	-DWITH_OpenMP:BOOLEAN=TRUE
 CMAKE_CONFIGURE_ARGS+=	-DWITH_MPI:BOOLEAN=TRUE
 CMAKE_CONFIGURE_ARGS+=	-DWITH_ELMERGUI:BOOLEAN=TRUE
+CMAKE_CONFIGURE_ARGS+=	-DWITH_PARAVIEW:BOOLEAN=TRUE
+#CMAKE_CONFIGURE_ARGS+=	-DELMER_INSTALL_LIB_DIR=${PREFIX}/lib
+
+DEPENDS+=	paraview-[0-9]*:../../wip/paraview
 
 WRKSRC=		${WRKDIR}/elmerfem-${DISTNAME}
 USE_LANGUAGES=	c c++ fortran
 
+SUBST_CLASSES+=		rpath
+SUBST_STAGE.rpath=	post-configure
+SUBST_MESSAGE.rpath=	Add RPATH
+SUBST_FILES.rpath=	${CMAKE_BUILD_DIR}/fem/src/CMakeFiles/Solver_TGT.dir/link.txt
+SUBST_SED.rpath=	"s|-O|-Wl,-R${PREFIX}/lib/elmersolver -O|"
+
 .include "../../devel/libexecinfo/buildlink3.mk"
 .include "../../math/lapack/buildlink3.mk"
 .include "../../mk/mpi.buildlink3.mk"


Home | Main Index | Thread Index | Old Index