Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # $OpenBSD: Makefile,v 1.57 2017/02/18 17:33:51 ajacoutot Exp $
  2. COMMENT= tool/library for managing platform virtualization
  3. DISTNAME= libvirt-1.3.5
  4. REVISION= 3
  5. CATEGORIES= sysutils devel
  6. SHARED_LIBS += virt-qemu 0.4 # 1003.0
  7. SHARED_LIBS += virt 0.8 # 1003.0
  8. SHARED_LIBS += virt-lxc 0.0 # 1003.0
  9. SHARED_LIBS += virt-admin 0.0 # 1003.0
  10. HOMEPAGE= https://libvirt.org/
  11. MASTER_SITES= ${HOMEPAGE}/sources/ \
  12. ${HOMEPAGE}/sources/stable_updates/
  13. # LGPLv2.1
  14. PERMIT_PACKAGE_CDROM= Yes
  15. WANTLIB += avahi-client avahi-common c crypto curl dbus-1 ffi gmp gnutls
  16. WANTLIB += hogweed idn2 lzma m ncurses nettle nghttp2 p11-kit pthread
  17. WANTLIB += readline ssh2 ssl tasn1 util xml2 z
  18. MODULES= devel/gettext \
  19. lang/python
  20. MODPY_RUNDEP= No
  21. BUILD_DEPENDS= textproc/docbook \
  22. textproc/docbook2x
  23. LIB_DEPENDS= net/avahi \
  24. net/curl \
  25. security/gnutls \
  26. security/libssh2 \
  27. textproc/libxml
  28. USE_GMAKE= Yes
  29. CONFIGURE_STYLE= gnu
  30. CONFIGURE_ARGS+= --with-avahi \
  31. --with-ssh2 \
  32. --without-yajl \
  33. --without-netcf \
  34. --without-network \
  35. --without-login-shell \
  36. --without-wireshark-dissector
  37. # OpenBSD can't act as a virtualization host, so no need for libvirtd.
  38. # If support is added, subtitute /var/lib/{xen,virt,libvirt,...} with /var/db
  39. CONFIGURE_ARGS+= --without-libvirtd
  40. FAKE_FLAGS= confdir=${PREFIX}/share/examples/libvirt \
  41. DOCS_DIR=${PREFIX}/share/doc/libvirt/python \
  42. EXAMPLE_DIR=${PREFIX}/share/doc/libvirt/python/examples \
  43. HTML_DIR=${PREFIX}/share/doc/libvirt/html
  44. # nwfilters are only used by libvirtd, which is (currently) disabled on OpenBSD
  45. FAKE_FLAGS+= NWFILTER_DIR=${TMPDIR} \
  46. FILTERS=""
  47. .include <bsd.port.mk>