# Multimedia utilities
class nodo::utils::multimedia inherits nodo::utils::multimedia::minimal {
  # Multimedia
  package { [ 'alsa-tools-gui',  'mp3blaster',          'netpbm',
              'gqview',          'audacious',           'qjackctl',
              'gimp',            'xine-ui',             'v4l-utils',          'inkscape',
              'easytag',         'gstreamer-tools',     'vlc',                'audacity',
              'opencubicplayer', 'mencoder',            'libasound2-plugins', 'lame',
              'cbrpager',        'llgal',               'darksnow',           'pavucontrol',
              'picard',          'ffmpeg2theora',       'oggfwd',             'jhead',
              'gxine',           'totem',               'faad' ]:
    ensure => installed,
  }

  # Old stuff
  package { [ 'amarok', 'moc', 'cmus' ]:
    ensure => purged,
  }

  # Squeeze only
  package { [ 'tucan', 'orpheus' ]:
    ensure => $::lsbdistcodename ? {
      'squeeze' => installed,
      default   => purged,
    }
  }

  # Wheezy onwards
  package { 'landell':
    ensure => $::lsbdistcodename ? {
      'squeeze' => absent,
      default   => installed,
    }
  }

  # Flash implementation
  $flash = hiera('nodo::utils::multimedia::flash', 'gnash')
  class { "nodo::utils::multimedia::${flash}": }
}