Bump biology/bcftools to version 1.6_1
[dports.git] / biology / bcftools / Makefile
1 # Created by: Reed A. Cartwright <cartwright@asu.edu>
2 # $FreeBSD$
3
4 PORTNAME=       bcftools
5 PORTVERSION=    1.6
6 PORTREVISION=   1
7 CATEGORIES=     biology
8
9 MAINTAINER=     cartwright@asu.edu
10 COMMENT=        Tools for manipulating next-generation sequencing data
11
12 LICENSE=        MIT
13 # LICENSE_FILE= ${WRKSRC}/LICENSE
14
15 BUILD_DEPENDS=  htslib>=1.6:biology/htslib
16 LIB_DEPENDS=    libhts.so:biology/htslib
17 TEST_DEPENDS=   bash:shells/bash
18
19 CONFLICTS_BUILD=openssl
20
21 USE_GITHUB=     yes
22 GH_ACCOUNT=     samtools
23
24 USES=           autoreconf gmake perl5 python:env shebangfix
25 USE_PERL5=      test
26 GNU_CONFIGURE=  yes
27 SUB_FILES=      pkg-message
28 SHEBANG_FILES=  misc/* test/test.pl
29
30 OPTIONS_DEFINE= GPL
31 GPL_DESC=       Enable modules that rely on GPL code
32 OPTIONS_DEFAULT=        GPL
33
34 GPL_LIB_DEPENDS=        libgsl.so:math/gsl
35
36 .include <bsd.port.options.mk>
37
38 CPPFLAGS+=      -I${LOCALBASE}/include
39 LDFLAGS+=       -L${LOCALBASE}/lib
40
41 .if ${PORT_OPTIONS:MGPL}
42 MAKE_ENV+=      USE_GPL=1
43 LICENSE=        GPLv3
44 .endif
45
46 TEST_TARGET=    test
47
48 post-patch:
49         @${GREP} -q '@PORTVERSION@' ${WRKSRC}/configure.ac || (echo "@PORTVERSION@ in file/patch-configure.ac is overwritten probably due to using 'make makepatch'"; exit 1)
50         @${REINPLACE_CMD} -e 's|@PORTVERSION@|${PORTVERSION}|g' ${WRKSRC}/configure.ac
51
52 .include <bsd.port.mk>