update mysql (#1256)

* update mysql

* restore old version

* Update xmake.lua

Co-authored-by: ruki <waruqi@gmail.com>
pull/1260/head
HalcyonAzure 3 years ago committed by GitHub
parent c2f6c43bd1
commit 68c5a60f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/m/mysql/xmake.lua

@ -3,12 +3,16 @@ package("mysql")
set_homepage("https://dev.mysql.com/doc/refman/5.7/en/")
set_description("Open source relational database management system.")
set_urls("https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-$(version).tar.gz")
set_urls("https://cdn.mysql.com/archives/mysql-5.7/mysql-boost-$(version).tar.gz",
"https://github.com/xmake-mirror/mysql-boost/releases/download/$(version)/mysql-boost-$(version).tar.gz")
add_versions("5.7.29", "00f514124de2bad1ba7b380cbbd46e316cae7fc7bc3a5621456cabf352f27978")
if is_plat("macosx", "linux") then
add_deps("cmake", "openssl")
if is_plat("linux") then
add_deps("ncurses")
end
end
add_includedirs("include/mysql")
@ -30,6 +34,15 @@ package("mysql")
"-DWITH_SSL=yes",
"-DWITH_UNIT_TESTS=OFF",
"-DWITHOUT_SERVER=ON"}
if package:is_plat("linux") then
local curses = package:dep("ncurses"):fetch()
if curses then
local includedirs = table.wrap(curses.sysincludedirs or curses.includedirs)
local libfiles = table.wrap(curses.libfiles)
table.insert(configs, "-DCURSES_INCLUDE_PATH=" .. table.concat(includedirs, ";"))
table.insert(configs, "-DCURSES_LIBRARY=" .. table.concat(libfiles, ";"))
end
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save