Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d4aec0d998
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (48 sloc) 1.424 kB
#!/bin/sh -ex
. utilslib.sh
basedir=/src/libvirt
baseurl=http://libvirt.org/sources
version=0.8.1
tarball=libvirt-${version}.tar.gz
directory=libvirt-${version}
patch=libvirt-${version}-mingw.patch
mkdir -p $basedir
pushd $basedir
utilslib_download $baseurl $tarball
if [ ! -d $directory ]
then
echo unpacking $tarball ...
tar -xvf $tarball
fi
pushd $directory
if [ ! -f mingw.patch.applied ]
then
echo patching ...
patch -p1 < ../../$patch
echo applied > mingw.patch.applied
fi
if [ ! -f configure.done ]
then
PYTHON_PREFIX=/lib/python2.6/site-packages \
PYTHON_EXEC_PREFIX=/lib/python2.6/site-packages \
CFLAGS=-I/include\ -L/lib ./configure --prefix= --enable-debug=yes \
--without-xen --without-libvirtd --without-openvz \
--without-lxc --without-vbox --without-python
echo done > configure.done
fi
make
make install
# prepare gather
cp src/.libs/libvirt-0.dll $prepare_bin
cp src/.libs/libvirt.dll.a $prepare_lib
cp src/.libs/libvirt.a $prepare_lib
cp tools/.libs/virsh.exe $prepare_bin
mkdir -p $prepare_include/libvirt
cp include/libvirt/libvirt.h $prepare_include/libvirt
cp include/libvirt/virterror.h $prepare_include/libvirt
cp python/libvirt.py $prepare_python
cp python/.libs/libvirtmod.dll $prepare_python/libvirtmod.pyd
cp ../libvirt-${version}.tar.gz $prepare_src
cp ../../libvirt-${version}-mingw.patch $prepare_src
popd
popd
Jump to Line
Something went wrong with that request. Please try again.