summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/meson.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 5434ec7f6..c82b93f61 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -528,7 +528,12 @@ function buildenvs(package, opt)
local CMAKE_INCLUDE_PATH = {}
local CMAKE_PREFIX_PATH = {}
for _, dep in ipairs(package:librarydeps({private = true})) do
- local pkgconfig = path.join(dep:installdir(), "lib", "pkgconfig")
+ local pkgconfig
+ if package:is_plat("bsd") then
+ pkgconfig = path.join(dep:installdir(), "libdata", "pkgconfig")
+ else
+ pkgconfig = path.join(dep:installdir(), "lib", "pkgconfig")
+ end
if os.isdir(pkgconfig) then
table.insert(PKG_CONFIG_PATH, pkgconfig)
end