# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD: biology/recombine/Makefile 327709 2013-09-20 15:55:44Z bapt $

PORTNAME=	recombine
PORTVERSION=	1.41
CATEGORIES=	biology
MASTER_SITES=	http://evolution.gs.washington.edu/lamarc/recombine/
DISTNAME=	${PORTNAME}${PORTVERSION}.src.doc

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Program to fit population models across sites

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

ALL_TARGET=	${PORTNAME}

PLIST_FILES+=	bin/filetran bin/recombine
PORTDOCS=	recombine.txt

OPTIONS_DEFINE=	DOCS

NO_STAGE=	yes
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKSRC}/filetran ${PREFIX}/bin/

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/recombine.txt ${DOCSDIR}/
.endif

.include <bsd.port.mk>
