Changeset 18ee239


Ignore:
Timestamp:
Jul 30, 2011 11:18:39 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
9d3acf9
Parents:
3d64df5
Message:

Add jbigi support for Intel Macs

The jnilibs were compiled on Snow Leopard 10.6.8 with Xcode 3.2 (gcc 4.2.1)

Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/mbuild-all.sh

    r3d64df5 r18ee239  
    4444LINUX_PLATFORMS="${X86_PLATFORMS} ${MISC_LINUX_PLATFORMS}"
    4545FREEBSD_PLATFORMS="${X86_PLATFORMS} ${MISC_FREEBSD_PLATFORMS}"
    46 DARWIN_PLATFORMS="${X86_PLATFORMS} ${MISC_DARWIN_PLATFORMS}"
     46DARWIN_PLATFORMS="core2 corei"
    4747
    48 # OSX doesn't have the -r parameter as an option for sed.
    49 VER=$(echo gmp-*.tar.bz2 | sed -re "s/(.*-)(.*)(.*.tar.bz2)$/\2/" | tail -n 1)
     48# Set the version to 5.0.2 for OSX because
     49# 1) it doesn't have the -r parameter as an option for sed
     50# 2) AFAIK there are only 64bit capable CPUs for the Intel Macs
     51if [ `uname -s |grep Darwin` ]; then
     52        VER=5.0.2
     53else
     54        VER=$(echo gmp-*.tar.bz2 | sed -re "s/(.*-)(.*)(.*.tar.bz2)$/\2/" | tail -n 1)
     55fi
     56
    5057if [ "$VER" == "" ] ; then
    5158        echo "ERROR! Can't find gmp source tarball."
     
    124131        sleep 10
    125132        # Nonfatal bail out on unsupported platform.
    126         ../../gmp-${1}/configure --build=${2} --with-pic && return 0
     133        if [ `uname -s |grep Darwin` ]; then
     134                ../../gmp-${1}/configure --build=${2}-apple-darwin --with-pic && return 0
     135        else
     136                ../../gmp-${1}/configure --build=${2} --with-pic && return 0
     137        fi
    127138        cd ..
    128139        rm -R "$2"
Note: See TracChangeset for help on using the changeset viewer.