aboutsummaryrefslogtreecommitdiffstats
path: root/science/gromacs/Makefile
blob: 16468a6d4b04f44054dba2533597d06cab74125d (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# New ports collection makefile for: gromacs
# Date created:     August 28 2004
# Whom:         Stephen Montgomery-Smith <stephen@math.missouri.edu>
#
# $FreeBSD$
#

PORTNAME=   gromacs
PORTVERSION=    4.0.3
CATEGORIES= science
MASTER_SITES=   ftp://ftp.gromacs.org/pub/gromacs/

MAINTAINER= stephen@math.missouri.edu
COMMENT=    Compute molecular dynamics

USE_GNOME=  libxml2
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool:15
USE_LDCONFIG=   yes
CONFIGURE_ENV=  CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS= --exec-prefix=${PREFIX} --program-suffix="" --enable-shared

PLIST_SUB=  BUILD=${MACHINE_ARCH}-portbld-freebsd${OSREL}

OPTIONS=    FFTW3   "Use FFT routines from math/fftw3"      on  \
        FFTW2   "Use FFT routines from math/fftw"       off \
        GSL "Enable extra analysis using math/gsl"      on  \
        FLOAT   "Use single instead of double precision"    off \
        X11 "Build and install X11 programs"        on  \
        MPICH   "Enable MPI support using net/mpich"        off \
        OMPI    "Enable MPI support using net/openmpi"      off

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

.if !defined(WITHOUT_FFTW3) && defined(WITH_FFTW2)
IGNORE=     Cannot build with FFTW3 and FFTW2. Run 'make config' again and choose only one of them.
.endif

.if defined(WITH_MPICH) && defined(WITH_OMPI)
IGNORE=     Cannot build with MPICH and OpenMPI support. Run 'make config' again and choose only one of them.
.endif

.if !defined(WITHOUT_FFTW3)
CONFIGURE_ARGS+=    --with-fft=fftw3
. if defined(WITH_FLOAT)
LIB_DEPENDS+=   fftw3f.4:${PORTSDIR}/math/fftw3-float
. else
LIB_DEPENDS+=   fftw3.4:${PORTSDIR}/math/fftw3
. endif
.else
. if defined(WITH_FFTW2)
CONFIGURE_ARGS+=    --with-fft=fftw2
.  if defined(WITH_FLOAT)
LIB_DEPENDS+=   sfftw.2:${PORTSDIR}/math/fftw-float
.  else
LIB_DEPENDS+=   fftw.2:${PORTSDIR}/math/fftw
.  endif
. else
CONFIGURE_ARGS+=    --with-fft=fftpack
. endif
.endif

.if !defined(WITHOUT_GSL)
CONFIGURE_ARGS+=    --with-gsl
LIB_DEPENDS+=   gsl.13:${PORTSDIR}/math/gsl
.else
CONFIGURE_ARGS+=    --without-gsl
.endif

.if !defined(WITHOUT_X11)
PLIST_SUB+= X11=""
CONFIGURE_ARGS+=    --with-x
USE_XORG=   x11
.else
PLIST_SUB+= X11="@comment "
CONFIGURE_ARGS+=    --without-x
.endif

.if defined(WITH_FLOAT)
PLIST_SUB+= SUFFIX_D="" SUFFIX_DOUBLE=""
.else
CONFIGURE_ARGS+=    --disable-float
PLIST_SUB+= SUFFIX_D=_d SUFFIX_DOUBLE=_double
.endif

.if defined(WITH_MPICH) || defined(WITH_OMPI)
CONFIGURE_ARGS+=    --enable-mpi
. if defined(WITH_MPICH)
CONFIGURE_ENV+= MPICC=${PREFIX}/mpich/bin/mpicc
BUILD_DEPENDS+= ${PREFIX}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
RUN_DEPENDS+=   ${PREFIX}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
. else
CONFIGURE_ENV+= MPICC=${PREFIX}/mpi/openmpi/bin/mpicc
BUILD_DEPENDS+= ${PREFIX}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
RUN_DEPENDS+=   ${PREFIX}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
. endif
PLIST_SUB+= SUFFIX_MPI="_mpi" MPI=""
.else
PLIST_SUB+= SUFFIX_MPI="" MPI="@comment "
.endif

MAN1=   anadock.1 \
    do_dssp.1 \
    editconf.1 \
    eneconv.1 \
    g_anaeig.1 \
    g_analyze.1 \
    g_angle.1 \
    g_bond.1 \
    g_bundle.1 \
    g_chi.1 \
    g_cluster.1 \
    g_clustsize.1 \
    g_confrms.1 \
    g_covar.1 \
    g_current.1 \
    g_density.1 \
    g_densmap.1 \
    g_dielectric.1 \
    g_dih.1 \
    g_dipoles.1 \
    g_disre.1 \
    g_dist.1 \
    g_dyndom.1 \
    g_enemat.1 \
    g_energy.1 \
    g_filter.1 \
    g_gyrate.1 \
    g_h2order.1 \
    g_hbond.1 \
    g_helix.1 \
    g_helixorient.1 \
    g_kinetics.1 \
    g_lie.1 \
    g_mdmat.1 \
    g_mindist.1 \
    g_morph.1 \
    g_msd.1 \
    g_nmeig.1 \
    g_nmens.1 \
    g_nmtraj.1 \
    g_order.1 \
    g_polystat.1 \
    g_potential.1 \
    g_principal.1 \
    g_rama.1 \
    g_rdf.1 \
    g_rms.1 \
    g_rmsdist.1 \
    g_rmsf.1 \
    g_rotacf.1 \
    g_saltbr.1 \
    g_sas.1 \
    g_sdf.1 \
    g_sgangle.1 \
    g_sham.1 \
    g_sorient.1 \
    g_spatial.1 \
    g_spol.1 \
    g_tcaf.1 \
    g_traj.1 \
    g_vanhove.1 \
    g_velacc.1 \
    g_wham.1 \
    gen_table.1 \
    genbox.1 \
    genconf.1 \
    genion.1 \
    genrestr.1 \
    gmxcheck.1 \
    gmxdump.1 \
    grompp.1 \
    highway.1 \
    make_edi.1 \
    make_ndx.1 \
    mdrun.1 \
    mk_angndx.1 \
    ngmx.1 \
    pdb2gmx.1 \
    protonate.1 \
    sigeps.1 \
    tpbconv.1 \
    trjcat.1 \
    trjconv.1 \
    trjorder.1 \
    wheel.1 \
    x2top.1 \
    xpm2ps.1 \
    xrama.1

.include <bsd.port.post.mk>