|
|
|
@ -16,14 +16,12 @@ package("zlib") |
|
|
|
|
os.cp("*.h", package:installdir("include")) |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_install("mingw@windows", function (package) |
|
|
|
|
if is_subhost("msys") then |
|
|
|
|
io.gsub("win32/Makefile.gcc", "\nCC =.-\n", "\nCC=" .. (package:build_getenv("cc") or "") .. "\n") |
|
|
|
|
io.gsub("win32/Makefile.gcc", "\nAR =.-\n", "\nAR=" .. (package:build_getenv("ar") or "") .. "\n") |
|
|
|
|
import("package.tools.make").build(package, {"-f", "win32/Makefile.gcc", "libz.a"}) |
|
|
|
|
os.cp("libz.a", package:installdir("lib")) |
|
|
|
|
os.cp("*.h", package:installdir("include")) |
|
|
|
|
end |
|
|
|
|
on_install("mingw@msys", function (package) |
|
|
|
|
io.gsub("win32/Makefile.gcc", "\nCC =.-\n", "\nCC=" .. (package:build_getenv("cc") or "") .. "\n") |
|
|
|
|
io.gsub("win32/Makefile.gcc", "\nAR =.-\n", "\nAR=" .. (package:build_getenv("ar") or "") .. "\n") |
|
|
|
|
import("package.tools.make").build(package, {"-f", "win32/Makefile.gcc", "libz.a"}) |
|
|
|
|
os.cp("libz.a", package:installdir("lib")) |
|
|
|
|
os.cp("*.h", package:installdir("include")) |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_install("macosx", function (package) |
|
|
|
|