blob: 6131e4c47f473cc935fb710023ecc2d45df7c629 (
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
|
# Created by: Jason Evans <jasone@FreeBSD.org>
# $FreeBSD$
PORTNAME= crux
PORTVERSION= 1.2.0
PORTREVISION= 6
CATEGORIES= biology python
MASTER_SITES= http://www.canonware.com/download/Crux/
MAINTAINER= ports@FreeBSD.org
COMMENT= Software toolkit for phylogenetic inference
LICENSE= BSD2CLAUSE BSD3CLAUSE
LICENSE_COMB= multi
USES= fortran gmake python tar:bzip2
USE_CSTD= gnu99
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${PREFIX}/lib \
--with-python=${PYTHON_CMD} \
--disable-mpi
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= SYS_LINALG
SYS_LINALG_DESC= Enable system ATLAS/LAPACK
SYS_LINALG_LIB_DEPENDS= libatlas.so:math/atlas
SYS_LINALG_CONFIGURE_ENABLE= sys-linalg
post-patch:
@${REINPLACE_CMD} -e '/altivec/s|-f|-m|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|\([[:blank:]]\)\($$(BINDIR)\)|\1$$(DESTDIR)\2| ; \
s|\([[:blank:]]\)\($$(DATADIR)\)|\1$$(DESTDIR)\2| ; \
s|\(,\)\(@site_packages@\)|\1$$(DESTDIR)\2| ; \
s|\([[:blank:]]\)\(@site_packages@\)|\1$$(DESTDIR)\2|' \
${WRKSRC}/Makefile.in
post-install:
@(${FIND} ${STAGEDIR}${PREFIX}/lib/Crux/lib -maxdepth 1 -type f \
-name "*.so" | ${XARGS} ${STRIP_CMD})
@(${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -maxdepth 3 -type f \
-name "*.so" | ${XARGS} ${STRIP_CMD})
.include <bsd.port.mk>
|