#!/bin/bash
#
# Version and build information for Magmalib
#
# $Id$
#
######################################################################

MAGMALIB_BLDRVERSION=${MAGMALIB_BLDRVERSION:-"1.4.0.1-tx-win64-tesla"}
MAGMALIB_BUILDS=${MAGMALIB_BUILDS:-"gpu"}
MAGMALIB_DEPS=
MAGMALIB_UMASK=002

#####################################################################
#
# Launch Magmalib builds.
#
######################################################################

# This currently only installs the windows tesla 64 bit magma library

buildMagmalib() {
  techo ""
  if shouldInstall -i $CONTRIB_DIR magmalib-$MAGMALIB_BLDRVERSION gpu; then
    local magmalibtarball=`getPkg "magmalib-$MAGMALIB_BLDRVERSION"`
    cmd="$TAR -C $CONTRIB_DIR -xzf $magmalibtarball"
    $cmd
    cmd="mkLink $CONTRIB_DIR magmalib-$MAGMALIB_BLDRVERSION magmalib"
    $cmd
    cmd="$BILDER_DIR/setinstald.sh -i $CONTRIB_DIR magmalib,gpu"
    $cmd
    buildSuccesses="$buildSuccesses magmalib"
  fi
}

testMagmalib() {
  techo "Not testing Magmalib."
}

installMagmalib() {
  : # bilderInstall Magmalib
}

#!/bin/bash
#
# Version and build information for Magmalib
#
# $Id$
#
######################################################################

MAGMALIB_BLDRVERSION=${MAGMALIB_BLDRVERSION:-"1.4.0.1-tx-win64-tesla"}
MAGMALIB_BUILDS=${MAGMALIB_BUILDS:-"gpu"}
MAGMALIB_DEPS=
MAGMALIB_UMASK=002

#####################################################################
#
# Launch Magmalib builds.
#
######################################################################

# This currently only installs the windows tesla 64 bit magma library

buildMagmalib() {
  techo ""
  if shouldInstall -i $CONTRIB_DIR magmalib-$MAGMALIB_BLDRVERSION gpu; then
    # local magmalibtarball=`getPkg "magmalib-$MAGMALIB_BLDRVERSION"`
    getPkg magmalib-$MAGMALIB_BLDRVERSION
    local magmalibtarball="$GETPKG_RETURN"
    cmd="$TAR -C $CONTRIB_DIR -xzf $magmalibtarball"
    $cmd
    cmd="mkLink $CONTRIB_DIR magmalib-$MAGMALIB_BLDRVERSION magmalib"
    $cmd
    cmd="$BILDER_DIR/setinstald.sh -i $CONTRIB_DIR magmalib,gpu"
    $cmd
    buildSuccesses="$buildSuccesses magmalib"
  fi
}

testMagmalib() {
  techo "Not testing Magmalib."
}

installMagmalib() {
  : # bilderInstall Magmalib
}

Update for change of how getPkg returns tarballname.
Update for change of how getPkg returns tarballname.

git-svn-id: 06aac1f7aa6783202dd435920b98a457d633d0b0@943 a9e16012-fd73-49ee-95cb-036de7809213
