|
|
@ -52,11 +52,8 @@ package("libusb") |
|
|
|
|
|
|
|
|
|
|
|
on_install("macosx", "linux", function (package) |
|
|
|
on_install("macosx", "linux", function (package) |
|
|
|
local configs = {} |
|
|
|
local configs = {} |
|
|
|
if package:config("shared") then |
|
|
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no")) |
|
|
|
table.insert(configs, "--enable-shared=yes") |
|
|
|
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes")) |
|
|
|
else |
|
|
|
|
|
|
|
table.insert(configs, "--enable-shared=no") |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
if package:config("pic") ~= false then |
|
|
|
if package:config("pic") ~= false then |
|
|
|
table.insert(configs, "--with-pic") |
|
|
|
table.insert(configs, "--with-pic") |
|
|
|
end |
|
|
|
end |
|
|
|