Changeset 91473


Ignore:
Timestamp:
Apr 2, 2012, 9:43:58 PM (5 years ago)
Author:
jeremyhu@…
Message:

dragonegg-*: Support building +universal

Location:
trunk/dports/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/dragonegg-3.0/Portfile

    r91155 r91473  
    99set gcc_version         46
    1010set gcc_version_dot     4.6
    11 revision                2
     11revision                3
    1212dist_subdir             llvm
    1313categories              lang
     
    2525depends_lib             port:llvm-${llvm_version} port:gcc${gcc_version}
    2626depends_run             port:gcc_select
     27
     28# gcc needs to match our arch, not the other way around
     29# We build +universal just fine in order to support whatever arch gcc is
     30depends_skip_archcheck-append gcc${gcc_version}
    2731
    2832#fetch.type              svn
     
    5660build.target
    5761
     62# g++-4.0 fails to build some of the newer C++ for ppc
     63# Intel looks ok, but I prefer using gcc-4.2 for consistency
     64if {${configure.compiler} == "gcc-4.0"} {
     65    configure.compiler gcc-4.2
     66    if {![file exists ${configure.cc}]} {
     67        depends_build-append port:apple-gcc42
     68        configure.compiler apple-gcc-4.2
     69    }
     70}
     71
     72variant universal {
     73    post-patch {
     74        reinplace "/-MD -MP/d" ${worksrcpath}/Makefile
     75    }
     76}
     77
    5878build.env-append \
    5979    LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
    6080    GCC=${prefix}/bin/gcc-mp-${gcc_version_dot} \
    61     CC="${configure.cc} ${configure.cppflags}" \
    62     CXX="${configure.cxx} ${configure.cppflags}"
     81    CC="${configure.cc} ${configure.cppflags} [get_canonical_archflags cc]" \
     82    CXX="${configure.cxx} ${configure.cppflags} [get_canonical_archflags cxx]"
    6383
    6484destroot {
  • trunk/dports/lang/dragonegg-3.1/Portfile

    r91402 r91473  
    99set gcc_version         46
    1010set gcc_version_dot     4.6
     11revision                1
    1112dist_subdir             llvm
    1213categories              lang
     
    2425depends_lib             port:llvm-${llvm_version} port:gcc${gcc_version}
    2526depends_run             port:gcc_select
     27
     28# gcc needs to match our arch, not the other way around
     29# We build +universal just fine in order to support whatever arch gcc is
     30depends_skip_archcheck-append gcc${gcc_version}
    2631
    2732fetch.type              svn
     
    5257build.target
    5358
     59# g++-4.0 fails to build some of the newer C++ for ppc
     60# Intel looks ok, but I prefer using gcc-4.2 for consistency
     61if {${configure.compiler} == "gcc-4.0"} {
     62    configure.compiler gcc-4.2
     63    if {![file exists ${configure.cc}]} {
     64        depends_build-append port:apple-gcc42
     65        configure.compiler apple-gcc-4.2
     66    }
     67}
     68
     69# linking fails for ppc
     70supported_archs i386 x86_64
     71
     72variant universal {
     73    post-patch {
     74        reinplace "/-MD -MP/d" ${worksrcpath}/Makefile
     75    }
     76}
     77
    5478build.env-append \
    5579    LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
    5680    GCC=${prefix}/bin/gcc-mp-${gcc_version_dot} \
    57     CC="${configure.cc} ${configure.cppflags}" \
    58     CXX="${configure.cxx} ${configure.cppflags}"
     81    CC="${configure.cc} ${configure.cppflags} [get_canonical_archflags cc]" \
     82    CXX="${configure.cxx} ${configure.cppflags} [get_canonical_archflags cxx]"
    5983
    6084destroot {
Note: See TracChangeset for help on using the changeset viewer.