Lines 2-79
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= mbdyn |
4 |
PORTNAME= mbdyn |
5 |
PORTVERSION= 1.7.1 |
5 |
PORTVERSION= 1.7.2 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= science |
6 |
CATEGORIES= science |
8 |
MASTER_SITES= https://www.mbdyn.org/userfiles/downloads/ |
7 |
MASTER_SITES= https://www.mbdyn.org/userfiles/downloads/ |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= amutu@amutu.com |
11 |
COMMENT= MultiBody Dynamics analysis system |
10 |
COMMENT= MultiBody Dynamics analysis system |
12 |
|
11 |
|
13 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
14 |
|
|
|
15 |
BROKEN_powerpc= Does not compile on powerpc |
16 |
|
17 |
BUILD_DEPENDS= libatomic_ops>0:devel/libatomic_ops |
16 |
LIB_DEPENDS= libltdl.so:devel/libltdl \ |
18 |
LIB_DEPENDS= libltdl.so:devel/libltdl \ |
17 |
libarpack.so:math/arpack \ |
19 |
libarpack.so:math/arpack \ |
18 |
libumfpack.so:math/suitesparse |
20 |
libumfpack.so:math/suitesparse |
19 |
|
21 |
|
20 |
BROKEN_powerpc= Does not compile on powerpc |
|
|
21 |
|
22 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
23 |
USES= compiler:c++11-lib fortran gmake libtool localbase |
23 |
USES= compiler:c++11-lib fortran gmake libtool:build localbase |
24 |
USE_LDCONFIG= yes |
24 |
USE_LDCONFIG= yes |
25 |
CPPFLAGS+= -fpermissive -I${LOCALBASE}/include/suitesparse |
25 |
CPPFLAGS+= -fpermissive -I${LOCALBASE}/include/suitesparse |
26 |
CONFIGURE_ARGS+= --program-prefix='' |
26 |
CONFIGURE_ARGS= --program-prefix='' --enable-multithread --with-mpi=no \ |
|
|
27 |
--with-ginac=no |
27 |
INSTALL_TARGET= install-strip |
28 |
INSTALL_TARGET= install-strip |
28 |
|
29 |
|
29 |
OPTIONS_DEFINE= MPI METIS CHACO GINAC |
30 |
OPTIONS_DEFINE= METIS CHACO |
30 |
OPTIONS_RADIO= BLAS |
31 |
OPTIONS_RADIO= BLAS |
31 |
OPTIONS_RADIO_BLAS= REFERENCE GOTOBLAS ATLAS |
32 |
OPTIONS_RADIO_BLAS= REFERENCE GOTOBLAS ATLAS |
32 |
OPTIONS_DEFAULT= REFERENCE |
33 |
OPTIONS_DEFAULT= REFERENCE |
33 |
|
34 |
|
|
|
35 |
ATLAS_DESC= ATLAS |
36 |
CHACO_DESC= Enable chaco-support |
37 |
GOTOBLAS_DESC= GotoBLAS2 |
38 |
METIS_DESC= Enable metis-support |
34 |
REFERENCE_DESC= Blas / Lapack |
39 |
REFERENCE_DESC= Blas / Lapack |
35 |
REFERENCE_USES= blaslapack:netlib |
|
|
36 |
REFERENCE_CONFIGURE_ON= --with-blas=blas |
37 |
|
40 |
|
38 |
ATLAS_DESC= ATLAS |
41 |
ATLAS_CONFIGURE_ON= --with-blas=atlas |
39 |
ATLAS_USES= blaslapack:atlas |
42 |
ATLAS_USES= blaslapack:atlas |
40 |
ATLAS_CONFIGURE_ON= --with-blas=atlas |
|
|
41 |
|
43 |
|
42 |
GOTOBLAS_DESC= GotoBLAS2 |
|
|
43 |
GOTOBLAS_USES= blaslapack:gotoblas |
44 |
GOTOBLAS_CONFIGURE_ON= --with-blas=goto --with-goto=goto2 |
45 |
|
46 |
MPI_DESC= Enable mpich-support (Requires Metis or Chaco, broken) |
47 |
MPI_IGNORE= you enabled MPI support, which is broken |
48 |
MPI_BUILD_DEPENDS_OFF= libatomic_ops>0:devel/libatomic_ops |
49 |
MPI_LIB_DEPENDS= libmpich.so:net/mpich2 |
50 |
MPI_CONFIGURE_ON= --with-mpi=yes --enable-schur |
51 |
MPI_CONFIGURE_OFF= --with-mpi=no --enable-multithread |
52 |
|
53 |
METIS_DESC= Enable metis-support |
54 |
METIS_LIB_DEPENDS= libmetis.so:math/metis4 |
55 |
METIS_CONFIGURE_ON= --with-metis=yes |
56 |
METIS_CPPFLAGS= -I${LOCALBASE}/include/metis |
57 |
METIS_CONFIGURE_OFF= --with-metis=no |
58 |
|
59 |
CHACO_DESC= Enable chaco-support |
60 |
CHACO_BUILD_DEPENDS= ${LOCALBASE}/lib/libchaco.a:math/chaco |
44 |
CHACO_BUILD_DEPENDS= ${LOCALBASE}/lib/libchaco.a:math/chaco |
61 |
CHACO_CONFIGURE_ON= --with-chaco=yes |
45 |
CHACO_CONFIGURE_ON= --with-chaco=yes |
62 |
CHACO_CONFIGURE_OFF= --with-chaco=no |
46 |
CHACO_CONFIGURE_OFF= --with-chaco=no |
63 |
|
47 |
|
64 |
GINAC_DESC= Enable GiNaC-support (not implemented yet) |
48 |
GOTOBLAS_CONFIGURE_ON= --with-blas=goto --with-goto=goto2 |
65 |
GINAC_IGNORE= you enabled GiNaC-support, which is broken |
49 |
GOTOBLAS_USES= blaslapack:gotoblas |
66 |
GINAC_LIB_DEPENDS= libmetis.so:math/metis4 \ |
|
|
67 |
libginac.so:math/GiNaC |
68 |
GINAC_CONFIGURE_ON= --with-ginac=yes |
69 |
GINAC_CONFIGURE_OFF= --with-ginac=no |
70 |
GINAC_CPPFLAGS= -I${LOCALBASE}/include/metis |
71 |
|
50 |
|
72 |
.include <bsd.port.pre.mk> |
51 |
METIS_CONFIGURE_ON= --with-metis=yes |
|
|
52 |
METIS_CONFIGURE_OFF= --with-metis=no |
53 |
METIS_CPPFLAGS= -I${LOCALBASE}/include/metis |
54 |
METIS_LIB_DEPENDS= libmetis.so:math/metis4 |
73 |
|
55 |
|
74 |
.if ${PORT_OPTIONS:MMPI} && ! ${PORT_OPTIONS:MMETIS} |
56 |
REFERENCE_CONFIGURE_ON= --with-blas=blas |
75 |
WITH_CHACO= yes |
57 |
REFERENCE_USES= blaslapack:netlib |
76 |
.endif |
|
|
77 |
|
58 |
|
78 |
pre-configure: |
59 |
pre-configure: |
79 |
${REINPLACE_CMD} -e '/try_lapack_LIBS=/s/-llapack/${LAPACKLIB}/' \ |
60 |
${REINPLACE_CMD} -e '/try_lapack_LIBS=/s/-llapack/${LAPACKLIB}/' \ |
Lines 80-83
Link Here
|
80 |
-e 's/ -lxerbla//; s/-lcholmod/-lcholmod ${BLASLIB} ${LAPACKLIB} -lsuitesparseconfig/' \ |
61 |
-e 's/ -lxerbla//; s/-lcholmod/-lcholmod ${BLASLIB} ${LAPACKLIB} -lsuitesparseconfig/' \ |
81 |
${WRKSRC}/configure |
62 |
${WRKSRC}/configure |
82 |
|
63 |
|
83 |
.include <bsd.port.post.mk> |
64 |
.include <bsd.port.mk> |