|
|
|
@ -5,6 +5,7 @@ package("libheif") |
|
|
|
|
set_license("LGPL-3.0") |
|
|
|
|
|
|
|
|
|
add_urls("https://github.com/strukturag/libheif/releases/download/v$(version)/libheif-$(version).tar.gz") |
|
|
|
|
add_versions("1.17.6", "8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee") |
|
|
|
|
add_versions("1.12.0", "e1ac2abb354fdc8ccdca71363ebad7503ad731c84022cf460837f0839e171718") |
|
|
|
|
|
|
|
|
|
add_deps("cmake") |
|
|
|
@ -25,9 +26,15 @@ package("libheif") |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_install("windows", "macosx", "linux", function (package) |
|
|
|
|
local configs = {"-DWITH_EXAMPLES=OFF", |
|
|
|
|
"-DWITH_AOM=OFF", |
|
|
|
|
"-DWITH_RAV1E=OFF"} |
|
|
|
|
local configs = |
|
|
|
|
{ |
|
|
|
|
"-DWITH_EXAMPLES=OFF", |
|
|
|
|
-- TODO: package dep |
|
|
|
|
"-DWITH_AOM=OFF", |
|
|
|
|
"-DWITH_RAV1E=OFF", |
|
|
|
|
"-DWITH_LIBSHARPYUV=OFF" |
|
|
|
|
} |
|
|
|
|
io.replace("CMakeLists.txt", "find_package(AOM)", "", {plain = true}) |
|
|
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) |
|
|
|
|
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) |
|
|
|
|
for _, conf in ipairs(configdeps) do |
|
|
|
|