Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 64 lines (51 sloc) 1.485 kB
69aaf2c @photron Add compile script for libvirt 0.8.4
authored
1 #!/bin/sh -ex
2
1fda0fb @photron Refactor the download part of all compile scripts
authored
3 . utilslib.sh
4
5 basedir=/src/libvirt
6 baseurl=http://libvirt.org/sources
69aaf2c @photron Add compile script for libvirt 0.8.4
authored
7 version=0.8.4
8 tarball=libvirt-${version}.tar.gz
9 directory=libvirt-${version}
10
1fda0fb @photron Refactor the download part of all compile scripts
authored
11 mkdir -p $basedir
12 pushd $basedir
69aaf2c @photron Add compile script for libvirt 0.8.4
authored
13
1fda0fb @photron Refactor the download part of all compile scripts
authored
14 utilslib_download $baseurl $tarball
69aaf2c @photron Add compile script for libvirt 0.8.4
authored
15
16 if [ ! -d $directory ]
17 then
18 echo unpacking $tarball ...
19 tar -xvf $tarball
20 fi
21
22 pushd $directory
23
24 if [ ! -f configure.done ]
25 then
26 CFLAGS=-I/include \
27 LDFLAGS=-L/lib \
28 ./configure --prefix= \
29 --enable-debug=yes \
30 --without-xen \
31 --without-libvirtd \
32 --without-openvz \
33 --without-lxc \
34 --without-vbox \
621db46 @photron Add a compile script for libssh2
authored
35 --without-phyp \
69aaf2c @photron Add compile script for libvirt 0.8.4
authored
36 --without-python
37 echo done > configure.done
38 fi
39
40 make
41 make install
42
8ac789c @photron Start to change gathering and move to more compilation from source
authored
43
44 # prepare gather
45 cp src/.libs/libvirt-0.dll $prepare_bin
46 cp src/.libs/libvirt.dll.a $prepare_lib
47 cp src/.libs/libvirt.a $prepare_lib
48 cp src/.libs/libvirt-qemu-0.dll $prepare_bin
49 cp src/.libs/libvirt-qemu.dll.a $prepare_lib
50 cp src/.libs/libvirt-qemu.a $prepare_lib
51 cp tools/.libs/virsh.exe $prepare_bin
52 mkdir -p $prepare_include/libvirt
53 cp include/libvirt/libvirt.h $prepare_include/libvirt
54 cp include/libvirt/libvirt-qemu.h $prepare_include/libvirt
55 cp include/libvirt/virterror.h $prepare_include/libvirt
56 cp python/libvirt.py $prepare_python
57 cp python/.libs/libvirtmod.dll $prepare_python/libvirtmod.pyd
58 cp ../libvirt-${version}.tar.gz $prepare_src
59 cp ../../libvirt-${version}-mingw.patch $prepare_src
60
61
69aaf2c @photron Add compile script for libvirt 0.8.4
authored
62 popd
63 popd
Something went wrong with that request. Please try again.