pull/3/head
ruki 6 years ago
parent a6c25f0efb
commit edbcec5f3f
  1. 6
      packages/f/ffmpeg/xmake.lua
  2. 18
      packages/x/x265/xmake.lua

@ -9,6 +9,8 @@ package("ffmpeg")
add_versions("home:4.0.2", "346c51735f42c37e0712e0b3d2f6476c86ac15863e4445d9e823fe396420d056")
add_versions("github:4.0.2", "4df1ef0bf73b7148caea1270539ef7bd06607e0ea8aa2fbf1bb34062a097f026")
add_deps("x264", {optional = true})
on_load(function (package)
package:addvar("links", "avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil")
end)
@ -17,6 +19,7 @@ package("ffmpeg")
local configs = {"--disable-ffmpeg",
"--disable-ffplay",
"--disable-debug",
"--enable-gpl",
"--enable-version3",
"--enable-hardcoded-tables",
"--enable-avresample"}
@ -31,5 +34,8 @@ package("ffmpeg")
if is_plat("macosx") and macos.version():ge("10.8") then
table.insert(configs, "--enable-videotoolbox")
end
if package:config("x264") ~= false and package:dep("x264"):exists() then
table.insert(configs, "--enable-libx264")
end
import("package.tools.autoconf").install(package, configs)
end)

@ -0,0 +1,18 @@
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_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…
Cancel
Save