Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 80 lines (65 sloc) 2.046 kb
b4d850af »
2012-04-21 Add compile scripts for libvirt 0.9.4 and 0.9.10
1 #!/bin/sh -ex
2
3 . utilslib.sh
4
5 basedir=/src/libvirt
6 baseurl=http://libvirt.org/sources
7 version=0.9.4
8 revision=0
9 tarball=libvirt-${version}.tar.gz
10 directory=libvirt-${version}-${revision}
11
12 mkdir -p $basedir
13 pushd $basedir
14
15 utilslib_download $baseurl $tarball
16
17 if [ ! -d $directory ]
18 then
19 echo unpacking $tarball ...
20 mkdir -p $directory
21 tar -xvf $tarball -C $directory --strip-components=1
22 fi
23
24 pushd $directory
25
26 if [ ! -f mingw.patch.applied ]
27 then
28 echo patching ...
29 patch -p1 < ../../libvirt-${version}-mingw.patch
30 echo applied > mingw.patch.applied
31 fi
32
33 if [ -d /include/libvirt ]
34 then
35 # remove previously installed libvirt header files. specifying -I/include
36 # makes the build pickup the old headers instead of it's own files.
37 # removing the old header files is a simple workaround for this problem.
38 rm -r /include/libvirt
39 fi
40
41 if [ ! -f configure.done ]
42 then
43 CFLAGS=-I/include \
44 LDFLAGS=-L/lib \
45 ./configure --prefix= \
46 --without-libvirtd \
47 --without-openvz \
48 --without-lxc \
49 --without-phyp \
50 --with-python
51 echo done > configure.done
52 fi
53
54 make
55 make install
56
57 # copy libvirtmod.dll to the correct place so python will find it
58 cp /python/Lib/site-packages/libvirtmod.dll /python/DLLs/libvirtmod.pyd
59
60
8ac789ce »
2012-10-06 Start to change gathering and move to more compilation from source
61 # prepare gather
62 cp src/.libs/libvirt-0.dll $prepare_bin
63 cp src/.libs/libvirt.dll.a $prepare_lib
64 cp src/.libs/libvirt.a $prepare_lib
65 cp src/.libs/libvirt-qemu-0.dll $prepare_bin
66 cp src/.libs/libvirt-qemu.dll.a $prepare_lib
67 cp src/.libs/libvirt-qemu.a $prepare_lib
68 cp tools/.libs/virsh.exe $prepare_bin
69 mkdir -p $prepare_include/libvirt
70 cp include/libvirt/libvirt.h $prepare_include/libvirt
71 cp include/libvirt/libvirt-qemu.h $prepare_include/libvirt
72 cp include/libvirt/virterror.h $prepare_include/libvirt
73 cp python/libvirt.py $prepare_python
74 cp python/.libs/libvirtmod.dll $prepare_python/libvirtmod.pyd
75 cp ../libvirt-${version}.tar.gz $prepare_src
76 cp ../../libvirt-${version}-mingw.patch $prepare_src
77
78
b4d850af »
2012-04-21 Add compile scripts for libvirt 0.9.4 and 0.9.10
79 popd
80 popd
Something went wrong with that request. Please try again.