summaryrefslogtreecommitdiff
path: root/sysutils/libvirt/Makefile
blob: 42745a2561c2af5affb1743e98a0eda5754cae37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $NetBSD: Makefile,v 1.63 2019/07/01 04:08:47 ryoon Exp $

DISTNAME=		libvirt-1.2.9
PKGREVISION=		28
CATEGORIES=		sysutils
MASTER_SITES=		http://libvirt.org/sources/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://libvirt.org/
COMMENT=		Virtualisation toolkit for host operating systems
LICENSE=		gnu-lgpl-v2

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-vbox=no --sysconfdir=${EGDIR} --localstatedir=${VARBASE}
CONFIGURE_ARGS+=	--without-macvtap
CONFIGURE_ARGS+=	--without-polkit
USE_TOOLS+=		gmake pkg-config perl
USE_LIBTOOL=		yes

BUILD_DEFS+=		VARBASE

PYTHON_VERSIONS_INCOMPATIBLE=	 36 37 # py-xml

PY_PATCHPLIST=		yes
REPLACE_PYTHON+=	docs/apibuild.py
REPLACE_PYTHON+=	src/esx/esx_vi_generator.py
REPLACE_PYTHON+=	src/hyperv/hyperv_wmi_generator.py
REPLACE_PYTHON+=	src/util/virkeycode-mapgen.py

EGDIR=			${PREFIX}/share/examples
CONF_FILES+=		${EGDIR}/libvirt/libvirtd.conf ${PKG_SYSCONFDIR}/libvirt/libvirtd.conf
CONF_FILES+=		${EGDIR}/libvirt/qemu/networks/autostart/default.xml ${PKG_SYSCONFDIR}/libvirt/qemu/networks/autostart/default.xml
CONF_FILES+=		${EGDIR}/libvirt/qemu/networks/default.xml ${PKG_SYSCONFDIR}/libvirt/qemu/networks/default.xml
CONF_FILES+=		${EGDIR}/logrotate.d/libvirtd ${PKG_SYSCONFDIR}/logrotate.d/libvirtd
CONF_FILES+=		${EGDIR}/logrotate.d/libvirtd.lxc ${PKG_SYSCONFDIR}/logrotate.d/libvirtd.lxc
CONF_FILES+=		${EGDIR}/logrotate.d/libvirtd.qemu ${PKG_SYSCONFDIR}/logrotate.d/libvirtd.qemu
CONF_FILES+=		${EGDIR}/logrotate.d/libvirtd.uml ${PKG_SYSCONFDIR}/logrotate.d/libvirtd.uml
CONF_FILES+=		${EGDIR}/sasl2/libvirt.conf ${PKG_SYSCONFDIR}/sasl2/libvirt.conf

AUTO_MKDIRS=		yes
RCD_SCRIPTS=		libvirtd

.include "options.mk"

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/yajl/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/cyrus-sasl/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/py-xml/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"