libxml2: Add FreeBSD support (#4318)

* libxml2: Add FreeBSD support

* Update xmake.lua

* Update xmake.lua
pull/4322/head
Jérôme Leclercq 7 months ago committed by GitHub
parent c0bbd88db0
commit 7bb44dd1be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/l/libxml2/xmake.lua

@ -1,5 +1,4 @@
package("libxml2")
set_homepage("http://xmlsoft.org/")
set_description("The XML C parser and toolkit of Gnome.")
set_license("MIT")
@ -22,7 +21,7 @@ package("libxml2")
add_syslinks("m")
end
on_load("windows", "macosx", "linux", "iphoneos", "android", function (package)
on_load("windows", "macosx", "linux", "iphoneos", "android", "bsd", function (package)
if package:is_plat("windows") then
if not package:config("shared") then
package:add("defines", "LIBXML_STATIC")
@ -89,7 +88,7 @@ package("libxml2")
end
end)
on_install("macosx", "linux", "iphoneos", "android", function (package)
on_install("macosx", "linux", "iphoneos", "android@!windows", "bsd", function (package)
import("package.tools.autoconf")
local configs = {"--disable-dependency-tracking",
"--without-lzma",

Loading…
Cancel
Save