aboutsummaryrefslogtreecommitdiffstats
path: root/biology/crux/Makefile
blob: 437c646d1308884edb3a2ae1f60f6101785e782a (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
# New ports collection makefile for:   crux
# Date created:        8 June 2009
# Whom:                jasone
#
# $FreeBSD$
#

PORTNAME=      crux
PORTVERSION=   1.0.1
CATEGORIES=    python biology
MASTER_SITES=  http://www.canonware.com/download/Crux/

MAINTAINER=    jasone@FreeBSD.org
COMMENT=       Software toolkit for phylogenetic inference

USE_BZIP2=     yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS=--with-python=${PYTHON_CMD} --disable-mpi
USE_CSTD=      gnu99
USE_GMAKE=     yes
USE_PYTHON=    2.5+

OPTIONS=       SYS_LINALG "Enable system ATLAS/LAPACK" Off

.include <bsd.port.pre.mk>

.if defined(WITH_SYS_LINALG)
CPPFLAGS+=      -I${LOCALBASE}/include
LDFLAGS+=       -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --enable-sys-linalg
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
LIB_DEPENDS+=   atlas.2:${PORTSDIR}/math/atlas
.else
CONFIGURE_ARGS+= --disable-sys-linalg
USE_FORTRAN=   yes
.endif

post-install:
    @${PREFIX}/bin/crux -b -q /dev/null

.include <bsd.port.post.mk>