Makefile 2.1 KB

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