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.

28 lines
939 B

5 years ago
package("zeromq")
set_homepage("https://zeromq.org/")
set_description("High-performance, asynchronous messaging library")
set_urls("https://github.com/zeromq/libzmq/releases/download/v$(version)/zeromq-$(version).tar.gz",
"https://github.com/zeromq/libzmq.git")
add_versions("4.3.2", "ebd7b5c830d6428956b67a0454a7f8cbed1de74b3b01e5c33c5378e22740f763")
if is_host("windows") then
add_deps("cmake")
end
on_install("windows", function (package)
local configs = {}
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
end)
5 years ago
on_install("linux", "macosx", function (package)
import("package.tools.autoconf").install(package)
end)
on_test(function (package)
assert(package:has_cfuncs("zmq_msg_init_size", {includes = "zmq.h"}))
end)