easyblock = 'ConfigureMake'

name = 'xf86-video-dummy'
version = '0.3.8'

homepage = "http://www.x.org/wiki/"
description = """The xprop utility is for displaying window and font properties in an X server.
 One window or font is selected using the command line arguments or possibly
 in the case of a window, by clicking on the desired window. A list of
 properties is then given, possibly with formatting information."""

toolchain = {'name': 'intel', 'version': '2017a'}

sources = [SOURCE_TAR_GZ]
source_urls = ['https://www.x.org/archive/individual/driver/']

preconfigopts = 'sed -i -e "/mibstore.h/d" -e "/miInitializeBackingStore/d" src/dummy_driver.c && '

# builddependencies = [
#   ('xorg-macros', '1.19.1'),
#]

dependencies = [
    ('xorg-server', '1.19.3'),
]

sanity_check_paths = {
    'files': [
        'lib/xorg/modules/drivers/dummy_drv.la',
        'lib/xorg/modules/drivers/dummy_drv.so'],
    'dirs': [],
}

moduleclass = 'vis'
