Ticket #35434: Portfile.diff
File Portfile.diff, 4.4 KB (added by g5pw (Aljaž Srebrnič), 12 years ago) |
---|
-
opt/local/var/macports/sources/svn.macports.org/trunk/dports/math/octave-devel/Portfile
4 4 PortSystem 1.0 5 5 6 6 name octave-devel 7 version 3.4.3 8 revision 3 7 version 3.6.2 9 8 conflicts octave 10 9 categories math science 11 10 maintainers michaelld openmaintainer … … 24 23 distname octave-${version} 25 24 use_bzip2 yes 26 25 27 checksums md5 185b08f4e4a7b646d76e4d33b77fa87e \ 28 sha1 fe622c28a38f8730c59e46211bc7b18e7f51a679 \ 29 rmd160 d6f43fca9097b40f163c140db853d8ac1383ab39 26 checksums rmd160 1bf26b238d2bba461c5902d091088533c733439b \ 27 sha256 0bb69b93d0bee872308a7944f1ebbe948f55cd4ae55beab38f05950e1b45c4ae 30 28 31 29 depends_build port:bison \ 32 30 port:flex \ … … 62 60 universal_variant no 63 61 64 62 # do not use CLANG (yet) 65 if {${configure.compiler} == "clang"} { 66 configure.compiler llvm-gcc-4.2 67 } 63 compiler.blacklist clang 68 64 69 65 configure.args --disable-dependency-tracking \ 70 66 --without-x \ 71 67 --disable-docs \ 72 --with-cholmod="-lcholmod -lmetis" 68 --with-cholmod="-lcholmod -lmetis" \ 69 --with-umfpack="-lumfpack -lSuiteSparse" 73 70 74 71 # --without-framework-carbon 75 72 … … 98 95 patchfiles-append patch-src-display.cc.diff 99 96 } 100 97 101 variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc46 gcc45 gcc44 g95 {} 98 platform darwin 12 { 99 # In 10.8 patch is required as above, also 100 # the LANG environment variable needs to 101 # be set to "C" otherwise /usr/bin/sed 102 # fails with an error, if you installed gsed 103 # with default name this should have no effect. 104 105 patchfiles-append patch-src-display.cc.diff 106 build.args-append LANG="C" 107 } 108 109 110 variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc47 gcc46 gcc45 gcc44 g95 {} 111 112 variant gcc44 description {build with the macports gcc44 toolchain} conflicts gcc47 gcc46 gcc45 gcc43 g95 {} 102 113 103 variant gcc4 4 description {build with the macports gcc44 toolchain} conflicts gcc46 gcc45gcc43 g95 {}114 variant gcc45 description {build with the macports gcc45 toolchain} conflicts gcc47 gcc46 gcc44 gcc43 g95 {} 104 115 105 variant gcc4 5 description {build with the macports gcc45 toolchain} conflicts gcc46gcc44 gcc43 g95 {}116 variant gcc46 description {build with the macports gcc45 toolchain} conflicts gcc47 gcc45 gcc44 gcc43 g95 {} 106 117 107 variant gcc4 6 description {build with the macports gcc45 toolchain} conflicts gcc45gcc44 gcc43 g95 {}118 variant gcc47 description {build with the macports gcc47 toolchain} conflicts gcc45 gcc46 gcc44 gcc43 g95 {} 108 119 109 120 variant g95 description {build with g95} conflicts gcc43 gcc44 gcc45 gcc46 { 110 121 depends_build-append port:g95 … … 132 143 133 144 # check for setting the default variant (gcc44) 134 145 if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ 135 ![variant_isset gcc46] && ![variant_isset g 95] } {146 ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset g95] } { 136 147 default_variants +gcc45 137 148 } 138 149 139 150 # check if the user disabled just the default variant: -gcc44 140 151 if { ![variant_isset gcc43] && ![variant_isset gcc44] && \ 141 152 ![variant_isset gcc45] && ![variant_isset gcc46] && \ 142 ![variant_isset g 95] } {153 ![variant_isset gcc47] && ![variant_isset g95] } { 143 154 pre-fetch { 144 155 error "You must select one of the compiler variants." 145 156 } … … 154 165 set gcc_version "4.5" 155 166 } elseif {[variant_isset gcc46]} { 156 167 set gcc_version "4.6" 168 } elseif {[variant_isset gcc47]} { 169 set gcc_version "4.7" 157 170 } 158 171 159 172 if {${gcc_version} != ""} { 160 173 set gcc_version_join [join [split ${gcc_version} "."] ""] 161 configure.ldflags "${prefix}/lib/gcc${gcc_version_join}/libstdc++.6.dylib" 174 configure.ldflags "-L${prefix}/lib/gcc${gcc_version_join}" 175 configure.ldflags-append -lstdc++ \ 176 -lgfortran 162 177 depends_build-append port:gcc${gcc_version_join} 163 178 configure.compiler macports-gcc-${gcc_version} 164 179 }