|
@@ -21,16 +21,16 @@ package("ffmpeg")
|
|
|
add_versions("git:5.0.1", "n5.0.1")
|
|
|
add_versions("git:4.0.2", "n4.0.2")
|
|
|
|
|
|
- add_configs("ffprobe", { description = "Enable ffprobe program.", default = false, type = "boolean"})
|
|
|
- add_configs("ffmpeg", { description = "Enable ffmpeg program.", default = false, type = "boolean"})
|
|
|
- add_configs("ffplay", { description = "Enable ffplay program.", default = false, type = "boolean"})
|
|
|
- add_configs("zlib", { description = "Enable zlib compression library.", default = false, type = "boolean"})
|
|
|
- add_configs("lzma", { description = "Enable liblzma compression library.", default = false, type = "boolean"})
|
|
|
- add_configs("bzlib", { description = "Enable bzlib compression library.", default = false, type = "boolean"})
|
|
|
- add_configs("libx264", { description = "Enable libx264 decoder.", default = false, type = "boolean"})
|
|
|
- add_configs("libx265", { description = "Enable libx265 decoder.", default = false, type = "boolean"})
|
|
|
- add_configs("iconv", { description = "Enable libiconv library.", default = false, type = "boolean"})
|
|
|
- add_configs("hardcoded-tables", { description = "Enable hardcoded tables.", default = true, type = "boolean"})
|
|
|
+ add_configs("ffprobe", {description = "Enable ffprobe program.", default = false, type = "boolean"})
|
|
|
+ add_configs("ffmpeg", {description = "Enable ffmpeg program.", default = true, type = "boolean"})
|
|
|
+ add_configs("ffplay", {description = "Enable ffplay program.", default = false, type = "boolean"})
|
|
|
+ add_configs("zlib", {description = "Enable zlib compression library.", default = false, type = "boolean"})
|
|
|
+ add_configs("lzma", {description = "Enable liblzma compression library.", default = false, type = "boolean"})
|
|
|
+ add_configs("bzlib", {description = "Enable bzlib compression library.", default = false, type = "boolean"})
|
|
|
+ add_configs("libx264", {description = "Enable libx264 decoder.", default = false, type = "boolean"})
|
|
|
+ add_configs("libx265", {description = "Enable libx265 decoder.", default = false, type = "boolean"})
|
|
|
+ add_configs("iconv", {description = "Enable libiconv library.", default = false, type = "boolean"})
|
|
|
+ add_configs("hardcoded-tables", {description = "Enable hardcoded tables.", default = true, type = "boolean"})
|
|
|
end
|
|
|
|
|
|
add_links("avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil")
|
|
@@ -62,6 +62,7 @@ package("ffmpeg")
|
|
|
os.mv("bin", package:installdir())
|
|
|
os.mv("include", package:installdir())
|
|
|
os.mv("lib", package:installdir())
|
|
|
+ package:addenv("PATH", "bin")
|
|
|
end)
|
|
|
|
|
|
on_install("linux", "macosx", "android@linux,macosx", function (package)
|
|
@@ -141,6 +142,7 @@ package("ffmpeg")
|
|
|
else
|
|
|
import("package.tools.autoconf").install(package, configs)
|
|
|
end
|
|
|
+ package:addenv("PATH", "bin")
|
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|