Skip to content

Commit

Permalink
fix(harfbuzz): fix dependence error on bsd
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamOfIce committed Jul 30, 2023
1 parent e15deeb commit 912f5ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/h/harfbuzz/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ package("harfbuzz")
end
end
end
elseif package:is_plat("bsd") then
local cmake_prfixes = {}
for _, dep in ipairs(package:orderdeps()) do
local fetchinfo = dep:fetch()
if fetchinfo then
for _, includedir in ipairs(fetchinfo.includedirs or fetchinfo.sysincludedirs) do
table.join(cmake_prefixes, includedir)
end
end
end
envs.CMAKE_PREFIX_PATH = path.joinenv(cmake_prefixes)
end
meson.install(package, configs, {envs = envs})
end)
Expand Down
1 change: 1 addition & 0 deletions packages/l/libass/port/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ target("ass")
add_files("libass/*.c|ass_fontconfig.c|ass_directwrite.c|ass_coretext.c",
"libass/c/*.c")
add_includedirs("libass", "libass/c", "$(buildir)")
add_syslinks("m")
add_configfiles("config.h.in")
configvar_check_cfuncs("HAVE_STRDUP", "strdup", {includes = "string.h"})
configvar_check_cfuncs("HAVE_STRNDUP", "strndup", {includes = "string.h"})
Expand Down

0 comments on commit 912f5ab

Please sign in to comment.