# $FreeBSD$

# Newer versions require registration to download and the site is unreliable.

PORTNAME=	pear
DISTVERSION=	0.9.6
CATEGORIES=	biology
MASTER_SITES=	https://depot.galaxyproject.org/software/pear/
PKGNAMESUFFIX=	-merger
DISTNAME=	${PORTNAME}_${PORTVERSION}_src_all

MAINTAINER=	jwb@FreeBSD.org
COMMENT=	Memory-efficient and highly accurate paired-end read merger

LICENSE=	CC-BY-NC-SA-3.0

BROKEN_aarch64=		fails to compile: invokes x86 assembler
BROKEN_armv6=		fails to compile: invokes x86 assembler
BROKEN_armv7=		fails to compile: invokes x86 assembler
BROKEN_riscv64=		fails to compile: invokes x86 assembler

GNU_CONFIGURE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src

PLIST_FILES=	bin/pearRM man/man1/pearRM.1.gz

do-install:
	@${CP} ${WRKSRC}/man/pear.1 ${WRKSRC}/man/pearRM.1
	${INSTALL_PROGRAM} ${WRKSRC}/src/pear ${STAGEDIR}${PREFIX}/bin/pearRM
	${INSTALL_MAN} ${WRKSRC}/man/pearRM.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>
