=========================
Compiling libvirt on OS X
=========================

Dependencies
============

* libgpg-error
* libgcrypt
* gnutls

Steps
=====

This should install the packages you need:

$ sudo port install gnupg gnutls

This will get the source, build, and install:

$ wget ftp://libvirt.org/libvirt/libvirt-0.7.6.tar.gz
$ tar xfz libvirt-0.7.6.tar.gz
$ cd libvirt-0.7.6
$ patch -p1 < /path/to/libvirt-0.7.6_OSX.patch
$ CPPFLAGS="-I/opt/local/include" ./configure --prefix="$HOME/libvirt" --without-xen --without-sasl --without-avahi --without-polkit  --without-qemu --without-lxc --without-openvz --without-libvirtd --without-uml --without-vbox
$ make
$ make install

The installation will go into $HOME/libvirt, but you can change that in the
configure command above.
