diff options
author | John Marino <marino@FreeBSD.org> | 2014-08-10 00:03:09 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-08-10 00:03:09 +0000 |
commit | 3dccd45d14f1b2c7021ede6e96d549aaac3e5b65 (patch) | |
tree | 82cc11b65131a39a0814b90f912fd0635727a054 /science/gromacs/Makefile | |
parent | 8ed170d6f437d07d298a97fc3406b0d6b62dce38 (diff) | |
download | ports-3dccd45d14f1b2c7021ede6e96d549aaac3e5b65.tar.gz ports-3dccd45d14f1b2c7021ede6e96d549aaac3e5b65.zip |
Notes
Diffstat (limited to 'science/gromacs/Makefile')
-rw-r--r-- | science/gromacs/Makefile | 89 |
1 files changed, 35 insertions, 54 deletions
diff --git a/science/gromacs/Makefile b/science/gromacs/Makefile index edf4a3e53dec..42fb2121e57b 100644 --- a/science/gromacs/Makefile +++ b/science/gromacs/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= gromacs -PORTVERSION= 4.6.5 -PORTREVISION= 3 +PORTVERSION= 5.0 CATEGORIES= science MASTER_SITES= ftp://ftp.gromacs.org/pub/gromacs/ @@ -12,86 +11,68 @@ COMMENT= Compute molecular dynamics LICENSE= LGPL21 -OPTIONS_DEFINE= ATLAS FLOAT GSL SIMD X11 -OPTIONS_DEFAULT= FLOAT GSL X11 -OPTIONS_RADIO= MPI -OPTIONS_RADIO_MPI= MPICH OMPI - -OPTIONS_SUB= yes - -ATLAS_DESC= Use ATLAS for BLAS and LAPACK -FLOAT_DESC= Use single instead of double precision -GSL_DESC= Extra analysis using math/gsl -MPICH_DESC= MPI support using net/mpich2 -OMPI_DESC= MPI support using net/openmpi +BUILD_DEPENDS= boost-libs>=1.44:${PORTSDIR}/devel/boost-libs USES= cmake fortran perl5 pkgconfig shebangfix -SHEBANG_FILES= admin/*.pl scripts/*.pl scripts/*.sh src/gmxlib/selection/*.sh +SHEBANG_FILES= admin/*.sh scripts/*.pl scripts/*.sh src/gromacs/selection/*.sh bash_CMD= ${SH} -CMAKE_ARGS= -DBLAS_LIBRARIES:FILEPATH="${BLAS_LIBS}" \ - -DLAPACK_LIBRARIES:FILEPATH="${LAPACK_LIBS}" +USE_GNOME= libxml2 +CMAKE_ARGS= -DGMX_USE_RDTSCP:BOOL=OFF \ + -DUSE_PYTHON_SCRIPTS:BOOL=OFF USE_LDCONFIG= yes -GSL_LIB_DEPENDS= libgsl.so:${PORTSDIR}/math/gsl -GSL_CMAKE_ON= -DGMX_GSL:BOOL=ON -GSL_CMAKE_OFF= -DGMX_GSL:BOOL=OFF - -SIMD_CMAKE_OFF= -DGMX_CPU_ACCELERATION:STRING="None" - +OPTIONS_DEFINE= ATLAS FLOAT SIMD X11 +OPTIONS_RADIO= MPI +OPTIONS_RADIO_MPI= MPICH OMPI +OPTIONS_DEFAULT= FLOAT X11 +OPTIONS_SUB= yes + +ATLAS_DESC= Use ATLAS for BLAS and LAPACK +ATLAS_LIB_DEPENDS= libalapack.so:${PORTSDIR}/math/atlas +ATLAS_LIB_DEPENDS_OFF= libblas.so:${PORTSDIR}/math/blas \ + liblapack.so:${PORTSDIR}/math/lapack +ATLAS_CMAKE_ON= -DBLAS_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libcblas.so;${LOCALBASE}/lib/libf77blas.so" \ + -DLAPACK_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libalapack.so" +ATLAS_CMAKE_OFF= -DBLAS_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libblas.so" \ + -DLAPACK_LIBRARIES:FILEPATH="${LOCALBASE}/lib/liblapack.so" +FLOAT_DESC= Use single instead of double precision +FLOAT_BUILD_DEPENDS= fftw3>0:${PORTSDIR}/math/fftw3 +FLOAT_LIB_DEPENDS= libfftw3f.so:${PORTSDIR}/math/fftw3-float +FLOAT_LIB_DEPENDS_OFF= libfftw3.so:${PORTSDIR}/math/fftw3 +FLOAT_CMAKE_ON= -DGMX_DOUBLE:BOOL=OFF +FLOAT_CMAKE_OFF= -DGMX_DOUBLE:BOOL=ON +MPICH_DESC= MPI support using net/mpich2 +MPICH_LIB_DEPENDS= libmpich.so:${PORTSDIR}/net/mpich2 +MPICH_CMAKE_ON= -DMPI_C_COMPILER:FILEPATH="${LOCALBASE}/bin/mpicc" +OMPI_DESC= MPI support using net/openmpi +OMPI_BUILD_DEPENDS= openmpi>0:${PORTSDIR}/net/openmpi +OMPI_RUN_DEPENDS= openmpi>0:${PORTSDIR}/net/openmpi +OMPI_CMAKE_ON= -DMPI_C_COMPILER:FILEPATH="${LOCALBASE}/mpi/openmpi/bin/mpicc" +SIMD_CMAKE_OFF= -DGMX_SIMD:STRING="None" X11_USE= XORG=xext,x11 X11_CMAKE_ON= -DGMX_X11:BOOL=ON X11_CMAKE_OFF= -DGMX_X11:BOOL=OFF .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MATLAS} -LIB_DEPENDS+= libalapack.so:${PORTSDIR}/math/atlas -BLAS_LIBS= ${LOCALBASE}/lib/libcblas.so;${LOCALBASE}/lib/libf77blas.so -LAPACK_LIBS= ${LOCALBASE}/lib/libalapack.so -.else -LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \ - liblapack.so:${PORTSDIR}/math/lapack -BLAS_LIBS= ${LOCALBASE}/lib/libblas.so -LAPACK_LIBS= ${LOCALBASE}/lib/liblapack.so -.endif - .if ${PORT_OPTIONS:MFLOAT} -BUILD_DEPENDS+= fftw3>0:${PORTSDIR}/math/fftw3 -LIB_DEPENDS+= libfftw3f.so:${PORTSDIR}/math/fftw3-float -CMAKE_ARGS+= -DGMX_DOUBLE:BOOL=OFF PLIST_SUB+= SUFFIX_D="" .else -LIB_DEPENDS+= libfftw3.so:${PORTSDIR}/math/fftw3 -CMAKE_ARGS+= -DGMX_DOUBLE:BOOL=ON PLIST_SUB+= SUFFIX_D="_d" .endif .if ${PORT_OPTIONS:MMPICH} || ${PORT_OPTIONS:MOMPI} -CMAKE_ARGS+= -DGMX_MPI:BOOL=ON \ - -DMPI_C_COMPILER:FILEPATH="${MPICC}" +CMAKE_ARGS+= -DGMX_MPI:BOOL=ON PLIST_SUB+= SUFFIX_MPI="_mpi" .else CMAKE_ARGS+= -DGMX_MPI:BOOL=OFF PLIST_SUB+= SUFFIX_MPI="" .endif -.if ${PORT_OPTIONS:MMPICH} -BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2 -RUN_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2 -MPICC= ${LOCALBASE}/bin/mpicc -.endif - -.if ${PORT_OPTIONS:MOMPI} -BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi -RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi -MPICC= ${LOCALBASE}/mpi/openmpi/bin/mpicc -.endif - post-patch: @${FIND} ${WRKSRC} -name "CMakeLists.txt" | ${XARGS} \ ${REINPLACE_CMD} -e \ 's|share/man|man| ; \ - s|-lpthread|-pthread| ; \ /pkgconfig/s|LIB_INSTALL_DIR}|CMAKE_INSTALL_PREFIX}/libdata|' @${FIND} ${WRKSRC} -name "GMXRC.*" | ${XARGS} ${REINPLACE_CMD} -e \ 's|LDLIB/pkgconfig|LDLIB/../libdata/pkgconfig| ; \ |