Skip to content

Commit

Permalink
add m4 dep for BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Oct 5, 2024
1 parent a83f892 commit 67b98a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/b/bison/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ package("bison")
add_versions("3.7.6", "69dc0bb46ea8fc307d4ca1e0b61c8c355eb207d0b0c69f4f8462328e74d7b9ea")
add_versions("3.8.2", "06c9e13bdf7eb24d4ceb6b59205a4f67c2c7e7213119644430fe82fbd14a0abb")

on_check("bsd", function (package)
assert(package:dep("m4"):version():ge("1.4.16"), "package(bison): m4 >= 1.4.16 is required")
end)

on_load("macosx", "linux", "bsd", "windows", function (package)
if package:is_plat("windows") then
package:add("deps", "winflexbison", {private = true})
elseif package:is_plat("linux") then
elseif package:is_plat("linux", "bsd") then
package:add("deps", "m4")
end

Expand Down

0 comments on commit 67b98a2

Please sign in to comment.