Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= libvirt
  5. PKG_VERSION:= 1.2.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= da7a9ca519df45a460659189fe0024e6
  8. PKG_DESCR:= virtualization api
  9. PKG_SECTION:= libs/misc
  10. PKG_BUILDDEP:= libxml2 gnutls python2 libpcap parted eudev qemu
  11. PKG_DEPENDS:= libxml2 libgnutls python2 libpcap libreadline
  12. PKG_DEPENDS+= dmidecode dnsmasq qemu libnl libudev
  13. PKG_URL:= http://www.libvirt.org/
  14. PKG_SITES:= http://libvirt.org/sources/
  15. PKG_OPTS:= dev
  16. PKG_CFLINE_LIBVIRT:= depends on ADK_BROKEN
  17. PKG_HOST_DEPENDS:= !freebsd !netbsd !openbsd
  18. PKG_ARCH_DEPENDS:= x86 x86_64
  19. PKG_LIBC_DEPENDS:= glibc
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  21. include ${ADK_TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,LIBVIRT,libvirt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  23. include ${ADK_TOPDIR}/mk/python.mk
  24. TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/usr/include/tirpc
  25. ifeq ($(ADK_TARGET_USE_SSP),)
  26. TARGET_CFLAGS+= -fno-stack-protector
  27. endif
  28. CONFIGURE_ENV+= gl_cv_warn__fstack_protector_all=no \
  29. ac_cv_path_IPTABLES_PATH=/usr/sbin/iptables \
  30. ac_cv_path_IP6TABLES_PATH=/usr/sbin/ip6tables \
  31. ac_cv_path_IP_PATH=/bin/ip
  32. CONFIGURE_ARGS+= --without-xen \
  33. --without-uml \
  34. --without-esx \
  35. --without-openvz \
  36. --without-lxc \
  37. --without-vbox \
  38. --without-vmware \
  39. --without-macvtap \
  40. --without-remote \
  41. --disable-silent-rules \
  42. --without-sasl \
  43. --with-qemu \
  44. --with-libvirtd
  45. libvirt-install:
  46. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib ${IDIR_LIBVIRT}/usr/bin
  47. ${INSTALL_DIR} ${IDIR_LIBVIRT}/etc/libvirt ${IDIR_LIBVIRT}/usr/sbin
  48. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/share/libvirt
  49. $(CP) $(WRKINST)/usr/share/libvirt/* \
  50. ${IDIR_LIBVIRT}/usr/share/libvirt
  51. ${INSTALL_BIN} ${WRKINST}/usr/bin/virsh ${IDIR_LIBVIRT}/usr/bin
  52. ${CP} ${WRKINST}/usr/lib/libvirt*.so* ${IDIR_LIBVIRT}/usr/lib
  53. ${CP} ${WRKINST}/etc/libvirt/* ${IDIR_LIBVIRT}/etc/libvirt
  54. ${INSTALL_BIN} ${WRKINST}/usr/sbin/libvirtd ${IDIR_LIBVIRT}/usr/sbin
  55. ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib/python$(PYTHON_VERSION)/site-packages
  56. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  57. ${IDIR_LIBVIRT}/usr/lib/python$(PYTHON_VERSION)/site-packages
  58. include ${ADK_TOPDIR}/mk/pkg-bottom.mk