# IT4Innovations 2019
#
easyblock = 'ConfigureMake'

name = 'ffmpeg'
version = '4.1'

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

toolchain = SYSTEM

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.13.03'),
]

builddependencies = [
    ('zlib', '1.2.11'),
    ('bzip2', '1.0.6'),
]

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'
