1*4882a593SmuzhiyunSUMMARY = "Framework for layout and rendering of internationalized text" 2*4882a593SmuzhiyunDESCRIPTION = "Pango is a library for laying out and rendering of text, \ 3*4882a593Smuzhiyunwith an emphasis on internationalization. Pango can be used anywhere \ 4*4882a593Smuzhiyunthat text layout is needed, though most of the work on Pango so far has \ 5*4882a593Smuzhiyunbeen done in the context of the GTK+ widget toolkit. Pango forms the \ 6*4882a593Smuzhiyuncore of text and font handling for GTK+-2.x." 7*4882a593SmuzhiyunHOMEPAGE = "http://www.pango.org/" 8*4882a593SmuzhiyunBUGTRACKER = "http://bugzilla.gnome.org" 9*4882a593SmuzhiyunSECTION = "libs" 10*4882a593SmuzhiyunLICENSE = "LGPL-2.0-or-later" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunGNOMEBASEBUILDCLASS = "meson" 15*4882a593Smuzhiyun 16*4882a593Smuzhiyuninherit gnomebase gi-docgen ptest-gnome upstream-version-is-even gobject-introspection 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunGIR_MESON_ENABLE_FLAG = "enabled" 19*4882a593SmuzhiyunGIR_MESON_DISABLE_FLAG = "disabled" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunSRC_URI += "file://run-ptest" 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunSRC_URI[archive.sha256sum] = "f4ad63e87dc2b145300542a4fb004d07a9f91b34152fae0ddbe50ecdd851c162" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunDEPENDS = "glib-2.0 glib-2.0-native fontconfig freetype virtual/libiconv cairo harfbuzz fribidi" 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunPACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \ 28*4882a593Smuzhiyun ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunPACKAGECONFIG[x11] = ",,virtual/libx11 libxft" 31*4882a593SmuzhiyunPACKAGECONFIG[tests] = "-Dinstall-tests=true, -Dinstall-tests=false" 32*4882a593SmuzhiyunPACKAGECONFIG[thai] = ",,libthai" 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunGIR_MESON_OPTION = 'introspection' 35*4882a593Smuzhiyun 36*4882a593Smuzhiyundo_configure:prepend() { 37*4882a593Smuzhiyun chmod +x ${S}/tests/*.py 38*4882a593Smuzhiyun} 39*4882a593Smuzhiyun 40*4882a593Smuzhiyundo_configure:prepend:toolchain-clang() { 41*4882a593Smuzhiyun sed -i -e "/Werror=implicit-fallthrough/d" ${S}/meson.build 42*4882a593Smuzhiyun} 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunLEAD_SONAME = "libpango-1.0*" 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunFILES:${PN} = "${bindir}/* ${libdir}/libpango*${SOLIBS}" 47*4882a593Smuzhiyun 48*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += "cantarell-fonts" 49*4882a593SmuzhiyunRDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" 50*4882a593Smuzhiyun 51*4882a593SmuzhiyunRPROVIDES:${PN} += "pango-modules pango-module-indic-lang \ 52*4882a593Smuzhiyun pango-module-basic-fc pango-module-arabic-lang" 53*4882a593Smuzhiyun 54*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 55