blob: 74c4dbb81c2fb57efcbb100ebc958c5074fbab5e (
plain) (
blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# New ports collection makefile for: libvirt
# Date created: 2011-05-12
# Whom: Jason Helfman <jhelfman@experts-exchange.com>
#
# $FreeBSD$
#
PORTNAME= libvirt
PORTVERSION= 0.9.11
CATEGORIES= devel
MASTER_SITES= http://libvirt.org/sources/
MAINTAINER= jgh@FreeBSD.org
COMMENT= Toolkit to interact with virtualization capabilities
LICENSE= LGPL3
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
gcrypt.18:${PORTSDIR}/security/libgcrypt \
xml2.5:${PORTSDIR}/textproc/libxml2 \
gnutls.47:${PORTSDIR}/security/gnutls \
ssh2.1:${PORTSDIR}/security/libssh2
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake autoconf
CONFIGURE_ARGS= --without-sasl \
--without-yajl \
--without-avahi \
--without-polkit \
--without-hal \
--without-udev \
--without-netcf \
--without-network \
--with-libssh2
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
USE_GMAKE= yes
USE_GNOME= gnomehack
GNOME_MAKEFILEIN= Makefile.am
USE_LDCONFIG= yes
USE_PYTHON_BUILD= yes
SHLIB_VER= 9
PLIST_SUB= PORTVERSION="-${PORTVERSION}" \
SHLIB_VER=${SHLIB_VER}
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
CONFIGURE_ARGS+= --enable-nls \
--with-libintl-prefix=${LOCALBASE}
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
MAN1= virsh.1 virt-pki-validate.1 virt-xml-validate.1 virt-host-validate.1
MAN8= libvirtd.8
post-patch:
@${MV} ${WRKSRC}/daemon/libvirtd.conf ${WRKSRC}/daemon/libvirtd.conf.sample
@${REINPLACE_CMD} -e 's|libvirtd.conf|libvirtd.conf.sample|' \
${WRKSRC}/daemon/Makefile.am \
${WRKSRC}/daemon/Makefile.in
@${MV} ${WRKSRC}/src/libvirt.conf ${WRKSRC}/src/libvirt.conf.sample
@${REINPLACE_CMD} -e 's|conf_DATA = libvirt.conf|conf_DATA = libvirt.conf.sample|' \
${WRKSRC}/src/Makefile.am
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} check
.include <bsd.port.mk>
|