2
0
star9029 1 жил өмнө
parent
commit
1dd9d1f60b

+ 2 - 1
packages/l/liba52/port/xmake.lua

@@ -34,7 +34,8 @@ target("a52")
         "include/a52.h",
         "include/attributes.h",
         "include/audio_out.h",
-        "include/mm_accel.h", {prefixdir = "a52dec"}
+        "include/mm_accel.h",
+        "liba52/a52_internal.h", {prefixdir = "a52dec"}
     )
 
     if is_plat("windows", "mingw") then

+ 4 - 3
packages/l/liba52/xmake.lua

@@ -26,7 +26,7 @@ package("liba52")
         add_syslinks("m")
     end
 
-    if is_subhost("msys") or (not is_plat("windows", "mingw")) then
+    if is_subhost("msys") or (not is_host("windows"))then
         add_deps("autoconf", "automake", "libtool", "m4")
     end
 
@@ -37,9 +37,10 @@ package("liba52")
     end)
 
     on_install(function (package)
-        if is_subhost("msys") or (not package:is_plat("windows", "mingw")) then
+        if is_subhost("msys") or (not is_host("windows"))then
             -- Generate config.h by autotools
-            os.vrunv("./configure", {}, {shell = true})
+            local buildenvs = import("package.tools.autoconf").buildenvs(package)
+            os.vrunv("./configure", {}, {shell = true, envs = buildenvs})
         end
         os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
         import("package.tools.xmake").install(package, {tools = package:config("tools")})