* add faac

* add autoconf to bsd
pull/908/head
ruki 3 years ago committed by GitHub
parent eee306a52c
commit a3d741e94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/a/autoconf/xmake.lua
  2. 2
      packages/a/automake/xmake.lua
  3. 26
      packages/f/faac/xmake.lua
  4. 2
      packages/l/libtool/xmake.lua
  5. 2
      packages/m/m4/xmake.lua

@ -17,7 +17,7 @@ package("autoconf")
add_deps("m4")
on_install("@macosx", "@linux", function (package)
on_install("@macosx", "@linux", "@bsd", function (package)
import("package.tools.autoconf").install(package)
end)

@ -18,7 +18,7 @@ package("automake")
add_deps("autoconf")
on_install("@macosx", "@linux", function (package)
on_install("@macosx", "@linux", "@bsd", function (package)
import("package.tools.autoconf").install(package)
io.writefile(path.join(package:installdir("share", "aclocal"), "dirlist"), [[
/usr/local/share/aclocal

@ -0,0 +1,26 @@
package("faac")
set_homepage("https://sourceforge.net/projects/faac/")
set_description("Freeware Advanced Audio Coder faac mirror")
add_urls("https://github.com/knik0/faac/archive/refs/tags/$(version).tar.gz", {version = function (version)
return version:gsub("%.", "_")
end})
add_versions("1.30", "adc387ce588cca16d98c03b6ec1e58f0ffd9fc6eadb00e254157d6b16203b2d2")
add_deps("autoconf", "automake", "libtool")
on_install("linux", "macosx", "bsd", function (package)
local configs = {}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
if package:debug() then
table.insert(configs, "--enable-debug")
end
if package:is_plat("linux") and package:config("pic") ~= false then
table.insert(configs, "--with-pic")
end
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("faacEncOpen", {includes = "faac.h"}))
end)

@ -16,7 +16,7 @@ package("libtool")
add_deps("autoconf")
on_install("@macosx", "@linux", function (package)
on_install("@macosx", "@linux", "@bsd", function (package)
import("package.tools.autoconf").install(package, {"--disable-dependency-tracking", "--enable-ltdl-install"})
end)

@ -18,7 +18,7 @@ package("m4")
add_extsources("apt::m4", "pacman::m4")
end
on_install("@macosx", "@linux", "@msys", "@cygwin", function (package)
on_install("@macosx", "@linux", "@msys", "@cygwin", "@bsd", function (package)
if package:is_plat("linux") then
-- fix freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
-- https://git.savannah.gnu.org/cgit/gnulib.git

Loading…
Cancel
Save