Source
variant target_[lindex $t 0] description "Add target support for [join $t {, }]" "append target_list \",[join $t -softmmu,]-softmmu\""
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
# https://trac.macports.org/ticket/58700
PortGroup legacysupport 1.0
name qemu
version 4.1.0
revision 0
categories emulators
license GPL-2+
platforms darwin
maintainers {raimue @raimue} \
openmaintainer
description Emulator for various architectures
long_description QEMU is a generic and open source machine emulator. \
It can run OSes and programs made for one machine on a \
different machine. By using dynamic translation, it \
achieves very good performance.
homepage https://www.qemu.org
master_sites https://download.qemu.org/
use_bzip2 yes
checksums rmd160 8625c6175f58dc3b96c3bf90444af4ade6a5ff20 \
sha256 49f0de77410d4d0f7d0321ff2c2888b281381f06e1e2dac9ec4d061e3934f4ae \
size 66853497
patchfiles patch-configure.diff
patch.pre_args -p1
depends_build port:texinfo \
port:libtool \
port:pkgconfig
# python is only used for build scripts, no linking
depends_build-append port:python37
license_noconflict python37
depends_lib port:curl \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:zlib \
path:lib/pkgconfig/pixman-1.pc:libpixman
# see #39058
compiler.blacklist {clang < 500} *gcc-4.2 *gcc-4.0 gcc-3.3
if {${os.platform} eq "darwin" && ${os.major} < 11} {
# Emulated TLS needed, which was added in LLVM 3.8
compiler.blacklist-append macports-clang-3.4 macports-clang-3.3 macports-clang-3.7
compiler.fallback-append macports-clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0
configure.cflags-append -femulated-tls
}
# Select compiler
configure.args --cpu=${configure.build_arch} \
--cc=${configure.cc} \
--objcc=${configure.objc} \
--host-cc=${configure.cc} \
--python=${prefix}/bin/python3.7
# Do not use iasl, even if it is installed, #43911
configure.args-append --iasl=/usr/bin/false
# Select features
configure.args-append --disable-cocoa \
--disable-curses \
--disable-capstone \
--disable-sdl \
--disable-gtk \
--disable-opengl \
--enable-curl \
--enable-bzip2 \
--disable-attr \
--disable-vde \
--disable-brlapi \
--disable-bluez \
--disable-cap-ng \
--disable-spice \
--disable-libiscsi \
--disable-rbd \
--disable-smartcard \
--disable-libusb \
--disable-usb-redir \
--disable-seccomp \
--disable-linux-aio \
--disable-glusterfs \
--disable-rdma \
--disable-libssh \