[60187] trunk/dports/science/pymol/Portfile

adfernandes at macports.org adfernandes at macports.org
Wed Nov 4 10:19:59 PST 2009


Revision: 60187
          http://trac.macports.org/changeset/60187
Author:   adfernandes at macports.org
Date:     2009-11-04 10:19:55 -0800 (Wed, 04 Nov 2009)
Log Message:
-----------
Closes #22087; Added gcc43 and gcc44 variants; Approved by: howarth at bromo.med.uc.edu (maintainer) and ryandesign (Sr. Proj. Manager)

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

Modified: trunk/dports/science/pymol/Portfile
===================================================================
--- trunk/dports/science/pymol/Portfile	2009-11-04 17:54:01 UTC (rev 60186)
+++ trunk/dports/science/pymol/Portfile	2009-11-04 18:19:55 UTC (rev 60187)
@@ -5,7 +5,7 @@
 
 name                pymol
 version             1.2r2
-revision            1
+revision            2
 categories          science
 maintainers         bromo.med.uc.edu:howarth
 description         Molecular graphics system
@@ -40,13 +40,34 @@
 
 post-configure {
     copy ${worksrcpath}/setup/Rules.osx-fink ${worksrcpath}/Rules.delsci
+    if { [variant_isset gcc43] || [variant_isset gcc44] } {
+        reinplace  "s| -no-cpp-precomp||g"          ${worksrcpath}/Rules.delsci
+        reinplace  "s|^BUILD = |BUILD = -lstdc++ |" ${worksrcpath}/Rules.delsci
+    }
 }
 
 use_parallel_build  no
-build.args          -f Makefile.delsci \
-                    CC=${configure.cc} \
-                    CXX=${configure.cxx}
+pre-build {
+    build.args  -f Makefile.delsci \
+                CC="${configure.cc}" CXX="${configure.cxx}"
+}
 
+variant gcc43 description conflicts gcc44 description {build using macports-gcc-4.3} {
+    depends_lib-append  port:gcc43
+    # the current pymol makefile does not honour CC and CXX environment variables
+    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
+    build.args-append   CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3"
+    configure.compiler  macports-gcc-4.3
+}
+
+variant gcc44 description conflicts gcc43 description {build using macports-gcc-4.4} {
+    depends_lib-append  port:gcc44
+    # the current pymol makefile does not honour CC and CXX environment variables
+    build.args-delete   CC="${configure.cc}" CXX="${configure.cxx}"
+    build.args-append   CC="${prefix}/bin/gcc-mp-4.4" CXX="${prefix}/bin/g++-mp-4.4"
+    configure.compiler  macports-gcc-4.4
+}
+
 destroot {
     file mkdir ${destroot}${prefix}/lib/pymol/bin
     copy  ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091104/0594676b/attachment.html>


More information about the macports-changes mailing list