Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (61 sloc) 1.858 kb
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
1 #!/bin/sh -ex
2
1fda0fb Matthias Bolte Refactor the download part of all compile scripts
authored
3 . utilslib.sh
4
5 basedir=/src/libvirt
6 baseurl=http://libvirt.org/sources
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
7 version=0.8.6
7896897 Matthias Bolte Make libvirt read TLS certificates from %APPDATA%\libvirt\pki\
authored
8 revision=1
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
9 tarball=libvirt-${version}.tar.gz
7896897 Matthias Bolte Make libvirt read TLS certificates from %APPDATA%\libvirt\pki\
authored
10 directory=libvirt-${version}-${revision}
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
11
1fda0fb Matthias Bolte Refactor the download part of all compile scripts
authored
12 mkdir -p $basedir
13 pushd $basedir
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
14
1fda0fb Matthias Bolte Refactor the download part of all compile scripts
authored
15 utilslib_download $baseurl $tarball
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
16
17 if [ ! -d $directory ]
18 then
19 echo unpacking $tarball ...
7896897 Matthias Bolte Make libvirt read TLS certificates from %APPDATA%\libvirt\pki\
authored
20 mkdir -p $directory
21 tar -xvf $tarball -C $directory --strip-components=1
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
22 fi
23
24 pushd $directory
25
26 if [ ! -f mingw.patch.applied ]
27 then
28 echo patching ...
1fda0fb Matthias Bolte Refactor the download part of all compile scripts
authored
29 patch -p1 < ../../libvirt-${version}-mingw.patch
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
30 echo applied > mingw.patch.applied
31 fi
32
33 if [ ! -f configure.done ]
34 then
35 CFLAGS=-I/include \
36 LDFLAGS=-L/lib \
37 ./configure --prefix= \
38 --enable-debug=yes \
39 --without-xen \
40 --without-libvirtd \
41 --without-openvz \
42 --without-lxc \
43 --without-vbox \
44 --without-phyp \
45 --with-python
46 echo done > configure.done
47 fi
48
49 make
50 make install
51
52 # copy libvirtmod.dll to the correct place so python will find it
1fda0fb Matthias Bolte Refactor the download part of all compile scripts
authored
53 cp /python/Lib/site-packages/libvirtmod.dll /python/DLLs/libvirtmod.pyd
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
54
8ac789c Matthias Bolte Start to change gathering and move to more compilation from source
authored
55
56 # prepare gather
57 cp src/.libs/libvirt-0.dll $prepare_bin
58 cp src/.libs/libvirt.dll.a $prepare_lib
59 cp src/.libs/libvirt.a $prepare_lib
60 cp src/.libs/libvirt-qemu-0.dll $prepare_bin
61 cp src/.libs/libvirt-qemu.dll.a $prepare_lib
62 cp src/.libs/libvirt-qemu.a $prepare_lib
63 cp tools/.libs/virsh.exe $prepare_bin
64 mkdir -p $prepare_include/libvirt
65 cp include/libvirt/libvirt.h $prepare_include/libvirt
66 cp include/libvirt/libvirt-qemu.h $prepare_include/libvirt
67 cp include/libvirt/virterror.h $prepare_include/libvirt
68 cp python/libvirt.py $prepare_python
69 cp python/.libs/libvirtmod.dll $prepare_python/libvirtmod.pyd
70 cp ../libvirt-${version}.tar.gz $prepare_src
71 cp ../../libvirt-${version}-mingw.patch $prepare_src
72
73
e2ad5ef Matthias Bolte Add compile script for libvirt 0.8.6
authored
74 popd
75 popd
Something went wrong with that request. Please try again.