mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
741aa71483
Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
159 lines
2.9 KiB
Makefile
159 lines
2.9 KiB
Makefile
# New ports collection makefile for: gromacs
|
|
# Date created: August 28 2004
|
|
# Whom: Stephen Montgomery-Smith <stephen@math.missouri.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gromacs
|
|
PORTVERSION= 3.2.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= science
|
|
MASTER_SITES= ftp://ftp.gromacs.org/pub/gromacs/
|
|
|
|
MAINTAINER= stephen@math.missouri.edu
|
|
COMMENT= Compute molecular dynamics
|
|
|
|
.ifndef WITHOUT_FFTW
|
|
LIB_DEPENDS= fftw:${PORTSDIR}/math/fftw:install
|
|
.endif
|
|
.ifdef WITH_MPI
|
|
BUILD_DEPENDS= ${LOCALBASE}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
|
|
RUN_DEPENDS= ${LOCALBASE}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
|
|
.endif
|
|
|
|
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}
|
|
|
|
PLIST_SUB= BUILD=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.ifndef WITHOUT_FFTW
|
|
.ifdef WITH_FLOAT
|
|
IGNORE= Cannot currently build with fftw and single precision floating point
|
|
.elifdef WITH_MPI
|
|
IGNORE= Cannot currently build with fftw and mpi support
|
|
.endif
|
|
.endif
|
|
|
|
.ifdef WITHOUT_X
|
|
PLIST_SUB+= WITHOUT_X="@comment "
|
|
CONFIGURE_ARGS+= --without-x
|
|
.else
|
|
PLIST_SUB+= WITHOUT_X=
|
|
CONFIGURE_ARGS+= --with-x
|
|
USE_XORG= x11
|
|
.endif
|
|
|
|
.ifndef WITH_FLOAT
|
|
CONFIGURE_ARGS+= --disable-float --program-suffix=
|
|
PLIST_SUB+= SUFFIX_D=_d SUFFIX_DOUBLE=_double
|
|
.else
|
|
PLIST_SUB+= SUFFIX_D= SUFFIX_DOUBLE=
|
|
.endif
|
|
|
|
.ifdef WITHOUT_FFTW
|
|
CONFIGURE_ARGS+= --without-fftw
|
|
.endif
|
|
|
|
.ifdef WITH_MPI
|
|
CONFIGURE_ARGS+= --enable-mpi
|
|
CONFIGURE_ENV+= MPICC=${PREFIX}/mpich/bin/mpicc
|
|
PLIST_SUB+= WITH_MPI= SUFFIX_MPI=_mpi WITHOUT_MPI="@comment "
|
|
.else
|
|
PLIST_SUB+= WITH_MPI="@comment " SUFFIX_MPI= WITHOUT_MPI=
|
|
.endif
|
|
|
|
MAN1= anadock.1 \
|
|
g_cluster.1 \
|
|
g_filter.1 \
|
|
g_potential.1 \
|
|
g_velacc.1 \
|
|
ngmx.1 \
|
|
cdist.1 \
|
|
g_clustsize.1 \
|
|
g_gyrate.1 \
|
|
g_rama.1 \
|
|
g_wham.1 \
|
|
pdb2gmx.1 \
|
|
disco.1 \
|
|
g_confrms.1 \
|
|
g_h2order.1 \
|
|
g_rdf.1 \
|
|
genbox.1 \
|
|
protonate.1 \
|
|
do_dssp.1 \
|
|
g_covar.1 \
|
|
g_hbond.1 \
|
|
g_rms.1 \
|
|
genconf.1 \
|
|
tpbconv.1 \
|
|
editconf.1 \
|
|
g_density.1 \
|
|
g_helix.1 \
|
|
g_rmsdist.1 \
|
|
genion.1 \
|
|
trjcat.1 \
|
|
eneconv.1 \
|
|
g_dielectric.1 \
|
|
g_lie.1 \
|
|
g_rmsf.1 \
|
|
genpr.1 \
|
|
trjconv.1 \
|
|
ffscan.1 \
|
|
g_dih.1 \
|
|
g_mdmat.1 \
|
|
g_rotacf.1 \
|
|
gmxcheck.1 \
|
|
trjorder.1 \
|
|
g_anaeig.1 \
|
|
g_dipoles.1 \
|
|
g_mindist.1 \
|
|
g_saltbr.1 \
|
|
gmxdump.1 \
|
|
wheel.1 \
|
|
g_analyze.1 \
|
|
g_disre.1 \
|
|
g_morph.1 \
|
|
g_sas.1 \
|
|
grompp.1 \
|
|
x2top.1 \
|
|
g_angle.1 \
|
|
g_dist.1 \
|
|
g_msd.1 \
|
|
g_sgangle.1 \
|
|
highway.1 \
|
|
xpm2ps.1 \
|
|
g_bond.1 \
|
|
g_dyndom.1 \
|
|
g_nmeig.1 \
|
|
g_sorient.1 \
|
|
make_ndx.1 \
|
|
xrama.1 \
|
|
g_bundle.1 \
|
|
g_enemat.1 \
|
|
g_nmens.1 \
|
|
g_tcaf.1 \
|
|
mdrun.1 \
|
|
g_chi.1 \
|
|
g_energy.1 \
|
|
g_order.1 \
|
|
g_traj.1 \
|
|
mk_angndx.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-fetch:
|
|
@${ECHO}
|
|
@${ECHO} "OPTIONS:"
|
|
@${ECHO}
|
|
@${ECHO} "To compile without X11: define WITHOUT_X"
|
|
@${ECHO} "To compile using single precision floating point: define WITH_FLOAT"
|
|
@${ECHO} "To compile without fftw: define WITHOUT_FFTW"
|
|
@${ECHO} "To compile with mpi: define WITH_MPI"
|
|
@${ECHO}
|
|
|
|
.include <bsd.port.post.mk>
|