summaryrefslogtreecommitdiff
path: root/biology/unanimity/Makefile
blob: 1db1dd6cce01f0a265d3ca62253c9eb57874c614 (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
# $FreeBSD$

PORTNAME=		unanimity
DISTVERSIONPREFIX=	v
DISTVERSION=		3.1.0
PORTREVISION=		1
CATEGORIES=		biology

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Pacific Biosciences consensus library and applications

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_aarch64=		fails to compile: mmintrin.h:47:5: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?

# Sensitive to dependency versions, use latest commit for everything
BUILD_DEPENDS=	pbseqan>=g20171002:biology/pbseqan \
		pbbam>=g20180416:biology/pbbam \
		pbcopper>=g20180413:biology/pbcopper
LIB_DEPENDS=	libhts.so:biology/htslib \
		libboost_regex.so:devel/boost-libs

USES=		cmake compiler:c++14-lang pkgconfig python
USE_GITHUB=	yes
GH_ACCOUNT=	PacificBiosciences

CMAKE_ARGS+=	-DHTSLIB_INCLUDE_DIRS:STRING=${LOCALBASE}/include/htslib \
		-DHTSLIB_LIBRARIES:STRING="-L${LOCALBASE}/lib -lhts" \
		-DPacBioBAM_INCLUDE_DIRS:STRING=${LOCALBASE}/include/pbbam \
		-DPacBioBAM_LIBRARIES:STRING="-L${LOCALBASE}/lib -lpbbam" \
		-DSEQAN_INCLUDE_DIRS:STRING=${LOCALBASE}/include/PacBio \
		-Dpbcopper_INCLUDE_DIRS=${LOCALBASE}/include \
		-Dpbcopper_LIBRARIES="-L${LOCALBASE}/lib -lpbcopper"
CFLAGS_i386=	-msse2 -Wno-c++11-narrowing

PLIST_FILES=	bin/arrow bin/ccs bin/gcpp lib/libcc2.a lib/libunanimity.a

post-install:
	${INSTALL_DATA} ${WRKSRC}/src/libcc2.a ${WRKSRC}/src/libunanimity.a \
		${STAGEDIR}${PREFIX}/lib

.include <bsd.port.mk>