source: trunk/dports/emulators/qemu/Portfile

Last change on this file was 152409, checked in by raimue@…, 15 months ago

emulators/qemu:
Update to version 2.7.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.2 KB
Line 
1# $Id: Portfile 152409 2016-09-07 17:15:36Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    qemu
6version                 2.7.0
7categories              emulators
8license                 GPL-2+
9platforms               darwin
10maintainers             raimue openmaintainer
11
12description             Emulator for various architectures
13long_description        QEMU is a generic and open source machine emulator. \
14                        It can run OSes and programs made for one machine on a \
15                        different machine. By using dynamic translation, it \
16                        achieves very good performance.
17
18homepage                http://qemu.org
19master_sites            ${homepage}/download
20use_bzip2 yes
21
22checksums               rmd160  cc962261a4f7b05ace8c16027bda770a89322cd3 \
23                        sha256  326e739506ba690daf69fc17bd3913a6c313d9928d743bd8eddb82f403f81e53
24
25patchfiles              patch-configure.diff
26
27depends_build           port:texinfo \
28                        port:libtool \
29                        port:pkgconfig
30
31# python is only used for build scripts, no linking
32depends_build-append    port:python27
33license_noconflict      python27
34
35depends_lib             port:curl \
36                        path:lib/pkgconfig/glib-2.0.pc:glib2 \
37                        port:zlib \
38                        path:lib/pkgconfig/pixman-1.pc:libpixman
39
40# see #39058
41compiler.blacklist      gcc-4.0 gcc-3.3 apple-gcc-4.0
42
43# Select compiler
44configure.args          --cpu=${configure.build_arch} \
45                        --cc=${configure.cc} \
46                        --objcc=${configure.objc} \
47                        --host-cc=${configure.cc} \
48                        --python=${prefix}/bin/python2.7
49
50# Do not use iasl, even if it is installed, #43911
51configure.args-append   --iasl=/usr/bin/false
52
53# Select features
54configure.args-append   --disable-cocoa \
55                        --disable-curses \
56                        --disable-sdl \
57                        --disable-gtk \
58                        --disable-opengl \
59                        --enable-curl \
60                        --enable-uuid \
61                        --enable-vhdx \
62                        --with-system-pixman \
63                        --disable-attr \
64                        --disable-vde \
65                        --disable-brlapi \
66                        --disable-bluez \
67                        --disable-cap-ng \
68                        --disable-spice \
69                        --disable-libiscsi \
70                        --disable-rbd \
71                        --disable-smartcard \
72                        --disable-libusb \
73                        --disable-usb-redir \
74                        --disable-seccomp \
75                        --disable-glusterfs \
76                        --disable-rdma \
77                        --disable-libssh2 \
78                        --disable-vnc
79
80# libtool: unknown option character `-' in: --mode=compile
81configure.env-append   LIBTOOL=${prefix}/bin/glibtool
82
83set target_list {}
84pre-configure {
85    configure.args-append --target-list=${target_list}
86}
87
88# disable silent rules
89build.args-append       V=1
90
91default_variants        +usb
92
93foreach t {i386 x86_64 alpha {arm aarch64} cris lm32 m68k {microblaze microblazeel} {mips mipsel mips64 mips64el} \
94           moxie or32 {ppc ppcemb ppc64} s390x {sh4 sh4eb} {sparc sparc64} tricore unicore32 {xtensa xtensaeb}} {
95    variant target_[lindex $t 0] description "Add target support for [join $t {, }]" "append target_list \",[join $t -softmmu,]-softmmu\""
96}
97default_variants-append +target_i386 +target_x86_64
98
99if {![variant_isset curses]} {
100    default_variants-append +cocoa
101}
102
103variant cocoa description {Use the native Mac OS X graphical user interface} {
104    configure.args-replace  --disable-cocoa --enable-cocoa
105}
106
107variant curses description {Use the curses text-only user interface} {
108    configure.args-replace --disable-curses --enable-curses
109    depends_lib-append      port:ncurses
110}
111
112# XXX: gtk/sdl need libepoxy for OpenGL
113
114# XXX: Builds, but does not work as expected at runtime
115#variant gtk3 description {Build GTK+ GUI for GTK+ 3 (experimental)} conflicts cocoa curses gtk2 sdl sdl2 {
116#    configure.args-replace --disable-gtk --enable-gtk
117#    configure.args-append --with-gtkabi=3.0
118#    depends_lib-append     port:gtk3 port:vte
119#}
120
121# XXX: Builds, but user input does not work at runtime
122#variant gtk2 description {Use the GTK+ 2 graphical user interface} conflicts cocoa curses gtk3 sdl sdl2 {
123#    configure.args-replace --disable-gtk --enable-gtk
124#    configure.args-append  --with-gtkabi=2.0
125#    depends_lib-append     port:gtk2 port:vte
126#}
127
128# XXX: Build broken due to missing X11 symbols
129#variant sdl description {Use the SDL graphical user interface} conflicts cocoa curses gtk2 gtk3 sdl sdl2 {
130#    configure.args-replace --disable-sdl --enable-sdl
131#    depends_lib-append      port:libsdl
132#}
133
134# XXX: Broken at runtime, screen flickers and input does not work
135#variant sdl2 description {Use the SDL 2 graphical user interface} conflicts cocoa curses {
136#    configure.args-replace --disable-sdl --enable-sdl
137#    configure.args-append --with-sdlabi=2.0
138#    depends_lib-append      port:libsdl2
139#}
140
141variant usb description {Support forwarding of USB devices to the guest} {
142    configure.args-replace  --disable-libusb --enable-libusb
143    depends_lib-append      path:lib/pkgconfig/libusb-1.0.pc:libusb
144}
145
146variant vnc description {Support VNC server} {
147    configure.args-replace  --disable-vnc --enable-vnc
148    configure.args-append   --enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png
149    depends_lib-append      port:gnutls \
150                            port:cyrus-sasl2 \
151                            path:lib/libjpeg.dylib:jpeg \
152                            port:libpng
153}
154
155variant vde description {Support VDE networking} {
156    configure.args-replace  --disable-vde --enable-vde
157    depends_lib-append      port:vde2
158}
159
160variant ssh description {Support remote block devices over SSH} {
161    configure.args-replace  --disable-libssh2 --enable-libssh2
162    depends_lib-append      port:libssh2
163}
164
165# Default universal variant does not work
166universal_variant       no
167
168platform darwin 8 {
169    depends_build-append port:gmake
170    build.cmd ${prefix}/bin/gmake
171}
172
173livecheck.type  regex
174livecheck.url   [lindex ${master_sites} 0]
175livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)(?:-\\d+)*\\.tar
Note: See TracBrowser for help on using the repository browser.