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.

29 lines
978 B

6 years ago
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")
6 years ago
if is_plat("macosx") then
add_syslinks("c++")
6 years ago
elseif is_plat("linux") then
add_syslinks("pthread", "dl")
6 years ago
end
6 years ago
6 years ago
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)
on_test(function (package)
6 years ago
assert(package:has_cfuncs("x265_api_get", {includes = "x265.h"}))
end)