pull/18/head
ruki 6 years ago
parent 02580dd0b9
commit f5bc43bfad
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 33
      PKGLIST.md
  2. 31
      packages/l/libffi/xmake.lua

@ -5,13 +5,13 @@
|autoconf|bzip2|doctest|doctest|autoconf|doctest||
|automake|cairo|nlohmann_json|libcurl|automake|libjpeg||
|bzip2|cmake|tbox|libev|bzip2|libpng||
|cairo|doctest|zlib|libjpeg|cairo|libuv||
|cjson|expat||libpng|cjson|nlohmann_json||
|cmake(x86_64)|freeglut||libuv|cmake|tbox||
|doctest|freetype||nlohmann_json|doctest|zlib||
|expat|glew||tbox|expat|||
|ffmpeg|go||zlib|ffmpeg|||
|fontconfig|libcurl|||fontconfig|||
|cairo|doctest|zlib|libffi|cairo|libuv||
|cjson|expat||libjpeg|cjson|nlohmann_json||
|cmake(x86_64)|freeglut||libpng|cmake|tbox||
|doctest|freetype||libuv|doctest|zlib||
|expat|glew||nlohmann_json|expat|||
|ffmpeg|go||tbox|ffmpeg|||
|fontconfig|libcurl||zlib|fontconfig|||
|freeglut|libjpeg|||freetype|||
|freetype|libpng|||glew|||
|glew|libsdl|||go|||
@ -19,13 +19,14 @@
|gperf|lua|||json-c|||
|json-c|luajit|||libcurl|||
|libcurl|make|||libev|||
|libev|meson|||libiconv|||
|libiconv|ninja|||libjpeg|||
|libjpeg|nlohmann_json|||libmill|||
|libmill|patch|||libpng|||
|libpng|pcre|||libsdl|||
|libsdl|pixman|||libtask|||
|libtask|python|||libtool|||
|libev|ninja|||libffi|||
|libffi|nlohmann_json|||libiconv|||
|libiconv|patch|||libjpeg|||
|libjpeg|pcre|||libmill|||
|libmill|pixman|||libpng|||
|libpng|python|||libsdl|||
|libsdl|python2|||libtask|||
|libtask|skia|||libtool|||
|libtool|sqlite3|||libuv|||
|libuv|tbox|||libxml2|||
|libxml2|zlib|||lua|||
@ -45,7 +46,9 @@
|pcre2||||pixman|||
|pixman||||pkg-config|||
|pkg-config||||python|||
|python||||sqlite3|||
|python||||python2|||
|python2||||skia|||
|skia||||sqlite3|||
|sqlite3||||tbox|||
|tbox||||util-linux|||
|util-linux||||x264|||

@ -0,0 +1,31 @@
package("libffi")
set_homepage("https://sourceware.org/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")
add_versions("3.2.1", "d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37")
on_load(function (package)
if package:version_str():find('.', 1, true) then
package:add("includedirs", "lib/libffi-" .. package:version_str() .. "/include")
else
package:add("deps", "autoconf", "automake", "libtool")
end
end)
on_install("macosx", "linux", "iphoneos", function (package)
local configs = {"--disable-silent-rules", "--disable-dependency-tracking", "--enable-shared=no"}
if package:debug() then
table.insert(configs, "--enable-debug")
else
table.insert(configs, "--disable-debug")
end
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("ffi_closure_alloc", {includes = "ffi.h"}))
end)
Loading…
Cancel
Save