@@ -6,6 +6,7 @@ package("pango")
66
77 add_urls (" https://gitlab.gnome.org/GNOME/pango/-/archive/$(version)/pango-$(version).tar.gz" )
88 add_urls (" https://gitlab.gnome.org/GNOME/pango.git" )
9+ add_versions (" 1.56.3" , " 7a059664dcd1c517979e2db2e71dc9a3550acf5a8cf76a1aadb6526d9d4b90f1" )
910 add_versions (" 1.51.1" , " ea92cd570cdba62ca52cc0a7c9ea3cd311b6da3f0328a5aa8a4a81b0a74944a5" )
1011 add_versions (" 1.50.3" , " 4a8b0cf33d5f9ecaa9cd99dd72703d5c4c53bc58df64dd9538493bb4356ab691" )
1112
@@ -16,7 +17,7 @@ package("pango")
1617 add_deps (" libintl" )
1718 elseif is_plat (" macosx" ) then
1819 add_deps (" libintl" )
19- add_deps (" libiconv" , { system = true } )
20+ add_deps (" libiconv" )
2021 add_extsources (" brew::pango" )
2122 add_frameworks (" CoreFoundation" )
2223 elseif is_plat (" linux" ) then
@@ -27,9 +28,9 @@ package("pango")
2728 end
2829 add_includedirs (" include" , " include/pango-1.0" )
2930
30- on_install (" windows|x64 " , " windows|x86 " , " macosx " , " linux " , function (package )
31+ on_install (function (package )
3132 import (" package.tools.meson" )
32- local configs = {" -Dintrospection=disabled" , " -Dgtk_doc=false " , " - Dfontconfig=enabled" }
33+ local configs = {" -Dintrospection=disabled" , " -Dfontconfig=enabled" }
3334
3435 table.insert (configs , " -Ddefault_library=" .. (package :config (" shared" ) and " shared" or " static" ))
3536 io .gsub (" meson.build" , " subdir%('tests'%)" , " " )
@@ -50,7 +51,9 @@ package("pango")
5051
5152 local envs = meson .buildenvs (package , {packagedeps = {" fontconfig" , " freetype" , " harfbuzz" , " fribidi" , " cairo" , " glib" , " pcre2" , " libintl" , " libiconv" , " libthai" , " libdatrie" }})
5253 -- workaround for https://github.com/xmake-io/xmake/issues/4412
53- envs .LDFLAGS = string.gsub (envs .LDFLAGS , " %-libpath:" , " /libpath:" )
54+ if envs .LDFLAGS and envs .LDFLAGS ~= " " then
55+ envs .LDFLAGS = string.gsub (envs .LDFLAGS , " %-libpath:" , " /libpath:" )
56+ end
5457 meson .install (package , configs , {envs = envs })
5558 end )
5659
0 commit comments