diff --git a/packages/z/zbar/port/xmake.lua b/packages/z/zbar/port/xmake.lua index 2a8661949ba..01fc66544ab 100644 --- a/packages/z/zbar/port/xmake.lua +++ b/packages/z/zbar/port/xmake.lua @@ -4,7 +4,6 @@ add_requires("libiconv") -- add options option("symbologies") - -- set_default({"ean","databar","code128","code93","code39","codabar","i25","qrcode","sqcode"}) set_description("Select symbologies to compile") option_end() @@ -13,6 +12,8 @@ option("vers") set_showmenu(true) option_end() if has_config("vers") then + set_version(get_config("vers")) + set_configvar("VERSION", get_config("vers")) set_configvar("PACKAGE_VERSION", get_config("vers")) set_configvar("PACKAGE_STRING", "zbar " .. get_config("vers")) diff --git a/packages/z/zbar/xmake.lua b/packages/z/zbar/xmake.lua index 710f46a52c5..1cd806910e4 100644 --- a/packages/z/zbar/xmake.lua +++ b/packages/z/zbar/xmake.lua @@ -15,7 +15,7 @@ package("zbar") add_extsources("brew::zbar") end - add_configs("symbologies", {description = "Select symbologies to compile", default = {"ean","databar","code128","code93","code39","codabar","i25","qrcode","sqcode"}, type = "table"}) + add_configs("symbologies", {description = "Select symbologies to compile", default = {"ean", "databar", "code128", "code93", "code39", "codabar", "i25", "qrcode", "sqcode"}, type = "table"}) if is_plat("linux", "bsd") then add_syslinks("pthread")