#!/bin/bash

if [ "$1" == "" ]; then
  if [ "$2" == "64" ]; then
    # set environment variables used by OCCT
    export CSF_FPE=0

    export TCL_DIR="/tmp/pkgbuild/cad/occt/work.aarch64eb/.buildlink/lib"
    export TK_DIR="/tmp/pkgbuild/cad/occt/work.aarch64eb/.buildlink/lib"
    export FREETYPE_DIR=""
    export FREEIMAGE_DIR="/tmp/pkgbuild/cad/occt/work.aarch64eb/.buildlink/lib:"
    export TBB_DIR=""
    export VTK_DIR=""
    export FFMPEG_DIR=""
    export JEMALLOC_DIR=""

    if [ "x@3RDPARTY_QT_DIR" != "x" ]; then
      export QTDIR=""
    fi

    export TCL_VERSION_WITH_DOT="8.6"
    export TK_VERSION_WITH_DOT="8.6"

    export CSF_OCCTBinPath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/cmake-pkgsrc-build/lin64/gcc/bin"
    export CSF_OCCTLibPath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/cmake-pkgsrc-build/lin64/gcc/lib"
    export CSF_OCCTIncludePath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/cmake-pkgsrc-build/inc"
    export CSF_OCCTResourcePath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/src"
    export CSF_OCCTDataPath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/data"
    export CSF_OCCTSamplesPath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/samples"
    export CSF_OCCTTestsPath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/tests"
    export CSF_OCCTDocPath="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0/doc"

    # for compatibility with external application using CASROOT
    export CASROOT="/tmp/pkgbuild/cad/occt/work.aarch64eb/occt-V7_8_0"
  fi
fi

