commit
46804db15f
7 changed files with 104 additions and 3 deletions
@ -0,0 +1,30 @@ |
||||
package("lua") |
||||
|
||||
set_homepage("http://lua.org") |
||||
set_description("A powerful, efficient, lightweight, embeddable scripting language.") |
||||
|
||||
set_urls("https://www.lua.org/ftp/lua-$(version).tar.gz", |
||||
"https://github.com/lua/lua.git") |
||||
|
||||
add_versions("5.3.5", "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac") |
||||
add_versions("5.2.4", "b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b") |
||||
add_versions("5.1.5", "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333") |
||||
|
||||
on_load(function (package) |
||||
package:addvar("includedirs", "include/lua") |
||||
end) |
||||
|
||||
on_install(function (package) |
||||
io.writefile("xmake.lua", [[ |
||||
target("lua") |
||||
set_kind("static") |
||||
add_files("src/*.c|lua.c|luac.c") |
||||
add_defines("LUA_COMPAT_5_2", "LUA_COMPAT_5_1") |
||||
if is_plat("linux") then |
||||
add_defines("LUA_USE_LINUX") |
||||
end |
||||
]]) |
||||
import("package.tools.xmake").install(package) |
||||
os.cp("src/*h", package:installdir("include/lua")) |
||||
end) |
||||
|
@ -0,0 +1,18 @@ |
||||
package("ncurses") |
||||
|
||||
set_homepage("https://www.gnu.org/software/ncurses/") |
||||
set_description("A free software emulation of curses.") |
||||
|
||||
add_urls("ftp://ftp.invisible-island.net/ncurses/ncurses-$(version).tar.gz", |
||||
"https://invisible-mirror.net/archives/ncurses/ncurses-$(version).tar.gz", |
||||
"ftp://ftp.gnu.org/gnu/ncurses/ncurses-$(version).tar.gz") |
||||
add_versions("6.1", "aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17") |
||||
|
||||
on_load(function (package) |
||||
package:addvar("includedirs", "include/ncurses", "include") |
||||
package:addvar("links", "ncurses", "form", "panel", "menu") |
||||
end) |
||||
|
||||
on_install("linux", "macosx", function (package) |
||||
import("package.tools.autoconf").install(package, {"--without-manpages"}) |
||||
end) |
@ -0,0 +1,16 @@ |
||||
package("nlohmann_json") |
||||
|
||||
set_homepage("https://nlohmann.github.io/json/") |
||||
set_description("JSON for Modern C++") |
||||
|
||||
add_urls("https://github.com/nlohmann/json/releases/download/$(version)/include.zip", |
||||
"https://github.com/nlohmann/json.git") |
||||
add_versions("v3.4.0", "bfec46fc0cee01c509cf064d2254517e7fa80d1e7647fea37cf81d97c5682bdc") |
||||
|
||||
on_install(function (package) |
||||
if os.isdir("include") then |
||||
os.cp("include", package:installdir()) |
||||
else |
||||
os.cp("*", package:installdir("include")) |
||||
end |
||||
end) |
@ -0,0 +1,22 @@ |
||||
package("x265") |
||||
|
||||
set_homepage("http://x265.org") |
||||
set_description("A free software library and application for encoding video streams into the H.265/MPEG-H HEVC compression format.") |
||||
|
||||
add_urls("https://bitbucket.org/multicoreware/x265/downloads/x265_$(version).tar.gz") |
||||
|
||||
add_versions("2.9", "ebae687c84a39f54b995417c52a2fdde65a4e2e7ebac5730d251471304b91024") |
||||
|
||||
add_deps("cmake", "nasm") |
||||
|
||||
on_load("linux", "macosx", function (package) |
||||
package:addvar("syslinks", "c++") |
||||
end) |
||||
|
||||
on_install("linux", "macosx", function (package) |
||||
os.cd("build/linux") |
||||
os.vrun("./multilib.sh") |
||||
os.cp("8bit/libx265.a", package:installdir("lib")) |
||||
os.cp("8bit/x265_config.h", package:installdir("include")) |
||||
os.cp("../../source/x265.h", package:installdir("include")) |
||||
end) |
Loading…
Reference in new issue