Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. PKG_LIBC_DEPENDS:= eglibc glibc
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,LIBVIRT,libvirt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. include ${TOPDIR}/mk/python.mk
  23. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/tirpc
  24. TARGET_CFLAGS+= -fno-stack-protector
  25. CONFIGURE_ENV+= gl_cv_warn__fstack_protector_all=no \
  26. ac_cv_path_IPTABLES_PATH=/usr/sbin/iptables \
  27. ac_cv_path_IP6TABLES_PATH=/usr/sbin/ip6tables \
  28. ac_cv_path_IP_PATH=/bin/ip
  29. CONFIGURE_ARGS+= --without-xen \
  30. --without-uml \
  31. --without-esx \
  32. --without-openvz \
  33. --without-lxc \
  34. --without-vbox \
  35. --without-macvtap \
  36. --without-remote \
  37. --disable-silent-rules \
  38. --without-sasl
  39. libvirt-install:
  40. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib ${IDIR_LIBVIRT}/usr/bin
  41. ${INSTALL_DIR} ${IDIR_LIBVIRT}/etc/libvirt ${IDIR_LIBVIRT}/usr/sbin
  42. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/share/libvirt
  43. $(CP) $(WRKINST)/usr/share/libvirt/* \
  44. ${IDIR_LIBVIRT}/usr/share/libvirt
  45. ${INSTALL_BIN} ${WRKINST}/usr/bin/virsh ${IDIR_LIBVIRT}/usr/bin
  46. ${CP} ${WRKINST}/usr/lib/libvirt*.so* ${IDIR_LIBVIRT}/usr/lib
  47. ${CP} ${WRKINST}/etc/libvirt/* ${IDIR_LIBVIRT}/etc/libvirt
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/libvirtd ${IDIR_LIBVIRT}/usr/sbin
  49. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib/python$(PYTHON_VERSION)/site-packages
  50. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  51. ${IDIR_LIBVIRT}/usr/lib/python$(PYTHON_VERSION)/site-packages
  52. include ${TOPDIR}/mk/pkg-bottom.mk