Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add osip and exosip repo #4654

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/e/exosip/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package("exosip")
set_homepage("https://savannah.nongnu.org/projects/exosip")
set_description("eXosip is a library that hides the complexity of using the SIP protocol for mutlimedia session establishement")
set_license("GPL-2.0")

add_urls("https://git.savannah.nongnu.org/cgit/exosip.git/snapshot/exosip-$(version).tar.gz",
"git://git.savannah.gnu.org/exosip.git")

add_versions("5.3.0", "66c2b2ddcfdc8807054fa31f72a6068ef66d98bedd9aedb25b9031718b9906a2")

add_deps("autoconf", "automake", "osip")

on_install("@macosx", "@linux", "@bsd", function (package)
local configs = {}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
import("package.tools.autoconf").install(package, configs)
end)

on_test(function (package)
assert(package:has_cincludes("eXosip2/eXosip.h"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 has_cfuncs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

end)
5 changes: 5 additions & 0 deletions packages/g/gtk+3/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ package("gtk+3")
set_description("Toolkit for creating graphical user interfaces")
set_license("LGPL-2.0-or-later")

add_urls("https://gitlab.gnome.org/GNOME/gtk/-/archive/gtk-3-24/gtk-gtk-3-24.zip",
"https://gitlab.gnome.org/GNOME/gtk.git")

add_versions("v0.1.2", "648f7e5e2252d0db4e9432d493cec0682c059605ae3dfded793884cbbf3d1bd5")

on_fetch("linux", function (package, opt)
if opt.system and package.find_package then
return package:find_package("pkgconfig::gtk+-3.0")
Expand Down
22 changes: 22 additions & 0 deletions packages/o/osip/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package("osip")
set_homepage("https://savannah.gnu.org/projects/osip")
set_description("oSIP is an LGPL implementation of SIP. It's stable, portable, flexible and compliant! -may be more-! It is used mostly with eXosip2 stack (GPL) which provides simpler API for User-Agent implementation.")
set_license("LGPL")

add_urls("https://git.savannah.gnu.org/cgit/osip.git/snapshot/osip-$(version).tar.gz",
"https://git.savannah.gnu.org/git/osip.git")

add_versions("5.3.0", "593c9d61150b230f7e757b652d70d5fe336c84db7e4db190658f9ef1597d59ed")

add_deps("autoconf", "automake")

on_install("@macosx", "@linux", "@bsd", function (package)
local configs = {}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
import("package.tools.autoconf").install(package, configs)
end)

on_test(function (package)
assert(package:has_cincludes("osip2/osip_mt.h"))
end)
34 changes: 34 additions & 0 deletions packages/x/xtd/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package("xtd")
set_homepage("https://github.com/gammasoft71/xtd")
set_description("xtd is a modern C++17/20 framework to create console, GUI (forms like WinForms) and unit test applications on Microsoft Windows, Apple macOS, Linux, iOS and android (*).")
set_license("MIT")

add_urls("https://github.com/gammasoft71/xtd/archive/refs/tags/v0.1.2-beta.zip",
"https://github.com/gammasoft71/xtd.git")

add_versions("v0.1.2", "648f7e5e2252d0db4e9432d493cec0682c059605ae3dfded793884cbbf3d1bd5")

if is_plat("linux") then
add_extsources("apt::libgsound-dev")
end

add_deps("cmake", "wxwidgets", "alsa-lib", "xorgproto")

on_install("linux", function (package)
local configs = {}
table.insert(configs, "-DXTD_BUILD_SHARED_LIBRARIES=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DXTD_INSTALL_EXAMPLES=OFF")
import("package.tools.cmake").install(package, configs)
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <xtd/xtd>
using namespace xtd;
static void test() {
console::background_color(console_color::blue);
console::foreground_color(console_color::white);
console::write_line("Hello, World!");
}
]]}, {configs = {languages = "c++20"}}))
end)
Loading