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

Collapse All | Expand All

(-)b/science/mmg/Makefile (-6 / +4 lines)
Lines 1-6 Link Here
1
PORTNAME=	mmg
1
PORTNAME=	mmg
2
PORTVERSION=	5.7.3
3
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	5.7.3
4
CATEGORIES=	science
4
CATEGORIES=	science
5
5
6
MAINTAINER=	thierry@FreeBSD.org
6
MAINTAINER=	thierry@FreeBSD.org
Lines 10-30 WWW= https://www.mmgtools.org/ Link Here
10
LICENSE=	LGPL3
10
LICENSE=	LGPL3
11
LICENSE_FILE=	${WRKSRC}/LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
12
13
BUILD_DEPENDS=	git:devel/git	\
14
		bash:shells/bash
15
LIB_DEPENDS=	libscotch.so:cad/scotch	\
13
LIB_DEPENDS=	libscotch.so:cad/scotch	\
16
		libElas.so:science/linearelasticity	\
14
		libElas.so:science/linearelasticity	\
17
		libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R}
15
		libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R}
18
16
19
USES=		cmake:testing perl5 shebangfix
17
USES=		cmake perl5 shebangfix
20
USE_PERL5=	build
18
USE_PERL5=	build
21
SHEBANG_FILES=	scripts/*.sh
19
SHEBANG_FILES=	scripts/*.pl
20
USE_LDCONFIG=	yes
22
21
23
USE_GITHUB=	yes
22
USE_GITHUB=	yes
24
GH_ACCOUNT=	MmgTools
23
GH_ACCOUNT=	MmgTools
25
24
26
CMAKE_ON=	BUILD_SHARED_LIBS
25
CMAKE_ON=	BUILD_SHARED_LIBS
27
USE_LDCONFIG=	yes
28
26
29
.include <../../math/vtk9/Makefile.version>
27
.include <../../math/vtk9/Makefile.version>
30
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)b/science/mmg/files/patch-CMakeLists.txt (+14 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2024-04-25 08:15:24 UTC
2
+++ CMakeLists.txt
3
@@ -124,10 +124,7 @@ IF (NOT WIN32 OR MINGW)
4
 IF (NOT WIN32 OR MINGW)
5
 
6
   ADD_CUSTOM_TARGET(GenerateGitHashMmg
7
-    COMMAND ./git_log_mmg.sh ${PROJECT_SOURCE_DIR} ${MMGCOMMON_BINARY_DIR}
8
-    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/scripts/
9
-    COMMENT "Getting git commit hash"
10
-    BYPRODUCTS ${MMGCOMMON_BINARY_DIR}/git_log_mmg.h
11
+    COMMAND cp ${PROJECT_SOURCE_DIR}/git_log_mmg.h ${MMGCOMMON_BINARY_DIR}/git_log_mmg.h
12
   )
13
 ENDIF ()
14
 
(-)b/science/mmg/files/patch-git__log__mmg.h (+9 lines)
Added Link Here
1
--- git_log_mmg.h.orig	2024-06-23 16:47:08 UTC
2
+++ git_log_mmg.h
3
@@ -0,0 +1,6 @@
4
+#ifndef _GIT_LOG_MMG_H
5
+#define _GIT_LOG_MMG_H
6
+#define MMG_GIT_BRANCH "No git branch found"
7
+#define MMG_GIT_COMMIT "No git commit found"
8
+#define MMG_GIT_DATE   "No git commit found"
9
+#endif

Return to bug 279935