Installation Instructions
-------------------------

    1. Install all required dependencies:

      * sqlite >= 3.6.19
      * taglib >= 1.9.0
      * expat
      * cmake 3.3.1

    2. Install optional dependencies:

       * dbus 1.0.x
       * flac
       * mad
       * vorbis (or tremor)
       * ogg
       * opus
       * faad2
       * pulse
       * a52
       * zlib
       * openssl or gnutls

    3. Run cmake:

       > cmake .

       The following options are available:

          CMAKE_INSTALL_PREFIX => Installation Directory (default: /usr)
          CMAKE_BUILD_TYPE     => Set the build type. Available types: Release, Debug, RelWithDebInfo and MinSizeRel (default)
          CMAKE_INSTALL_LIBDIR => Name of directory where libraries are meant to be installed (default: lib)

          WITH_OSS             => Enables building the OSS Output plugin (default: OFF on Linux, ON on UNIX)
          WITH_ALSA            => Enables building the ALSA Ouput plugin (default: ON on Linux, OFF on UNIX)
          WITH_PULSE           => Enables building the PulseAudio Output Plugin
          WITH_WAVOUT          => Enables building the Wav File Output Plugin

          WITH_MATROSKA        => Enables building the Matroska Input Plugin
          WITH_MP4             => Enables building the MP4 Input Plugin

          WITH_OGG             => Enables building with Ogg Library (required for Vorbis and Opus)
          WITH_VORBIS          => Enables building with Vorbis Library
          WITH_TREMOR          => Enables building with Tremor Library (Vorbis Alternative) (default: OFF)
          WITH_FLAC            => Enables building with FLAC library
          WITH_MAD             => Enables building with MAD library
          WITH_ALAC            => Enables building with (buildin) ALAC library
          WITH_FAAD            => Enables building with FAAD2 library
          WITH_OPUS            => Enables building with Opus Library
          WITH_A52             => Enables building with A52 Library (default: OFF)

          WITH_OPENSSL         => Enables building with OpenSSL
          WITH_GNUTLS          => Enables building with GnuTLS if OpenSSL is not found
          WITH_GCRYPT          => Enables building with libgcrypt if neither OpenSSL or GnuTLS is included.
          WITH_ZLIB            => Enables building with zlib

          WITH_OPENGL          => Enables OpenGL based features
          WITH_DBUS            => Enables DBUS based features
          WITH_NLS             => Enables Native Language Support
          WITH_SESSION         => Enabled X Session Support

          Options are enabled by default unless otherwise noted.

       These can be passed on the command line using:

          > cmake -Doption=value .

    4. Compile

       > make

   5. Install

       > sudo make install

   6. Run the software

       > gogglesmm


Building Goggles Music Manager on Ubuntu 14.04 LTS
--------------------------------------------------

    1. Install build tools and header files for FOX

       > sudo apt-get install build-essential
       > sudo apt-get install libxrandr-dev libxfixes-dev libxft-dev libxrender-dev libxcursor-dev libxi-dev libglu-dev libice-dev libsm-dev
       > sudo apt-get install libtiff-dev
       > sudo apt-get install libjpeg-dev
       > sudo apt-get install libpng-dev
       > sudo apt-get install libbz2-dev
       > sudo apt-get install libwebp-dev
       > sudo apt-get install libopenjpeg-dev

    2. Install build dependencies for gogglesmm

       > sudo apt-get install libasound2-dev
       > sudo apt-get install libpulse-dev
       > sudo apt-get install libogg-dev
       > sudo apt-get install libvorbis-dev
       > sudo apt-get install libopus-dev
       > sudo apt-get install libflac-dev
       > sudo apt-get install libmad0-dev
       > sudo apt-get install libfaad-dev
       > sudo apt-get install libsqlite3-dev
       > sudo apt-get install libtag1-dev
       > sudo apt-get install libglew-dev
       > sudo apt-get install libgcrypt11-dev

    4. Download, Build and Install gogglesmm (adjust version if necessary)

       > wget https://github.com/gogglesmm/gogglesmm/archive/1.0.12.tar.gz
       > tar xvf gogglesmm-1.0.12.tar.gz
       > cd gogglesmm-1.0.12

       for 32 bit:
       > ./configure --with-faad --without-oss --libdir=/usr/lib/i386-linux-gnu

       for 64 bit:
       > ./configure --with-faad --without-oss --libdir=/usr/lib/x86_64-linux-gnu

       > make
       > sudo make install

    5. Run

       > gogglesmm
