2005-05-22 17:50:06 +02:00
|
|
|
# New ports collection makefile for: mbdyn
|
|
|
|
# Date created: 2005-01-30
|
|
|
|
# Whom: Kay Lehmann <kay_lehmann@web.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mbdyn
|
2011-09-07 04:19:30 +02:00
|
|
|
PORTVERSION= 1.4.0
|
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=''
|
|
|
|
|
2005-05-22 17:50:06 +02:00
|
|
|
OPTIONS= MPI "Enable mpich-support" off \
|
|
|
|
METIS "Enable metis-support" off \
|
2008-09-05 23:09:25 +02:00
|
|
|
CHACO "Enable chaco-support" off \
|
2005-05-22 17:50:06 +02:00
|
|
|
GINAC "Enable GiNaC-support (not implemented yet)" off \
|
|
|
|
TCL "Enable tcl-support (not implemented yet)" off
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2005-05-22 17:50:06 +02:00
|
|
|
.if defined(WITH_MPI)
|
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
|
|
|
|
. if !defined(WITH_METIS)
|
|
|
|
WITH_CHACO= yes
|
|
|
|
. endif
|
2005-05-22 17:50:06 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-mpi=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_METIS)
|
2009-08-05 07:25:45 +02:00
|
|
|
LIB_DEPENDS+= metis:${PORTSDIR}/math/metis
|
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
|
|
|
|
|
2008-09-05 23:09:25 +02:00
|
|
|
.if defined(WITH_CHACO)
|
|
|
|
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
|
|
|
|
|
2005-05-22 17:50:06 +02:00
|
|
|
.if defined(WITH_GINAC)
|
2011-08-26 00:25:45 +02:00
|
|
|
LIB_DEPENDS+= metis:${PORTSDIR}/math/metis \
|
|
|
|
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
|
|
|
|
|
|
|
|
.if defined(WITH_TCL)
|
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>
|