Open Terminal

Install homebrew with the following command

    /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

Make sure homebrew is up to date with

    sudo brew update

Change directory to your brew home folder with

    cd /usr/local/Library/Formula
    curl --insecure -O "https://raw.github.com/OpenKinect/libfreenect/master/platform/osx/homebrew/libfreenect.rb"
    curl --insecure -O "https://raw.github.com/OpenKinect/libfreenect/master/platform/osx/homebrew/libusb-freenect.rb"

    brew install libfreenect

    glview