|
@@ -1,11 +1,11 @@
|
|
package("libiconv")
|
|
package("libiconv")
|
|
-
|
|
|
|
set_homepage("https://www.gnu.org/software/libiconv")
|
|
set_homepage("https://www.gnu.org/software/libiconv")
|
|
set_description("Character set conversion library.")
|
|
set_description("Character set conversion library.")
|
|
set_license("LGPL-2.0")
|
|
set_license("LGPL-2.0")
|
|
|
|
|
|
set_urls("https://ftpmirror.gnu.org/gnu/libiconv/libiconv-$(version).tar.gz",
|
|
set_urls("https://ftpmirror.gnu.org/gnu/libiconv/libiconv-$(version).tar.gz",
|
|
"https://ftp.gnu.org/gnu/libiconv/libiconv-$(version).tar.gz")
|
|
"https://ftp.gnu.org/gnu/libiconv/libiconv-$(version).tar.gz")
|
|
|
|
+
|
|
add_versions("1.17", "8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313")
|
|
add_versions("1.17", "8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313")
|
|
add_versions("1.16", "e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04")
|
|
add_versions("1.16", "e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04")
|
|
add_versions("1.15", "ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178")
|
|
add_versions("1.15", "ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178")
|
|
@@ -57,8 +57,13 @@ package("libiconv")
|
|
if package:debug() then
|
|
if package:debug() then
|
|
table.insert(configs, "--enable-debug")
|
|
table.insert(configs, "--enable-debug")
|
|
end
|
|
end
|
|
- os.vrunv("make", {"-f", "Makefile.devel", "CFLAGS=" .. (package:config("cflags") or "")})
|
|
|
|
- import("package.tools.autoconf").install(package, configs)
|
|
|
|
|
|
+
|
|
|
|
+ local opt = {}
|
|
|
|
+ if package:version():lt("1.18") then
|
|
|
|
+ opt.cxflags = "-std=c99"
|
|
|
|
+ os.vrunv("make", {"-f", "Makefile.devel", "CFLAGS=" .. (package:config("cflags") or "")})
|
|
|
|
+ end
|
|
|
|
+ import("package.tools.autoconf").install(package, configs, opt)
|
|
end)
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|
|
on_test(function (package)
|