|
@@ -20,12 +20,10 @@ package("expat")
|
|
|
|
|
|
on_install("linux", "macosx", function (package)
|
|
|
local configs = {"--without-examples", "--without-tests", "--without-docbook"}
|
|
|
- if package:config("shared") then
|
|
|
- table.insert(configs, "--enable-shared=yes")
|
|
|
- table.insert(configs, "--enable-static=no")
|
|
|
- else
|
|
|
- table.insert(configs, "--enable-shared=no")
|
|
|
- table.insert(configs, "--enable-static=yes")
|
|
|
+ table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
|
|
|
+ table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
|
|
|
+ if package:config("pic") ~= false then
|
|
|
+ table.insert(configs, "--with-pic")
|
|
|
end
|
|
|
import("package.tools.autoconf").install(package, configs)
|
|
|
end)
|