[60530] trunk/dports/science/gromacs/Portfile

adfernandes at macports.org adfernandes at macports.org
Sat Nov 14 12:57:51 PST 2009


Revision: 60530
          http://trac.macports.org/changeset/60530
Author:   adfernandes at macports.org
Date:     2009-11-14 12:57:50 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
Closes #22374; Splits gromacs into single (the default) and gromacs-double (double-precision) packages so they can be co-installed, much like fftw3 and fftw3-single

Modified Paths:
--------------
    trunk/dports/science/gromacs/Portfile

Modified: trunk/dports/science/gromacs/Portfile
===================================================================
--- trunk/dports/science/gromacs/Portfile	2009-11-14 19:54:08 UTC (rev 60529)
+++ trunk/dports/science/gromacs/Portfile	2009-11-14 20:57:50 UTC (rev 60530)
@@ -1,9 +1,11 @@
 # $Id$
 
-PortSystem 1.0
+# Important: keep in sync with the 'gromacs-double' port!
+
+PortSystem  1.0
 name		gromacs
 version		4.0.5
-revision	1
+revision	2
 categories	science math
 maintainers	adfernandes openmaintainer
 description	The World's fastest Molecular Dynamics package
@@ -17,8 +19,9 @@
 	research on non-biological systems, e.g. polymers.
 platforms	darwin
 
-homepage	http://www.gromacs.org/
-master_sites	ftp://ftp.gromacs.org/pub/${name} \
+distname        gromacs-${version}
+homepage	    http://www.gromacs.org/
+master_sites	ftp://ftp.gromacs.org/pub/gromacs \
                 http://cluster.earlham.edu/detail/home/charliep/packages
 
 checksums       sha1 9969aae6f77e2216add22a7b29805c4de8df649f
@@ -27,38 +30,36 @@
                 # Fixes a typo in the .rtp file for ffG53a6 and ffG53a5 in Gromacs versions up to (and including) version 4.0.5.
                 # See http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin/gmx-tutorials/membrane_protein/01_pdb2gmx.html
 
-depends_build			port:gcc42
-configure.compiler      macports-gcc-4.2
+depends_lib 	port:fftw-3-single port:libxml2 port:openmotif
 
-depends_lib 	port:fftw-3-single port:openmotif
+configure.args  --bindir=${prefix}/lib/${name}/bin --enable-shared --with-x
 
-configure.args  --bindir=${prefix}/lib/${name}/bin --with-x
+variant no_x11 {
+    depends_lib-delete      port:openmotif
+    configure.args-delete   --with-x
+    configure.args-append   --without-x
+}
 
-variant nox description {Disable X11/Motif GUI} {
-  depends_lib-delete       port:openmotif
-  configure.args-delete    --with-x
-  configure.args-append    --without-x
+variant gsl description {enable extra analyses via the GNU scientific library} {
+    depends_lib-append      port:gsl
+    configure.args-append   --with-gsl
 }
- 
-variant double description {Double precision floating-point arithmetics} {
-  depends_lib-delete       port:fftw-3-single
-  depends_lib-append       port:fftw-3
-  configure.args-append    --enable-double
+
+if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] } {
+    default_variants-append     +gcc44
 }
 
-platform darwin powerpc {
-  depends_build-append         port:gcc42
-  configure.compiler       macports-gcc-4.2
+variant gcc42 conflicts gcc43 gcc44 description {build with macports-gcc-4.2} {
+    depends_lib         port:gcc42
+    configure.compiler  macports-gcc-4.2
 }
 
-variant gcc43 conflicts gcc44 description {build with macports-gcc-4.3} {
-  depends_build-delete         port:gcc42
-  depends_build-append         port:gcc43
-  configure.compiler       macports-gcc-4.3
+variant gcc43 conflicts gcc42 gcc44 description {build with macports-gcc-4.3} {
+    depends_lib         port:gcc43
+    configure.compiler  macports-gcc-4.3
 }
 
-variant gcc44 conflicts gcc43 description {build with macports-gcc-4.4} {
-  depends_build-delete         port:gcc42
-  depends_build-append         port:gcc44
-  configure.compiler       macports-gcc-4.4
+variant gcc44 conflicts gcc42 gcc43 description {build with macports-gcc-4.4} {
+    depends_lib         port:gcc44
+    configure.compiler  macports-gcc-4.4
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/b96dfb05/attachment.html>


More information about the macports-changes mailing list