summaryrefslogtreecommitdiff
path: root/math/hipmcl/Makefile
blob: 1de4df291602e5cc159d6d7d0c25ca9cae12eb59 (plain)
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
# $FreeBSD$

PORTNAME=	HipMCL
DISTVERSION=	g20180814
PORTREVISION=	2
CATEGORIES=	math
MASTER_SITES=	https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	High-performance parallel algorithm for large-scale network clustering

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/license.txt

LIB_DEPENDS=	libCombBLAS.so:math/combblas \
		libmpi.so:net/mpich \
		libomp.so:devel/openmp
RUN_DEPENDS=	${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so.1:lang/gcc${GCC_DEFAULT} # because of the link flags induced by mpich

USES=		cmake compiler:c++14-lang dos2unix localbase:ldflags
DOS2UNIX_FILES=	CMakeLists.txt

BB_ACCOUNT=	azadcse
BB_PROJECT=	${PORTNAME:tl}
BB_COMMIT=	e20476acc473

WRKSRC=		${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT}

PLIST_FILES=	bin/${PORTNAME:tl}

post-extract:
	@${RM} -r ${WRKSRC}/src/CombBLAS

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bin/hipmcl ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>