summaryrefslogtreecommitdiff
path: root/science/mdynamix/Makefile
blob: f4fa675ab74dd27184dee249d443739125923da1 (plain)
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
# $FreeBSD$

PORTNAME=	mdynamix
DISTVERSION=	5.2.8
PORTREVISION=	4
CATEGORIES=	science
MASTER_SITES=	http://www.fos.su.se/~sasha/${PORTNAME}/versions/
DISTNAME=	md${DISTVERSION:S/.//g}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	General purpose molecular dynamics code

LICENSE=	GPLv2+

LIB_DEPENDS=	libmpich.so:net/mpich

USES=		fortran gmake

ALL_TARGET=	default mpi
MAKE_ARGS=	FFLAGS="${FFLAGS} -ffast-math" LDFLAGS="${LDFLAGS}"
BINARY_ALIAS=	make=gmake gfortran=gfortran${GCC_DEFAULT}

PLIST_FILES=	bin/md bin/mdp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/md ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/mdp ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>