Ticket #52968: libvirt Portfile

File libvirt Portfile, 3.7 KB (added by akkornel (A. Karl Kornel), 7 years ago)

libvirt Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3# NOTE: When you update this port, please also update the following
4# language-binding ports: p5-sys-virt
5
6PortSystem          1.0
7
8name                libvirt
9version             2.4.0
10categories          sysutils
11license             LGPL-2.1+
12platforms           darwin
13maintainers         ryandesign openmaintainer
14
15description         Libvirt - The Virtualization API
16
17long_description    A toolkit to interact with the virtualization \
18                    capabilities of modern hypervisors.
19
20homepage            http://www.libvirt.org/
21master_sites        ${homepage}sources/
22extract.suffix      .tar.xz
23
24checksums           rmd160  ceac4c29e03f7c29113e9a926adb21c6a72cdada \
25                    sha256  b727c5f43ed3d7337ec2c2f2031ebd4207507978f68d00ad13d4f0f84aad6224
26
27depends_extract     port:xz
28
29depends_build       port:pkgconfig \
30                    port:xhtml1
31
32depends_lib         port:curl \
33                    port:gnutls \
34                    port:libiconv \
35                    port:libssh2 \
36                    port:libxml2 \
37                    port:readline \
38                    port:yajl \
39                    port:zlib
40
41configure.args      --disable-silent-rules \
42                    --without-apparmor \
43                    --without-attr \
44                    --without-audit \
45                    --without-avahi \
46                    --without-blkid \
47                    --without-capng \
48                    --without-dbus \
49                    --without-dtrace \
50                    --without-fuse \
51                    --without-glusterfs \
52                    --without-hal \
53                    --with-init-script=none \
54                    --without-libpcap \
55                    --without-lxc \
56                    --without-macvtap \
57                    --without-netcf \
58                    --without-network \
59                    --without-numactl \
60                    --without-openvz \
61                    --without-phyp \
62                    --without-polkit \
63                    --without-qemu \
64                    --without-sasl \
65                    --without-selinux \
66                    --without-udev \
67                    --without-uml \
68                    --without-virtualport \
69                    --without-xen \
70                    --without-xenapi \
71                    --without-xen-inotify \
72                    --with-esx \
73                    --with-libvirtd \
74                    --with-remote \
75                    --with-test \
76                    --with-vbox=check \
77                    --with-vmware \
78                    --with-xml-catalog-file=${prefix}/etc/xml/catalog \
79                    --with-yajl
80
81variant avahi description {Use Avahi to advertise remote daemon} {
82    depends_lib-append      port:avahi
83    configure.args-replace  --without-avahi --with-avahi
84}
85
86variant fuse description {FUSE support} {
87    depends_lib-append      port:osxfuse
88    configure.args-replace  --without-fuse --with-fuse
89}
90
91variant openssl description {Use OpenSSL/LibreSSL instead of GNUTLS} {
92    depends_lib-replace     port:gnutls path:lib/libssl.dylib:openssl
93    configure.args-append   --without-gnutls --with-openssl
94}
95
96variant qemu description {Support managing QEMU VMs} {
97    depends_lib-append      port:qemu
98    configure.args-replace  --without-qemu --with-qemu
99}
100
101variant sasl description {Use Cyrus SASL for authentication} {
102    depends_lib-append      port:cyrus-sasl2
103    configure.args-replace  --without-sasl --with-sasl
104}
105
106livecheck.type      regex
107livecheck.url       [lindex ${master_sites} 0]
108livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}