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.
38 lines
1.5 KiB
38 lines
1.5 KiB
package("doxygen") |
|
|
|
set_kind("binary") |
|
set_homepage("https://www.doxygen.nl/") |
|
set_license("GPL-2.0") |
|
|
|
add_urls("https://doxygen.nl/files/doxygen-$(version).src.tar.gz", {alias = "archive"}) |
|
add_urls("https://github.com/doxygen/doxygen/releases/download/Release_$(version).src.tar.gz", { |
|
alias = "archive", |
|
version = function (version) return format("%s/doxygen-%s", version:gsub("%.", "_"), version) end |
|
}) |
|
add_urls("https://github.com/doxygen/doxygen.git", {alias = "github"}) |
|
add_versions("archive:1.9.6", "297f8ba484265ed3ebd3ff3fe7734eb349a77e4f95c8be52ed9977f51dea49df") |
|
add_versions("archive:1.9.3", "f352dbc3221af7012b7b00935f2dfdc9fb67a97d43287d2f6c81c50449d254e0") |
|
add_versions("github:1.9.3", "Release_1_9_3") |
|
add_versions("github:1.9.2", "Release_1_9_2") |
|
add_versions("github:1.9.1", "Release_1_9_1") |
|
|
|
if not is_plat("windows") then |
|
add_deps("cmake", "bison >=2.7", "flex", {private = true}) |
|
add_deps("python 3.x", {kind = "binary", private = true}) |
|
end |
|
|
|
on_load("@windows", function (package) |
|
if package:is_built() then |
|
package:add("deps", "cmake", "bison >=2.7", "flex") |
|
package:add("deps", "python 3.x", {kind = "binary"}) |
|
end |
|
end) |
|
|
|
on_install("@windows", "@macosx", "@linux", function (package) |
|
os.rm("templates/*/PaxHeader") |
|
import("package.tools.cmake").install(package) |
|
end) |
|
|
|
on_test(function (package) |
|
os.vrun("doxygen -v") |
|
end)
|
|
|