Date: Fri, 20 Mar 2015 20:11:50 +0000 From: Henry Hu <henry.hu.sh@gmail.com> To: "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org> Subject: Depending on port flag? Message-ID: <CAEJt7hbO6n==EhdVaDzT3AR16FXh%2B%2Br0xMBM2ysJGK=R5WymCw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Recently, I tried to use mpv with VAAPI. The default mpv port does not enable VAAPI, so I enabled and installed it from ports. However, mpv still can't use VAAPI. After some investigation, it turns out that it depends on ffmpeg with VAAPI enabled, and the default ffmpeg also has it disabled. After rebuilding ffmpeg with VAAPI, it works. So if mpv's VAAPI flag is enabled, it should depend on ffmpeg's VAAPI flag. Is there a formal method to depend on another port's flag currently? There are hackish method like "depend on this file which is only installed when that flag is enabled", but there should be a better method.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJt7hbO6n==EhdVaDzT3AR16FXh%2B%2Br0xMBM2ysJGK=R5WymCw>