Explorar el Código

add package libuuid

xq114 hace 4 años
padre
commit
ab0588429a
Se han modificado 2 ficheros con 27 adiciones y 1 borrados
  1. 26 0
      packages/l/libuuid/xmake.lua
  2. 1 1
      packages/o/openvdb/xmake.lua

+ 26 - 0
packages/l/libuuid/xmake.lua

@@ -0,0 +1,26 @@
+package("jsoncpp")
+
+    set_homepage("https://sourceforge.net/projects/libuuid")
+    set_description("Portable uuid C library")
+
+    set_urls("https://jaist.dl.sourceforge.net/project/libuuid/libuuid-$(version).tar.gz",
+             "https://git.code.sf.net/p/libuuid/code.git")
+
+    add_versions("1.0.3", "46af3275291091009ad7f1b899de3d0cea0252737550e7919d17237997db5644")
+
+    on_install("linux", "macosx", function(package)
+        import("package.tools.autoconf").install(package)
+    end)
+
+    on_test(function(package)
+        assert(package:check_csnippets({
+            test = [[
+                void test() {
+                    uuid_t buf;
+                    char str[100];
+                    uuid_generate(buf);
+	                uuid_unparse(buf, str);
+                }
+            ]]
+        }, {configs = {languages = "c11"}, includes = "uuid/uuid.h"}))
+    end)

+ 1 - 1
packages/o/openvdb/xmake.lua

@@ -25,7 +25,7 @@ package("openvdb")
             package:add("deps", "blosc ~1.5.0", {configs = {shared = package:is_plat("linux")}})
             package:add("deps", "openexr", {configs = {shared = package:is_plat("windows")}})
             if package:config("with_maya") == "" then
-                package:add("deps", "tbb")
+                package:add("deps", "tbb", {configs = {shared = true}})
             end
         end
         if package:config("view") then