All pastes #821222 Raw Edit

imatix build script for osx 10.5

public text v1 · immutable
#821222 ·published 2007-12-18 00:04 UTC
rendered paste body
#!/bin/sh
#
# script to download and build imatix on osx 10.5
# assumes wget is available (mine is from macports)
# Cimarron Taylor, 12/16/2007
#
if [ ! -e IBASE ]; then
    mkdir IBASE
fi

pushd IBASE
export IBASE=`pwd`
popd

if [ ! -e KITS ]; then
    mkdir KITS
    pushd KITS
    wget http://download.imatix.com/pub/foreign-1.1d7-src.tar.gz
    wget http://download.imatix.com/pub/base-1.2d7-src.tar.gz
    wget http://download.imatix.com/pub/gsl-4.0c19-src.tar.gz
    popd
fi

if [ ! -e foreign-1.1d7 ]; then
    tar xfz KITS/foreign-1.1d7-src.tar.gz
    #
    # note that the $ characters are escaped in the following patch
    # to prevent sh from attempting to expand them
    #
    cat >patch.foreign-1.1d7 <<EOF
diff -Naur orig.foreign-1.1d7/apr/boomake foreign-1.1d7/apr/boomake
--- orig.foreign-1.1d7/apr/boomake	2007-09-04 05:32:45.000000000 -0700
+++ foreign-1.1d7/apr/boomake	2007-12-17 15:03:58.000000000 -0800
@@ -151,7 +151,7 @@
         MY_COPTS="\$MY_COPTS -li \$_LOCAL_BASE/include -ll \$_LOCAL_BASE/lib"
     fi
 
-    conf_opts="--without-libtool --disable-shared --enable-nonportable-atomics"
+    conf_opts="--without-libtool --disable-shared --enable-nonportable-atomics --with-sendfile=no"
     if [ -z "\$BOOM_TRACE" ]; then
         conf_opts="\$conf_opts --quiet"
     fi
EOF
    patch -p0 < patch.foreign-1.1d7
    pushd foreign-1.1d7
    sh ./configure
    ./boomake build
    ./boomake install
    popd
fi

if [ ! -e base-1.2d7 ]; then
    tar xfz KITS/base-1.2d7-src.tar.gz
    cat >patch.base-1.2d7 <<EOF
diff -Naur orig.base-1.2d7/libero/prelude.h base-1.2d7/libero/prelude.h
--- orig.base-1.2d7/libero/prelude.h	2007-09-04 05:28:09.000000000 -0700
+++ base-1.2d7/libero/prelude.h	2007-12-17 15:49:33.000000000 -0800
@@ -170,6 +170,9 @@
 #elif (defined (BSD) || defined (bsd))
 #   define __UTYPE_BSDOS
 #   define __UNIX__
+#elif (defined (APPLE) || defined (__APPLE__))
+#   define __UTYPE_OTHER
+#   define __UNIX__
 #elif (defined (linux))
 #   define __UTYPE_LINUX
 #   define __UNIX__
EOF
    patch -p0 < patch.base-1.2d7
    pushd base-1.2d7
    sh ./configure
    ./boomake build
    ./boomake install
    popd
fi

if [ ! -e gsl-4.0c19 ]; then
    tar xfz KITS/gsl-4.0c19-src.tar.gz
    pushd gsl-4.0c19
    sh ./configure
    ./boomake build
    ./boomake install
    popd
fi