From aee496aeff227317523840f92da4338f755bde9b Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 14 Apr 2019 04:13:51 +0100 Subject: [PATCH] build: look for libev via pkgconfig FreeBSD has pkg-config files for libev Signed-off-by: Yuxuan Shui --- src/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index d22f1da..88e9354 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,6 +1,10 @@ +libev = dependency('libev', required: false) +if not libev.found() + libev = cc.find_library('ev') +endif base_deps = [ cc.find_library('m'), - cc.find_library('ev'), + libev, dependency('xcb', version: '>=1.9.2'), ]