Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libvirt
  5. PKG_VERSION:= 0.8.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 596bafb53bb6c079a0703f1726cb2305
  8. PKG_DESCR:= virtualization API
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libxml2 libgnutls python2 libpcap
  11. PKG_BUILDDEP:= libxml2 gnutls python2 libpcap parted udev
  12. PKG_URL:= http://www.libvirt.org/
  13. PKG_SITES:= ftp://libvirt.org/libvirt/
  14. PKG_HOST_DEPENDS:= !freebsd !netbsd !openbsd
  15. PKG_ARCH_DEPENDS:= x86 x86_64
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBVIRT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TARGET_CFLAGS+= -std=c99
  19. CONFIGURE_ARGS+= --without-xen \
  20. --without-uml \
  21. --without-esx \
  22. --without-openvz \
  23. --without-lxc \
  24. --without-vbox \
  25. --without-macvtap \
  26. --disable-silent-rules \
  27. --without-sasl
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib ${IDIR_LIBVIRT}/usr/bin
  30. ${INSTALL_DIR} ${IDIR_LIBVIRT}/etc/libvirt ${IDIR_LIBVIRT}/usr/sbin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/virsh ${IDIR_LIBVIRT}/usr/bin
  32. ${CP} ${WRKINST}/usr/lib/libvirt.so* ${IDIR_LIBVIRT}/usr/lib
  33. ${CP} ${WRKINST}/etc/libvirt/* ${IDIR_LIBVIRT}/etc/libvirt
  34. ${INSTALL_BIN} ${WRKINST}/usr/sbin/libvirtd ${IDIR_LIBVIRT}/usr/sbin
  35. include ${TOPDIR}/mk/pkg-bottom.mk