Ticket #22087: Portfile.2.diff
File Portfile.2.diff, 1.9 KB (added by adfernandes (Andrew Fernandes), 15 years ago) |
---|
-
Portfile
5 5 6 6 name pymol 7 7 version 1.2r2 8 revision 18 revision 2 9 9 categories science 10 10 maintainers bromo.med.uc.edu:howarth 11 11 description Molecular graphics system … … 40 40 41 41 post-configure { 42 42 copy ${worksrcpath}/setup/Rules.osx-fink ${worksrcpath}/Rules.delsci 43 if { [variant_isset gcc43] || [variant_isset gcc44] } { 44 reinplace "s| -no-cpp-precomp||g" ${worksrcpath}/Rules.delsci 45 reinplace "s|^BUILD = |BUILD = -lstdc++ |" ${worksrcpath}/Rules.delsci 46 } 43 47 } 44 48 45 49 use_parallel_build no 46 build.args -f Makefile.delsci \ 47 CC=${configure.cc} \ 48 CXX=${configure.cxx} 50 pre-build { 51 build.args -f Makefile.delsci \ 52 CC="${configure.cc}" CXX="${configure.cxx}" 53 } 49 54 55 variant gcc43 description conflicts gcc44 description {build using macports-gcc-4.3} { 56 depends_lib-append port:gcc43 57 # the current pymol makefile does not honour CC and CXX environment variables 58 build.args-delete CC="${configure.cc}" CXX="${configure.cxx}" 59 build.args-append CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3" 60 configure.compiler macports-gcc-4.3 61 } 62 63 variant gcc44 description conflicts gcc43 description {build using macports-gcc-4.4} { 64 depends_lib-append port:gcc44 65 # the current pymol makefile does not honour CC and CXX environment variables 66 build.args-delete CC="${configure.cc}" CXX="${configure.cxx}" 67 build.args-append CC="${prefix}/bin/gcc-mp-4.4" CXX="${prefix}/bin/g++-mp-4.4" 68 configure.compiler macports-gcc-4.4 69 } 70 50 71 destroot { 51 72 file mkdir ${destroot}${prefix}/lib/pymol/bin 52 73 copy ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol