add libcurl

pull/18/head
ruki 6 years ago
parent ffb41db25c
commit 8b9235a961
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 14
      README.md
  2. 39
      packages/l/libcurl/xmake.lua

@ -60,13 +60,13 @@ If you want to know more, please refer to:
|linux|windows|mingw|iphoneos|macosx|android| |linux|windows|mingw|iphoneos|macosx|android|
|-----|-------|-----|--------|------|-------| |-----|-------|-----|--------|------|-------|
|autoconf|bzip2|doctest|doctest|autoconf|doctest|| |autoconf|bzip2|doctest|doctest|autoconf|doctest||
|automake|cairo|nlohmann_json|libjpeg|automake|libjpeg|| |automake|cairo|nlohmann_json|libev|automake|libjpeg||
|bzip2|cmake|tbox|libpng|bzip2|nlohmann_json|| |bzip2|cmake|tbox|libjpeg|bzip2|libpng||
|cairo|doctest|zlib|nlohmann_json|cairo|tbox|| |cairo|doctest|zlib|libpng|cairo|libuv||
|cjson|expat||tbox|cjson|zlib|| |cjson|expat||libuv|cjson|nlohmann_json||
|cmake(x86_64)|freeglut||zlib|cmake||| |cmake(x86_64)|freeglut||nlohmann_json|cmake|tbox||
|doctest|freetype|||doctest||| |doctest|freetype||tbox|doctest|zlib||
|expat|glew|||expat||| |expat|glew||zlib|expat|||
|ffmpeg|go|||ffmpeg||| |ffmpeg|go|||ffmpeg|||
|fontconfig|libjpeg|||fontconfig||| |fontconfig|libjpeg|||fontconfig|||
|freeglut|libpng|||freetype||| |freeglut|libpng|||freetype|||

@ -0,0 +1,39 @@
package("libcurl")
set_homepage("https://curl.haxx.se/")
set_description("The multiprotocol file transfer library.")
set_urls("https://curl.haxx.se/download/curl-$(version).tar.bz2",
"http://curl.mirror.anstey.ca/curl-$(version).tar.bz2",
"https://github.com/curl/curl/releases/download/curl-7_64_1/curl-$(version).tar.bz2")
add_versions("7.64.1", "4cc7c738b35250d0680f29e93e0820c4cb40035f43514ea3ec8d60322d41a45d")
if is_plat("linux") then
add_deps("openssl")
end
if is_plat("macosx") then
add_frameworks("Security")
end
on_install("macosx", "linux", "iphoneos", function (package)
local configs = {"--disable-silent-rules", "--disable-dependency-tracking", "--enable-shared=no"}
if package:debug() then
table.insert(configs, "--enable-debug")
else
table.insert(configs, "--disable-debug")
end
if is_plat("macosx") then
table.insert(configs, "--with-darwinssl")
end
table.insert(configs, "--without-ca-bundle")
table.insert(configs, "--without-ca-path")
table.insert(configs, "--without-zlib")
table.insert(configs, "--disable-ares")
table.insert(configs, "--disable-ldap")
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("curl_version", {includes = "curl/curl.h"}))
end)
Loading…
Cancel
Save