Ticket #22087: Portfile.diff
File Portfile.diff, 1.7 KB (added by adfernandes (Andrew Fernandes), 15 years ago) |
---|
-
Portfile
5 5 6 6 name pymol 7 7 version 1.2r2 8 revision 1 8 9 categories science 9 10 maintainers bromo.med.uc.edu:howarth 10 11 description Molecular graphics system … … 39 40 40 41 post-configure { 41 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 } 42 47 } 43 48 44 49 use_parallel_build no 45 50 build.args -f Makefile.delsci \ 46 CC=${configure.cc} \ 47 CXX=${configure.cxx} 51 CC="${configure.cc}" CXX="${configure.cxx}" 48 52 53 variant gcc43 description conflicts gcc44 description {build using macports-gcc-4.3} { 54 depends_build-append port:gcc43 55 build.args-delete CC="${configure.cc}" CXX="${configure.cxx}" 56 build.args-append CC="${prefix}/bin/gcc-mp-4.3" CXX="${prefix}/bin/g++-mp-4.3" 57 configure.compiler macports-gcc-4.3 58 } 59 60 variant gcc44 description conflicts gcc43 description {build using macports-gcc-4.4} { 61 depends_build-append port:gcc44 62 build.args-delete CC="${configure.cc}" CXX="${configure.cxx}" 63 build.args-append CC="${prefix}/bin/gcc-mp-4.4" CXX="${prefix}/bin/g++-mp-4.4" 64 configure.compiler macports-gcc-4.4 65 } 66 49 67 destroot { 50 68 file mkdir ${destroot}${prefix}/lib/pymol/bin 51 69 copy ${worksrcpath}/setup/pymol.com.osx-fink ${destroot}${prefix}/lib/pymol/bin/pymol