Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/emulators/qemu/options.mk,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/emulators/qemu/options.mk,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- pkgsrc/emulators/qemu/options.mk 2018/08/14 06:57:26 1.5 +++ pkgsrc/emulators/qemu/options.mk 2020/01/13 02:50:25 1.6 @@ -1,17 +1,21 @@ -# $NetBSD: options.mk,v 1.5 2018/08/14 06:57:26 adam Exp $ +# $NetBSD: options.mk,v 1.6 2020/01/13 02:50:25 gutteridge Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.qemu PKG_SUPPORTED_OPTIONS= gtk3 sdl .include "../../mk/bsd.fast.prefs.mk" +.if ${OPSYS} == "Linux" +PKG_SUPPORTED_OPTIONS+= virtfs-proxy-helper +.endif + .if ${OPSYS} != "Darwin" PKG_SUGGESTED_OPTIONS+= sdl .endif .include "../../mk/bsd.options.mk" -PLIST_VARS+= gtk +PLIST_VARS+= gtk virtfs-proxy-helper .if !empty(PKG_OPTIONS:Mgtk3) PLIST.gtk= yes @@ -27,3 +31,12 @@ CONFIGURE_ARGS+= --enable-sdl .else CONFIGURE_ARGS+= --disable-sdl .endif + +# NB to successfully build virtfs-proxy-helper, the upstream Linux +# header/development libraries for libcap and libattr must be installed. +.if !empty(PKG_OPTIONS:Mvirtfs-proxy-helper) +PLIST.virtfs-proxy-helper= yes +CONFIGURE_ARGS+= --enable-virtfs +.else +CONFIGURE_ARGS+= --disable-virtfs +.endif