Changeset 99427


Ignore:
Timestamp:
Nov 5, 2012, 2:43:11 AM (8 years ago)
Author:
jmr@…
Message:

m68k-elf-gcc: build fixes (#36574), set license

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/cross/m68k-elf-gcc/Portfile

    r72086 r99427  
    22
    33PortSystem                      1.0
     4
    45name                    m68k-elf-gcc
    56version                 3.4.6
     
    1718platforms               darwin
    1819categories              cross devel
     20license                 {GPL-2+ Permissive}
    1921maintainers             nomaintainer
    2022master_sites            gnu:gcc/gcc-${version}/:gcc \
     
    3941dist_subdir                     gcc
    4042
    41 depends_lib                     bin:${crossgcc-target}-ar:${crossgcc-target}-binutils \
    42                                         bin:${crossgcc-target}-as:${crossgcc-target}-binutils \
    43                                         bin:${crossgcc-target}-ld:${crossgcc-target}-binutils \
    44                                         bin:${crossgcc-target}-nm:${crossgcc-target}-binutils \
    45                                         bin:${crossgcc-target}-ranlib:${crossgcc-target}-binutils
    46 depends_build           bin:msgfmt:gettext
     43depends_lib                     port:${crossgcc-target}-binutils
     44depends_build           port:gettext
    4745
    4846# gcc is .bz2, newlib is .gz.
     
    6967                                RANLIB_FOR_TARGET=${crossgcc-target}-ranlib]
    7068
     69# ticket #36574, cf. #31892
     70compiler.blacklist  clang llvm-gcc-4.2
     71if {${configure.compiler} == "apple-gcc-4.2"} {
     72    depends_build-append port:apple-gcc42
     73}
     74
    7175# Build in a different directory, as advised in the README file.
    7276pre-configure   {
     
    7680configure.cmd   ${workpath}/gcc-${version}/configure
    7781configure.env   ${environment}
     82configure.cflags-append -DLIBICONV_PLUG
    7883configure.args  --infodir='${prefix}/share/info' \
    7984                                --mandir='${prefix}/share/man' \
     
    8792                                --with-gxx-include-dir=${prefix}/${crossgcc-target}/include/c++/${version}/ \
    8893                                ${default-languages}
     94configure.cc_archflags
     95configure.cxx_archflags
     96configure.objc_archflags
     97configure.ld_archflags
     98if {${os.platform} == "darwin" && ($build_arch == "x86_64" || $build_arch == "ppc64")} {
     99    configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} \
     100                          --host=${build_arch}-apple-${os.platform}${os.version}
     101}
    89102
    90103build.dir       ${workpath}/build
Note: See TracChangeset for help on using the changeset viewer.