summaryrefslogtreecommitdiff
path: root/biology/crimap/Makefile
blob: beccaef2cb94048c273951c073fbb050ebc8a904 (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
# New ports collection makefile for:	crimap
# Date created:				4 December 2001
# Whom:					Tony Maher <tonym@biolateral.com.au>
#
# $FreeBSD$
#

PORTNAME=	crimap
PORTVERSION=	2.4
CATEGORIES=	biology
MASTER_SITES=	http://compgen.rutgers.edu/multimap/crimap/
DISTNAME=	${PORTNAME}.source
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Creation of multilocus linkage maps

NO_WRKSUBDIR=	true

PROGRAMS=	crimap
EXAMPLES=	chr7a.gen demo.dat
EXIT_PATCH=	e_ped.c get_log.c our_allo.c our_orde.c

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700042
BROKEN=		Broken with gcc 4.2
.endif

post-patch:
.for file in ${EXIT_PATCH}
	@${REINPLACE_CMD} -e 's|exit\ *()|exit(0)|' ${WRKSRC}/${file}
.endfor

do-build:
	cd ${WRKSRC}; \
	${CC} ${CFLAGS} -o crimap *.c -lm

do-install:
.for file in ${PROGRAMS}
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	@${MKDIR} ${DOCSDIR}
	${CAT} ${WRKSRC}/progdoc_v2.4 | tbl | eqn -Tlatin1 | nroff -ms -t \
		> ${DOCSDIR}/progdoc_v2.4
.for file in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.post.mk>