Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.9.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b74df374b524d00a22a6c89cfc23099f
  8. PKG_DESCR:= virtualization API
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libxml2 gnutls python2 libpcap parted udev
  11. PKG_DEPENDS:= libxml2 libgnutls python2 libpcap libreadline
  12. PKG_DEPENDS+= libintl dmidecode kmod-netfilter-xt-target-checksum
  13. PKG_DEPENDS+= dnsmasq qemu
  14. PKG_URL:= http://www.libvirt.org/
  15. PKG_SITES:= ftp://libvirt.org/libvirt/
  16. PKG_HOST_DEPENDS:= !freebsd !netbsd !openbsd
  17. PKG_ARCH_DEPENDS:= x86 x86_64
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBVIRT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. include ${TOPDIR}/mk/python.mk
  21. CONFIGURE_ENV+= gl_cv_warn__fstack_protector_all=no \
  22. ac_cv_path_IPTABLES_PATH=/usr/sbin/iptables \
  23. ac_cv_path_IP6TABLES_PATH=/usr/sbin/ip6tables \
  24. ac_cv_path_IP_PATH=/bin/ip
  25. CONFIGURE_ARGS+= --without-xen \
  26. --without-uml \
  27. --without-esx \
  28. --without-openvz \
  29. --without-lxc \
  30. --without-vbox \
  31. --without-macvtap \
  32. --disable-silent-rules \
  33. --without-sasl
  34. post-install:
  35. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib ${IDIR_LIBVIRT}/usr/bin
  36. ${INSTALL_DIR} ${IDIR_LIBVIRT}/etc/libvirt ${IDIR_LIBVIRT}/usr/sbin
  37. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/share/libvirt
  38. $(CP) $(WRKINST)/usr/share/libvirt/* \
  39. ${IDIR_LIBVIRT}/usr/share/libvirt
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/virsh ${IDIR_LIBVIRT}/usr/bin
  41. ${CP} ${WRKINST}/usr/lib/libvirt*.so* ${IDIR_LIBVIRT}/usr/lib
  42. ${CP} ${WRKINST}/etc/libvirt/* ${IDIR_LIBVIRT}/etc/libvirt
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/libvirtd ${IDIR_LIBVIRT}/usr/sbin
  44. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib/python$(PYTHON_VERSION)/site-packages
  45. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  46. ${IDIR_LIBVIRT}/usr/lib/python$(PYTHON_VERSION)/site-packages
  47. include ${TOPDIR}/mk/pkg-bottom.mk