aboutsummaryrefslogtreecommitdiff
path: root/biology/migrate/Makefile
blob: d012d994a1d254561dbcbbfb9f3ce8a434dba849 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	migrate
# Date created:		6 August 2001
# Whom:	      		Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	migrate
PORTVERSION=	2.0.3
CATEGORIES=	biology
MASTER_SITES=	ftp://evolution.genetics.washington.edu/pub/lamarc/migrate/
DISTNAME=	${PORTNAME}-${PORTVERSION}.src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A program to estimate population sizes and migration rates

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE=	yes

MAN1=		migrate.1
MLINKS=		migrate.1 migrate-n.1

DOCS=		HISTORY HOWTO-PARALLEL README migrate.html
EXAMPLES=	README infile.benchmark infile.ep infile.msat infile.seq \
		parmfile parmfile.benchmark parmfile.ep parmfile.msat \
		parmfile.seq

post-patch:
		@${REINPLACE_CMD} 's,-falign-loops=16,,g' ${WRKSRC}/configure

do-install:
	@ ${INSTALL_PROGRAM} ${WRKSRC}/migrate-n ${PREFIX}/bin
	@ cd ${PREFIX}/bin && ${LN} -s migrate-n migrate
	@ ${INSTALL_MAN} ${WRKSRC}/migrate.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${DOCSDIR}/graphics
.for file in ${DOCS}
	@ ${INSTALL_DATA} ${WRKSRC}/../${file} ${DOCSDIR}
.endfor
	@ ${MKDIR} ${EXAMPLESDIR}
.for file in ${EXAMPLES}
	@ ${INSTALL_DATA} ${WRKSRC}/../example/${file} ${EXAMPLESDIR}
.endfor
	@ ${INSTALL_DATA} ${WRKSRC}/../graphics/* ${DOCSDIR}/graphics
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha"
BROKEN=		"Does not compile"
.endif

.include <bsd.port.post.mk>