Ignore:
Timestamp:
Dec 27, 2009, 10:23:10 PM (10 years ago)
Author:
ryandesign@…
Message:

xercesc: specify the number of bits to build for; use muniversal portgroup to be able to give each arch the right number of bits; see #14396

File:
1 edited

Legend:

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

    r62009 r62014  
    22
    33PortSystem 1.0
     4PortGroup               muniversal 1.0
     5
    46name                    xercesc
    57version                 2.8.0
     
    2628                        -x ${configure.cxx}
    2729configure.cmd           ./runConfigure
     30configure.universal_args-delete --disable-dependency-tracking
     31
     32proc bits_arg_for_arch {arch} {
     33        switch ${arch} {
     34                x86_64  -
     35                ppc64   { return {-b 64} }
     36                i386    -
     37                ppc     { return {-b 32} }
     38        }
     39}
     40
     41if {[variant_isset universal]} {
     42        foreach arch {x86_64 ppc64 i386 ppc} {
     43                set merger_configure_args(${arch}) [bits_arg_for_arch ${arch}]
     44        }
     45} else {
     46        configure.args-append [bits_arg_for_arch ${configure.build_arch}]
     47}
    2848
    2949build.dir               ${worksrcpath}/src/xercesc
Note: See TracChangeset for help on using the changeset viewer.