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

     
    44PortSystem 1.0
    55
    66name                octave-devel
    7 version             3.4.3
    8 revision            3
     7version             3.6.2
    98conflicts           octave
    109categories          math science
    1110maintainers         michaelld openmaintainer
     
    2423distname            octave-${version}
    2524use_bzip2           yes
    2625
    27 checksums           md5     185b08f4e4a7b646d76e4d33b77fa87e \
    28                     sha1    fe622c28a38f8730c59e46211bc7b18e7f51a679 \
    29                     rmd160  d6f43fca9097b40f163c140db853d8ac1383ab39
     26checksums           rmd160  1bf26b238d2bba461c5902d091088533c733439b \
     27                    sha256  0bb69b93d0bee872308a7944f1ebbe948f55cd4ae55beab38f05950e1b45c4ae
    3028
    3129depends_build       port:bison \
    3230                    port:flex \
     
    6260universal_variant   no
    6361
    6462# do not use CLANG (yet)
    65 if {${configure.compiler} == "clang"} {
    66     configure.compiler llvm-gcc-4.2
    67 }
     63compiler.blacklist  clang
    6864
    6965configure.args      --disable-dependency-tracking \
    7066                    --without-x \
    7167                    --disable-docs \
    72                     --with-cholmod="-lcholmod -lmetis"
     68                    --with-cholmod="-lcholmod -lmetis" \
     69                    --with-umfpack="-lumfpack -lSuiteSparse"
    7370
    7471#                    --without-framework-carbon
    7572
     
    9895    patchfiles-append patch-src-display.cc.diff
    9996}
    10097
    101 variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc46 gcc45 gcc44 g95 {}
     98platform 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
     110variant gcc43 description {build with the macports gcc43 toolchain} conflicts gcc47 gcc46 gcc45 gcc44 g95 {}
     111
     112variant gcc44 description {build with the macports gcc44 toolchain} conflicts gcc47 gcc46 gcc45 gcc43 g95 {}
    102113
    103 variant gcc44 description {build with the macports gcc44 toolchain} conflicts gcc46 gcc45 gcc43 g95 {}
     114variant gcc45 description {build with the macports gcc45 toolchain} conflicts gcc47 gcc46 gcc44 gcc43 g95 {}
    104115
    105 variant gcc45 description {build with the macports gcc45 toolchain} conflicts gcc46 gcc44 gcc43 g95 {}
     116variant gcc46 description {build with the macports gcc45 toolchain} conflicts gcc47 gcc45 gcc44 gcc43 g95 {}
    106117
    107 variant gcc46 description {build with the macports gcc45 toolchain} conflicts gcc45 gcc44 gcc43 g95 {}
     118variant gcc47 description {build with the macports gcc47 toolchain} conflicts gcc45 gcc46 gcc44 gcc43 g95 {}
    108119
    109120variant g95 description {build with g95} conflicts gcc43 gcc44 gcc45 gcc46 {
    110121    depends_build-append    port:g95
     
    132143
    133144# check for setting the default variant (gcc44)
    134145if { ![variant_isset gcc43] && ![variant_isset gcc44] && \
    135          ![variant_isset gcc46] && ![variant_isset g95] } {
     146         ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset g95] } {
    136147    default_variants +gcc45
    137148}
    138149
    139150# check if the user disabled just the default variant: -gcc44
    140151if { ![variant_isset gcc43] && ![variant_isset gcc44] && \
    141152         ![variant_isset gcc45] && ![variant_isset gcc46] && \
    142          ![variant_isset g95] } {
     153         ![variant_isset gcc47] && ![variant_isset g95] } {
    143154    pre-fetch {
    144155        error "You must select one of the compiler variants."
    145156    }
     
    154165    set gcc_version "4.5"
    155166} elseif {[variant_isset gcc46]} {
    156167    set gcc_version "4.6"
     168} elseif {[variant_isset gcc47]} {
     169    set gcc_version "4.7"
    157170}
    158171
    159172if {${gcc_version} != ""} {
    160173    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
    162177    depends_build-append port:gcc${gcc_version_join}
    163178    configure.compiler   macports-gcc-${gcc_version}
    164179}