|
@@ -4,14 +4,15 @@ package("libffi")
|
|
|
set_description("Portable Foreign Function Interface library.")
|
|
|
|
|
|
set_urls("https://sourceware.org/pub/libffi/libffi-$(version).tar.gz",
|
|
|
- "https://deb.debian.org/debian/pool/main/libf/libffi/libffi_$(version).orig.tar.gz",
|
|
|
- "https://github.com/atgreen/libffi.git")
|
|
|
+ "https://github.com/libffi/libffi/releases/download/v$(version)/libffi-$(version).tar.gz",
|
|
|
+ "https://github.com/libffi/libffi.git")
|
|
|
add_versions("3.2.1", "d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37")
|
|
|
+ add_versions("3.3", "72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056")
|
|
|
|
|
|
on_load(function (package)
|
|
|
if package:gitref() then
|
|
|
package:add("deps", "autoconf", "automake", "libtool")
|
|
|
- else
|
|
|
+ elseif package:version():le("3.2.1") then
|
|
|
package:add("includedirs", "lib/libffi-" .. package:version_str() .. "/include")
|
|
|
end
|
|
|
end)
|