summaryrefslogtreecommitdiff
path: root/biology/htslib/Makefile
blob: 2c20fc9565283f29f1c65c3cec06da4821570ecd (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
# $NetBSD: Makefile,v 1.2 2018/07/04 13:40:09 jperkin Exp $

DISTNAME=	htslib-1.8
CATEGORIES=	biology
MASTER_SITES=	${MASTER_SITE_GITHUB:=samtools/}
GITHUB_PROJECT=	htslib
GITHUB_TAG=	${PKGVERSION_NOREV}

MAINTAINER=	bacon@NetBSD.org
HOMEPAGE=	http://www.htslib.org/
COMMENT=	C library for high-throughput sequencing data formats
LICENSE=	mit

USE_TOOLS+=	autoconf automake autoreconf gmake perl
GNU_CONFIGURE=	yes
REPLACE_PERL=	test/compare_sam.pl test/test.pl

SUBST_CLASSES+=		version
SUBST_STAGE.version=	pre-configure
SUBST_SED.version=	-e "s|m4_esyscmd_s(\[make print-version\])|[${PKGVERSION_NOREV}]|"
SUBST_FILES.version=	${WRKSRC}/configure.ac

PKGCONFIG_OVERRIDE=	htslib.pc.in

pre-configure:
	cd ${WRKSRC} && autoreconf

.include "../../devel/zlib/buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"