Changeset 49146


Ignore:
Timestamp:
Apr 4, 2009, 5:33:04 PM (8 years ago)
Author:
mcalhoun@…
Message:

db47: Use muniversal PortGroup to build universal binaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/db47/Portfile

    r45145 r49146  
    33
    44PortSystem 1.0
     5PortGroup  muniversal 1.0
    56
    67name                    db47
     
    5152    rmd160  a0ef673d8127be825444aaa12711dcf75b7fda1a
    5253
    53 worksrcdir              ${distname}/build_unix
     54configure.dir  ${worksrcpath}/build_unix
     55build.dir      ${configure.dir}
    5456
    5557configure.cmd           ../dist/configure
     
    7981}
    8082
     83if { [variant_isset universal] } {
     84    if { ${os.arch}=="i386" } {
     85        if { ${os.major} >= 10 } {
     86            set merger_configure_args(ppc) --with-mutex=Darwin/_spin_lock_try
     87        }
     88        set merger_configure_args(ppc64)   --with-mutex=Darwin/_spin_lock_try
     89    } else {
     90        set merger_configure_args(i386)    --with-mutex=x86/gcc-assembly
     91        set merger_configure_args(x86_64)  --with-mutex=x86_64/gcc-assembly
     92    }
     93}
     94
    8195livecheck.check regex
    8296livecheck.url   http://www.oracle.com/technology/documentation/berkeley-db/db/ref/changelog/[join [lrange [split ${version} .] 0 1] .].html
Note: See TracChangeset for help on using the changeset viewer.