aboutsummaryrefslogtreecommitdiff
path: root/science/liggghts/Makefile
blob: 67dbf51aa74bdabf4e6f9c692fa22fbb07aee918 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
PORTNAME=	liggghts
DISTVERSION=	3.8.0-58
DISTVERSIONSUFFIX=	-g6e28cfe3
CATEGORIES=	science

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Discrete element method particle simulation software
WWW=		https://www.cfdem.com/liggghts-open-source-discrete-element-method-particle-simulation-code

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/../LICENSE

BUILD_DEPENDS=	gsed:textproc/gsed
LIB_DEPENDS=	libexpat.so:textproc/expat2 \
		libfreetype.so:print/freetype2 \
		libhdf5_hl.so:science/hdf5 \
		libmpi.so:net/mpich \
		libnetcdf.so:science/netcdf \
		libpng.so:graphics/png \
		libtiff.so:graphics/tiff \
		libvtkViewsCore-9.1.so:math/vtk9

USES=		compiler:c++17-lang cmake fortran gl jpeg python qt:5 xorg
USE_XORG=	ice sm x11 xext xt
USE_QT=		core declarative gui network opengl sql widgets qmake:build buildtools:build
USE_GL=		gl
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	CFDEMproject
GH_PROJECT=	${PORTNAME:tu}-PUBLIC

CMAKE_ARGS=	-DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-9.1 \
		-DPython3_EXECUTABLE=${PYTHON_CMD}

WRKSRC_SUBDIR=	src

CFLAGS+=	-fPIC
CXXFLAGS+=	-fPIC \
		-I${LOCALBASE}/include/vtk-9.1

BINARY_ALIAS=	sed=gsed

.include <bsd.port.mk>