blob: 75f95844dda67ece63da95e08dfa86f165e74d4a (
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
|
# Created by: Jason Evans <jasone@FreeBSD.org>
# $FreeBSD$
PORTNAME= crux
PORTVERSION= 1.2.0
PORTREVISION= 8
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
BROKEN_aarch64= Fails to link: ImportError: /lib/libgcc_s.so.1: version GCC_4.5.0 required by /usr/local/lib/gcc5/libgfortran.so.3 not found
BROKEN_armv6= Fails to link: ImportError: /usr/local/lib/gcc49/libgfortran.so.3: Undefined symbol "__aeabi_ldivmod"
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>
|