PORTNAME=		Jellyfish
DISTVERSIONPREFIX=	v
DISTVERSION=		2.3.0
PORTREVISION=		4
CATEGORIES=		biology
MASTER_SITES=		https://github.com/gmarcais/${PORTNAME}/releases/download/v2.3.0/	# Custom distfile reduces dependencies
DISTNAME=		${PORTNAME:tl}-${DISTVERSION}

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Fast, memory-efficient counting of k-mers in DNA
WWW=		http://www.genome.umd.edu/jellyfish.html

LICENSE=	BSD3CLAUSE GPLv3+
LICENSE_COMB=	dual
LICENSE_FILE_BSD3CLAUSE=	${WRKSRC}/LICENSE-BSD-3-Clause
LICENSE_FILE_GPLv3+ =		${WRKSRC}/LICENSE-GPL-3.0

LIB_DEPENDS=	libhts.so:biology/htslib

USES=		compiler:c++11-lib libtool
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share

INSTALL_TARGET=	install-strip
PLIST_SUB=	VER=${PORTVERSION}

OPTIONS_DEFINE=		NLS
OPTIONS_SUB=		yes

NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

.include <bsd.port.pre.mk>

# SSE code assumes amd64 features
.if ${ARCH} != "amd64"
CONFIGURE_ARGS+=--without-sse
.endif

.if ${CHOSEN_COMPILER_TYPE} == gcc
CXXFLAGS+=	-faligned-new
.endif

.include <bsd.port.post.mk>
