# Built with EasyBuild version 2.1.1 on 2015-10-02_23-11-11
easyblock = 'ConfigureMake'

name = 'ffmpeg'
version = '2.4'

homepage = 'https://www.ffmpeg.org/'
description = """A complete, cross-platform solution to record, convert and stream audio and video."""

toolchain = {'name': 'intel', 'version': '2015b'}

sources = [SOURCE_TAR_BZ2]
source_urls = ['http://ffmpeg.org/releases/']

configopts = '--enable-pic --enable-shared --enable-gpl --enable-version3 --enable-nonfree --cc="$CC" --cxx="$CXX"'

dependencies = [
    ('NASM', '2.11.05'),
    ('zlib', '1.2.8'),
]

sanity_check_paths = {
    'files': ['bin/ff%s' % x for x in ['mpeg', 'probe', 'server'] ] +
             ['lib/lib%s.%s' % (x, y) for x in ['avdevice', 'avfilter', 'avformat', 'avcodec', 'postproc', 
                                                'swresample', 'swscale', 'avutil'] for y in ['so', 'a']],
    'dirs': ['include']
}

moduleclass = 'vis'

