Use slapos.recipe.cmmi new features to detect plaftorm if possible.
[slapos.git] / component / qemu-kvm / buildout.cfg
1 [buildout]
2 extends =
3   ../../component/gnutls/buildout.cfg
4   ../../component/libpng/buildout.cfg
5   ../../component/libuuid/buildout.cfg
6   ../../component/pkgconfig/buildout.cfg
7   ../../component/xorg/buildout.cfg
8   ../../component/zlib/buildout.cfg
9
10 # XXX Change all reference to kvm section to qemu section, then
11 # use qemu as main name section.
12 [qemu]
13 <= kvm
14
15 [kvm]
16 recipe = slapos.recipe.cmmi
17 # qemu-kvm and qemu are now the same since 1.3.
18 url = http://wiki.qemu-project.org/download/qemu-1.5.1.tar.bz2
19 md5sum = b56e73bdcfdb214d5c68e13111aca96f
20 depends =
21   ${libpng:so_version}
22 configure-options =
23   --enable-system
24   --with-system-pixman
25   --disable-sdl
26   --disable-xen
27   --enable-vnc-tls
28   --disable-vnc-sasl
29   --disable-curses
30   --disable-curl
31   --enable-kvm
32   --disable-docs
33   --enable-vnc-png
34   --disable-vnc-jpeg
35   --enable-vnc-ws
36   --extra-cflags="-I${gnutls:location}/include -I${libuuid:location}/include -I${zlib:location}/include -I${libpng:location}/include"
37   --extra-ldflags="-Wl,-rpath -Wl,${glib:location}/lib -L${glib:location}/lib -Wl,-rpath -Wl,${gnutls:location}/lib -L${gnutls:location}/lib -Wl,-rpath -Wl,${gpg-error:location}/lib -L${gpg-error:location}/lib -L${gettext:location}/lib -Wl,-rpath -Wl,${gettext:location}/lib -Wl,-rpath -Wl,${libpng:location}/lib -L${libpng:location}/lib -L${libuuid:location}/lib -Wl,-rpath -Wl,${libuuid:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -lpng -lz -lgnutls"
38   --disable-werror
39 environment =
40   PATH=${pkgconfig:location}/bin:%(PATH)s
41   PKG_CONFIG_PATH=${gnutls:location}/lib/pkgconfig:${glib:location}/lib/pkgconfig:${pixman:location}/lib/pkgconfig
42   LDFLAGS=-L${pixman:location}/lib -Wl,-rpath=${pixman:location}/lib
43
44 [amd64-linux-kvm]
45 configure-options =
46   --target-list=x86_64-softmmu
47   ${kvm:configure-options}
48
49 [x86-linux-kvm]
50 configure-options =
51   --target-list=i386-softmmu
52   ${kvm:configure-options}
53