add ffmpeg for linux/macosx

pull/3/head
ruki 6 years ago
parent 36b5aec45b
commit b9da495dd6
  1. 19
      packages/f/ffmpeg/xmake.lua

@ -0,0 +1,19 @@
package("ffmpeg")
set_homepage("https://www.ffmpeg.org")
set_description("A collection of libraries to process multimedia content such as audio, video, subtitles and related metadata.")
add_urls("https://ffmpeg.org/releases/ffmpeg-$(version).tar.bz2", {alias = "home"})
add_urls("https://github.com/FFmpeg/FFmpeg/archive/n$(version).zip", {alias = "github"})
add_urls("https://git.ffmpeg.org/ffmpeg.git", "https://github.com/FFmpeg/FFmpeg.git")
add_versions("home:4.0.2", "346c51735f42c37e0712e0b3d2f6476c86ac15863e4445d9e823fe396420d056")
add_versions("github:4.0.2", "4df1ef0bf73b7148caea1270539ef7bd06607e0ea8aa2fbf1bb34062a097f026")
on_load(function (package)
package:addvar("links", "avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil")
end)
on_install("linux", "macosx", function (package)
local configs = {"--disable-ffmpeg", "--disable-ffplay", "--disable-debug"}
import("package.tools.autoconf").install(package, configs)
end)
Loading…
Cancel
Save