aboutsummaryrefslogtreecommitdiff
path: root/biology/vcflib/Makefile
blob: ce0cdd503e4187ceee6bb5e2df305f5e077d4488 (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
45
46
47
48
49
50
51
52
53
54
55
56
PORTNAME=		vcflib
DISTVERSIONPREFIX=	v
DISTVERSION=		1.0.0-rc1-130
PORTREVISION=	1
DISTVERSIONSUFFIX=	-g7e3d806
CATEGORIES=		biology

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	C++ library and CLI tools for parsing and manipulating VCF files

LICENSE=	MIT

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

LIB_DEPENDS=	libhts.so:biology/htslib \
		libtabix.so:biology/tabixpp \
		libsw.so:biology/smithwaterman
COMMON_DEPENDS=	fastahack:biology/fastahack \
		filevercmp:sysutils/filevercmp \
		fsom:science/fsom \
		multichoose>=1.0.3:math/multichoose \
		interval_tree_test:math/intervaltree
BUILD_DEPENDS=	${COMMON_DEPENDS}
RUN_DEPENDS=	${COMMON_DEPENDS}

USES=		gmake shebangfix
USE_LDCONFIG=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	ekg

CXXFLAGS+=	-I${LOCALBASE}/include/smithwaterman \
		-I${LOCALBASE}/include/multichoose \
		-I${LOCALBASE}/include/filevercmp \
		-I${LOCALBASE}/include/fastahack \
		-I${LOCALBASE}/include/intervaltree \
		-DVERSION='\"${PORTVERSION}\"'

# Clang and GCC disable sse2 by default on i386, but it's required for vcflib
CFLAGS_i386=	-msse2

MAKEFILE=	${FILESDIR}/Makefile.external-libs
INSTALL_TARGET=	install-strip

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc64le
CFLAGS+=	-DNO_WARN_X86_INTRINSICS
USES+=		compiler:gcc-c++11-lib 
.endif

post-install:
	${RLN} ${STAGEDIR}${PREFIX}/lib/libvcflib.so.1 \
		${STAGEDIR}${PREFIX}/lib/libvcflib.so

.include <bsd.port.mk>