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.
26 lines
1.0 KiB
26 lines
1.0 KiB
3 years ago
|
package("zimg")
|
||
|
set_homepage("https://github.com/sekrit-twc/zimg")
|
||
|
set_description("Scaling, colorspace conversion, and dithering library")
|
||
|
set_license("WTFPL")
|
||
|
|
||
|
add_urls("https://github.com/sekrit-twc/zimg/archive/refs/tags/release-$(version).tar.gz")
|
||
|
add_versions("3.0.3", "5e002992bfe8b9d2867fdc9266dc84faca46f0bfd931acc2ae0124972b6170a7")
|
||
|
|
||
|
add_deps("autoconf", "automake", "libtool")
|
||
|
|
||
|
on_install("macosx", "linux", "bsd", function (package)
|
||
|
local configs = {}
|
||
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
|
||
|
if package:debug() then
|
||
|
table.insert(configs, "--enable-debug")
|
||
|
end
|
||
|
if package:is_plat("linux") and package:config("pic") ~= false then
|
||
|
table.insert(configs, "--with-pic")
|
||
|
end
|
||
|
import("package.tools.autoconf").install(package, configs)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("zimg_image_format_default", {includes = "zimg.h"}))
|
||
|
end)
|