summaryrefslogtreecommitdiff
path: root/biology/gemma/Makefile
blob: 12645ae26fd14cfdf37bc671ec3b48737242bf8d (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

PORTNAME=	gemma
DISTVERSION=	0.98.3
CATEGORIES=	biology

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Genome-wide Efficient Mixed Model Association

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgsl.so:math/gsl

USES=		blaslapack:openblas compiler:c++11-lang eigen:3 gmake \
		localbase:ldflags
USE_GITHUB=	yes
GH_ACCOUNT=	genetics-statistics
GH_PROJECT=	GEMMA

MAKEFILE=	${FILESDIR}/Makefile
# Assuming openblas is built with pthreads, not openmp
CXXFLAGS+=	-I${LOCALBASE}/include/eigen3 -DOPENBLAS -pthread
LDFLAGS+=	-lopenblas -pthread

OPTIONS_DEFINE=	EXAMPLES

pre-configure:
	@${REINPLACE_CMD} -e 's|../bin/gemma|../gemma|' ${WRKSRC}/test/*.sh

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

do-test:
	(cd ${WRKSRC}/test && ${SH} test_suite.sh)

.include <bsd.port.mk>