2013-04-29 00:08:22 +02:00
|
|
|
# Created by: Kay Lehmann <kay_lehmann@web.de>
|
2005-05-22 17:50:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mbdyn
|
2011-09-07 04:19:30 +02:00
|
|
|
PORTVERSION= 1.4.0
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 02:52:33 +02:00
|
|
|
PORTREVISION= 1
|
2005-05-22 17:50:06 +02:00
|
|
|
CATEGORIES= science
|
2007-10-08 20:26:19 +02:00
|
|
|
MASTER_SITES= http://www.aero.polimi.it/~masarati/Download/mbdyn/
|
2005-05-22 17:50:06 +02:00
|
|
|
|
2009-05-29 05:31:23 +02:00
|
|
|
MAINTAINER= maho@FreeBSD.org
|
2005-05-22 17:50:06 +02:00
|
|
|
COMMENT= A MultiBody Dynamics analysis system
|
|
|
|
|
2011-08-26 00:25:45 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
LIB_DEPENDS= arpack:${PORTSDIR}/math/arpack \
|
|
|
|
umfpack:${PORTSDIR}/math/suitesparse
|
2005-05-22 17:50:06 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2007-10-08 20:26:19 +02:00
|
|
|
USE_FORTRAN= yes
|
2005-05-22 17:50:06 +02:00
|
|
|
MAN1= mbdyn.1
|
2011-08-26 00:25:45 +02:00
|
|
|
CPPFLAGS+= -fpermissive -I${LOCALBASE}/include/suitesparse
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-08-05 07:25:45 +02:00
|
|
|
CONFIGURE_ARGS+= --program-prefix=''
|
|
|
|
|
2013-04-29 00:08:22 +02:00
|
|
|
OPTIONS_DEFINE= MPI METIS CHACO GINAC TCL
|
|
|
|
MPI_DESC= Enable mpich-support
|
|
|
|
METIS_DESC= Enable metis-support
|
|
|
|
CHACO_DESC= Enable chaco-support
|
|
|
|
GINAC_DESC= Enable GiNaC-support (not implemented yet)
|
|
|
|
TCL_DESC= Enable tcl-support (not implemented yet)
|
2005-05-22 17:50:06 +02:00
|
|
|
|
2013-09-21 00:48:30 +02:00
|
|
|
NO_STAGE= yes
|
2005-05-22 17:50:06 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-11-11 05:12:51 +01:00
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not compile on powerpc
|
|
|
|
.endif
|
|
|
|
|
2011-11-22 12:14:10 +01:00
|
|
|
WITH_BLAS?= reference
|
2009-08-05 07:25:45 +02:00
|
|
|
|
2011-11-22 12:14:10 +01:00
|
|
|
. if ${WITH_BLAS} == reference
|
2011-08-26 00:25:45 +02:00
|
|
|
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas \
|
|
|
|
lapack.4:${PORTSDIR}/math/lapack
|
2007-01-17 03:21:49 +01:00
|
|
|
CONFIGURE_ARGS+= --with-blas=blas
|
2011-08-26 00:25:45 +02:00
|
|
|
LAPACK_LIBS= -llapack
|
2011-11-22 12:14:10 +01:00
|
|
|
.elif ${WITH_BLAS} == gotoblas
|
2009-08-05 07:25:45 +02:00
|
|
|
LIB_DEPENDS+= goto:${PORTSDIR}/math/gotoblas
|
2011-08-26 00:25:45 +02:00
|
|
|
CONFIGURE_ARGS+= --with-blas=goto --with-goto=goto2
|
|
|
|
LAPACK_LIBS= -lgoto2
|
2011-11-22 12:14:10 +01:00
|
|
|
.elif ${WITH_BLAS} == atlas
|
2009-08-05 07:25:45 +02:00
|
|
|
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
|
2009-11-28 11:44:56 +01:00
|
|
|
CONFIGURE_ARGS+= --with-blas=atlas
|
2011-08-26 00:25:45 +02:00
|
|
|
LAPACK_LIBS= -lalapack
|
2007-01-17 03:21:49 +01:00
|
|
|
.endif
|
|
|
|
|
2013-04-29 00:08:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MMPI}
|
2009-08-05 07:25:45 +02:00
|
|
|
LIB_DEPENDS+= mpich:${PORTSDIR}/net/mpich2
|
2010-11-14 23:00:16 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mpi=yes --enable-schur
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2013-04-29 00:08:22 +02:00
|
|
|
. if ! ${PORT_OPTIONS:MMETIS}
|
2010-11-14 23:00:16 +01:00
|
|
|
WITH_CHACO= yes
|
|
|
|
. endif
|
2005-05-22 17:50:06 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-mpi=no
|
|
|
|
.endif
|
|
|
|
|
2013-04-29 00:08:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MMETIS}
|
2012-07-09 13:11:44 +02:00
|
|
|
LIB_DEPENDS+= metis.1:${PORTSDIR}/math/metis4
|
2005-05-22 17:50:06 +02:00
|
|
|
CONFIGURE_ARGS+= --with-metis=yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/metis
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-metis=no
|
|
|
|
.endif
|
|
|
|
|
2013-04-29 00:08:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MCHACO}
|
2008-09-05 23:09:25 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libchaco.a:${PORTSDIR}/math/chaco
|
2009-02-07 16:11:31 +01:00
|
|
|
CONFIGURE_ARGS+= --with-chaco=yes
|
2008-09-05 23:09:25 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-chaco=no
|
|
|
|
.endif
|
|
|
|
|
2013-04-29 00:08:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MGINAC}
|
2012-07-09 13:11:44 +02:00
|
|
|
LIB_DEPENDS+= metis.1:${PORTSDIR}/math/metis4 \
|
2011-08-26 00:25:45 +02:00
|
|
|
ginac:${PORTSDIR}/math/GiNaC
|
2005-05-22 17:50:06 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ginac=yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/metis
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-ginac=no
|
|
|
|
.endif
|
|
|
|
|
2013-04-29 00:08:22 +02:00
|
|
|
.if ${PORT_OPTIONS:MTCL}
|
2006-02-17 12:47:41 +01:00
|
|
|
IGNORE= you enabled Tcl-support, which is not implemented yet
|
2005-05-22 17:50:06 +02:00
|
|
|
LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl84
|
|
|
|
CONFIGURE_ARGS+= --with-tcl=yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/tcl8.4
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-tcl=no
|
|
|
|
.endif
|
|
|
|
|
2011-08-26 00:25:45 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e '/try_lapack_LIBS=/s/-llapack/${LAPACK_LIBS}/' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2005-05-22 17:50:06 +02:00
|
|
|
.include <bsd.port.post.mk>
|