easyblock = 'ConfigureMake'

name = 'x264'
version = '20160430'

homepage = 'http://www.videolan.org/developers/x264.html'
description = """x264 is a free software library and application for encoding video streams into the H.264/MPEG-4
 AVC compression format, and is released under the terms of the GNU GPL."""

toolchain = {'name': 'system', 'version': ''}

source_urls = [
    'https://download.videolan.org/pub/videolan/x264/snapshots/',
    'ftp://ftp.videolan.org/pub/videolan/x264/snapshots/',
]
sources = ['x264-snapshot-%(version)s-2245-stable.tar.bz2']

dependencies = [('Yasm', '1.3.0')]

configopts = "  --enable-shared --enable-static "

sanity_check_paths = {
    'files': [
        'bin/x264',
        'include/x264_config.h',
        'include/x264.h',
        'lib/libx264.a',
        'lib/libx264.%s' %
        SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'vis'
