summaryrefslogtreecommitdiff
path: root/biology/plink/Makefile
blob: 63ba8f64f840bd0dc6d1ae55556e896e233baf5f (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
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.4 2015/12/29 04:54:37 dholland Exp $

DISTNAME=	plink-1.07-src
PKGNAME=	$(DISTNAME:-src=)
CATEGORIES=	biology
MASTER_SITES=	http://pngu.mgh.harvard.edu/~purcell/plink/dist/
EXTRACT_SUFX=	.zip

MAINTAINER=	jwbacon@tds.net
HOMEPAGE=	http://pngu.mgh.harvard.edu/~purcell/plink/
COMMENT=	Whole-genome association analysis toolset
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	c c++ fortran77
USE_TOOLS+=	gmake

CXXFLAGS+=	-Dfopen64=fopen

MAKE_FLAGS+=	LIBDL=${DL_LIBS:Q}

LIB_LAPACK=	-L${LOCALBASE}/lib ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib -llapack -lblas -lf2c
MAKE_FLAGS+=	WITH_LAPACK=1 LIB_LAPACK=${LIB_LAPACK:Q}

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
MAKE_ENV+=	LIB="-lsocket -lnsl"
.endif

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/plink ${DESTDIR}${PREFIX}/bin

do-test:
	cd $(WRKSRC) && ./plink --file test
	cd $(WRKSRC) && ./plink --file test --freq
	cd $(WRKSRC) && ./plink --file test --assoc
	cd $(WRKSRC) && ./plink --file test --make-bed

.include "../../devel/libf2c/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../math/lapack/buildlink3.mk"
.include "../../math/blas/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"