Ticket #22374: Portfile.diff

File Portfile.diff, 3.2 KB (added by adfernandes (Andrew Fernandes), 14 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
     3# Important: keep in sync with the 'gromacs-double' port!
     4
     5PortSystem  1.0
    46name            gromacs
    57version         4.0.5
    6 revision        1
     8revision        2
    79categories      science math
    810maintainers     adfernandes openmaintainer
    911description     The World's fastest Molecular Dynamics package
     
    1719        research on non-biological systems, e.g. polymers.
    1820platforms       darwin
    1921
    20 homepage        http://www.gromacs.org/
    21 master_sites    ftp://ftp.gromacs.org/pub/${name} \
     22distname        gromacs-${version}
     23homepage            http://www.gromacs.org/
     24master_sites    ftp://ftp.gromacs.org/pub/gromacs \
    2225                http://cluster.earlham.edu/detail/home/charliep/packages
    2326
    2427checksums       sha1 9969aae6f77e2216add22a7b29805c4de8df649f
     
    2730                # Fixes a typo in the .rtp file for ffG53a6 and ffG53a5 in Gromacs versions up to (and including) version 4.0.5.
    2831                # See http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin/gmx-tutorials/membrane_protein/01_pdb2gmx.html
    2932
    30 depends_build                   port:gcc42
    31 configure.compiler      macports-gcc-4.2
     33depends_lib     port:fftw-3-single port:libxml2 port:openmotif
    3234
    33 depends_lib     port:fftw-3-single port:openmotif
     35configure.args  --bindir=${prefix}/lib/${name}/bin --enable-shared --with-x
    3436
    35 configure.args  --bindir=${prefix}/lib/${name}/bin --with-x
     37variant no_x11 {
     38    depends_lib-delete      port:openmotif
     39    configure.args-delete   --with-x
     40    configure.args-append   --without-x
     41}
    3642
    37 variant nox description {Disable X11/Motif GUI} {
    38   depends_lib-delete       port:openmotif
    39   configure.args-delete    --with-x
    40   configure.args-append    --without-x
     43variant gsl description {enable extra analyses via the GNU scientific library} {
     44    depends_lib-append      port:gsl
     45    configure.args-append   --with-gsl
    4146}
    42  
    43 variant double description {Double precision floating-point arithmetics} {
    44   depends_lib-delete       port:fftw-3-single
    45   depends_lib-append       port:fftw-3
    46   configure.args-append    --enable-double
     47
     48if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] } {
     49    default_variants-append     +gcc44
    4750}
    4851
    49 platform darwin powerpc {
    50   depends_build-append         port:gcc42
    51   configure.compiler       macports-gcc-4.2
     52variant gcc42 conflicts gcc43 gcc44 description {build with macports-gcc-4.2} {
     53    depends_lib         port:gcc42
     54    configure.compiler  macports-gcc-4.2
    5255}
    5356
    54 variant gcc43 conflicts gcc44 description {build with macports-gcc-4.3} {
    55   depends_build-delete         port:gcc42
    56   depends_build-append         port:gcc43
    57   configure.compiler       macports-gcc-4.3
     57variant gcc43 conflicts gcc42 gcc44 description {build with macports-gcc-4.3} {
     58    depends_lib         port:gcc43
     59    configure.compiler  macports-gcc-4.3
    5860}
    5961
    60 variant gcc44 conflicts gcc43 description {build with macports-gcc-4.4} {
    61   depends_build-delete         port:gcc42
    62   depends_build-append         port:gcc44
    63   configure.compiler       macports-gcc-4.4
     62variant gcc44 conflicts gcc42 gcc43 description {build with macports-gcc-4.4} {
     63    depends_lib         port:gcc44
     64    configure.compiler  macports-gcc-4.4
    6465}