Ticket #30331: pymol-configure.compiler.diff
File pymol-configure.compiler.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
37 37 38 38 use_parallel_build yes 39 39 40 platform darwin 11 { 41 python.add_archflags no 42 build.env CC="/usr/bin/clang" CXX="/usr/bin/clang++" 40 if {${configure.compiler} == "llvm-gcc-4.2"} { 41 configure.compiler clang 43 42 } 44 43 45 44 variant gcc43 description conflicts gcc44 gcc45 gcc46 description {build using macports-gcc-4.3} { 46 45 depends_lib-append port:gcc43 47 46 python.add_archflags no 48 build.env CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3"47 configure.compiler macports-gcc-4.3 49 48 } 50 49 51 50 variant gcc44 description conflicts gcc43 gcc45 gcc46 description {build using macports-gcc-4.4} { 52 51 depends_lib-append port:gcc44 53 52 python.add_archflags no 54 build.env CC="${prefix}/bin/gcc-mp-4.4" CXX="${prefix}/bin/g++-mp-4.4"53 configure.compiler macports-gcc-4.4 55 54 } 56 55 57 56 variant gcc45 description conflicts gcc43 gcc44 gcc46 description {build using macports-gcc-4.5} { 58 57 depends_lib-append port:gcc45 59 58 python.add_archflags no 60 build.env CC="${prefix}/bin/gcc-mp-4.5" CXX="${prefix}/bin/g++-mp-4.5"59 configure.compiler macports-gcc-4.5 61 60 } 62 61 63 62 variant gcc46 description conflicts gcc43 gcc44 gcc45 description {build using macports-gcc-4.6} { 64 63 depends_lib-append port:gcc46 65 64 python.add_archflags no 66 build.env CC="${prefix}/bin/gcc-mp-4.6" CXX="${prefix}/bin/g++-mp-4.6"65 configure.compiler macports-gcc-4.6 67 66 } 68 67 68 pre-build { 69 build.env CC="${configure.cc}" CXX="${configure.cxx}" 70 } 71 69 72 post-destroot { 70 73 file copy ${worksrcpath}/setup/pymol_macports ${destroot}${prefix}/bin/pymol 71 74 file attributes ${destroot}${prefix}/bin/pymol -permissions a+x