FreeBSD always have OpenSSL installed, but .pc files are not available. We can still build spice-gtk by setting SSL_CFLAGS, SSL_LIBS, OPENSSL_CFLAGS, OPENSSL_LIBS variables, but openssl is still put into spice-client-glib-2.0.pc, which can cause problems for other programs because they cannot find openssl.pc.
I will upload to patch to workaround the issue.
Created attachment 136595 [details] [review]
build-sys: Workaround missing openssl.pc for FreeBSD
FreeBSD has OpenSSL installed in base, but .pc files are not available.
We can still successfully build spice-gtk by setting SSL_CFLAGS and
SSL_LIBS variables manually, but openssl will still be recorded to
Requires.private field of spice-client-glib-2.0.pc, causing problems for
applications using spice-gtk. To workaround the issue, we do the check
again without using SSL_CFLAGS and SSL_LIBS variables and put SSL_LIBS
into Libs.private field when openssl.pc cannot be found.
but it looks good to me, so I'll push it soon.
Pushed as https://cgit.freedesktop.org/spice/spice-gtk/commit/?id=03d3ea2fa96566dfb413c7f53854390b089f9eed