diff options
author | novel <novel@FreeBSD.org> | 2017-08-17 21:24:45 +0800 |
---|---|---|
committer | novel <novel@FreeBSD.org> | 2017-08-17 21:24:45 +0800 |
commit | bb0907835bddd7edbb0b75de12848d80ea2162b6 (patch) | |
tree | 3ac57497761f42393ef447a1f8c1b468a4f7a71a | |
parent | fb744aeb415b03cdceb29dd929c459950ee03665 (diff) | |
download | freebsd-ports-gnome-bb0907835bddd7edbb0b75de12848d80ea2162b6.tar.gz freebsd-ports-gnome-bb0907835bddd7edbb0b75de12848d80ea2162b6.tar.zst freebsd-ports-gnome-bb0907835bddd7edbb0b75de12848d80ea2162b6.zip |
devel/libvirt: add yajl dependency for nss
The nss plugin requires yajl. It's pulled for qemu when it's enabled, but
build fails when nss plugin is enabled and qemu driver is disabled, so
add a dependency on yajl for both options.
PR: 221279
Reported by: vvd@unislabs.com
-rw-r--r-- | devel/libvirt/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile index 8fe8904ea620..b41d5829a9ad 100644 --- a/devel/libvirt/Makefile +++ b/devel/libvirt/Makefile @@ -41,9 +41,7 @@ OPTIONS_SUB= yes BHYVE_CONFIGURE_WITH= bhyve -QEMU_CONFIGURE_WITH= qemu yajl -QEMU_CFLAGS= -I${LOCALBASE}/include -QEMU_LIB_DEPENDS= libyajl.so:devel/yajl +QEMU_CONFIGURE_WITH= qemu QEMU_RUN_DEPENDS= dmidecode:sysutils/dmidecode \ qemu-io:emulators/qemu @@ -112,6 +110,11 @@ SUB_LIST+= PORTVERSION="-${PORTVERSION}" .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MQEMU} || ${PORT_OPTIONS:MNSS} +LIB_DEPENDS+= libyajl.so:devel/yajl +CONFIGURE_ARGS+= --with-yajl=${LOCALBASE} +.endif + .if !${PLIST_SUB:MXEN} PLIST_SUB+= XEN="@comment " .endif |