Ignore:
Timestamp:
Apr 30, 2009, 2:22:25 AM (11 years ago)
Author:
mcalhoun@…
Message:

libiconv: Correct values guessed by configure script during universal builds.
Fixes #18440.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/libiconv/Portfile

    r46078 r50387  
    9595}
    9696
     97if { [variant_isset universal] } {
     98    # When cross-compiling, can guess wrong endian value.
     99    if { ${os.arch}=="i386" } {
     100        if { ${os.major} >= 10 } {
     101            lappend merger_configure_env(ppc) cl_cv_sys_endian='big endian'
     102            set cross_archs "ppc ppc64"
     103        }
     104        lappend merger_configure_env(ppc64)   cl_cv_sys_endian='big endian'
     105        set cross_archs "ppc64"
     106    } else {
     107        lappend merger_configure_env(i386)    cl_cv_sys_endian='little endian'
     108        lappend merger_configure_env(x86_64)  cl_cv_sys_endian='little endian'
     109        set cross_archs "i386 x86_64"
     110    }
     111
     112    foreach arch ${cross_archs} {
     113        lappend merger_configure_env(${arch}) \
     114            ac_cv_func_malloc_0_nonnull='yes' \
     115            gl_cv_func_malloc_0_nonnull='1'
     116    }
     117
     118    # See http://trac.macports.org/ticket/18440.
     119    if { ${universal_sysroot}=="/Developer/SDKs/MacOSX10.4u.sdk" } {
     120            foreach arch "ppc64 x86_64" {
     121                lappend merger_configure_env(${arch}) \
     122                    am_cv_func_iconv='yes' \
     123                    am_cv_proto_iconv_arg1='const'
     124        }
     125    }
     126}
     127
    97128livecheck.check         freshmeat
Note: See TracChangeset for help on using the changeset viewer.