# IT4Innovations
# LK 2022

easyblock = 'ConfigureMake'

name = "QEMU"
version = "6.2.0"

homepage = 'http://wiki.qemu.org/Main_Page'
description = """QEMU is a generic and open source machine emulator and
virtualizer."""

configopts = "--target-list=x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user"

toolchain = {'name': 'GCC', 'version': '10.2.0'}

sources = [SOURCELOWER_TAR_BZ2]
source_urls = ['http://wiki.qemu-project.org/download/']

patches = ['qemu-slirp-smb-2.9.0.patch']

dependencies = [
    ('Python', '3.8.6'),
    ('pixman', '0.40.0'),
    ('Ninja', '1.10.1'),
    ('GLib', '2.66.1'),
]

sanity_check_paths = {
    'files': ['bin/qemu-x86_64'],
    'dirs': ['bin', 'share'],
}

moduleclass = 'tools'
