package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

package("libxml2")
set_homepage("http://xmlsoft.org/")
set_description("The XML C parser and toolkit of Gnome.")
set_urls("https://github.com/GNOME/libxml2/archive/$(version).zip")
add_versions("v2.9.8", "c87793e45e66a7aa19200f861873f75195065de786a21c1b469bdb7bfc1230fb")
add_versions("v2.9.7", "31dd4c0e10fa625b47e27fd6a5295d246c883f214da947b9a4a9e13733905ed9")
on_build("windows", function (package)
6 years ago
os.cd("win32")
os.vrun("cscript configure.js iso8859x=yes iconv=no compiler=msvc cruntime=/MT debug=%s prefix=\"%s\"", package:debug() and "yes" or "no", package:installdir())
os.vrun("nmake /f Makefile.msvc")
end)
on_install("windows", function (package)
6 years ago
os.cd("win32")
os.vrun("nmake /f Makefile.msvc install")
package:addvar("includedirs", "include/libxml2")
end)
on_build("macosx", "linux", function (package)
import("package.builder.autoconf").build(package)
end)
on_install("macosx", "linux", function (package)
import("package.builder.autoconf").install(package)
package:addvar("includedirs", "include/libxml2")
end)