1*4882a593SmuzhiyunSUMMARY = "GNOME XSLT library" 2*4882a593SmuzhiyunDESCRIPTION = "libxslt is the XSLT C parser and toolkit developed for the Gnome project. \ 3*4882a593SmuzhiyunXSLT itself is a an XML language to define transformation for XML. Libxslt is based on \ 4*4882a593Smuzhiyunlibxml2 the XML C library developed for the GNOME project. It also implements most of \ 5*4882a593Smuzhiyunthe EXSLT set of processor-portable extensions functions and some of Saxon's evaluate \ 6*4882a593Smuzhiyunand expressions extensions." 7*4882a593SmuzhiyunHOMEPAGE = "http://xmlsoft.org/XSLT/" 8*4882a593SmuzhiyunBUGTRACKER = "https://bugzilla.gnome.org/" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunLICENSE = "MIT" 11*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://Copyright;md5=0cd9a07afbeb24026c9b03aecfeba458" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSECTION = "libs" 14*4882a593SmuzhiyunDEPENDS = "libxml2" 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSRC_URI = "https://download.gnome.org/sources/libxslt/1.1/libxslt-${PV}.tar.xz" 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunSRC_URI[sha256sum] = "8247f33e9a872c6ac859aa45018bc4c4d00b97e2feac9eebc10c93ce1f34dd79" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "libxslt-(?P<pver>\d+(\.\d+)+)\.tar" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun# We have libxml2 2.9.14 and we don't link statically with it anyway 23*4882a593Smuzhiyun# so this isn't an issue. 24*4882a593SmuzhiyunCVE_CHECK_IGNORE += "CVE-2022-29824" 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunS = "${WORKDIR}/libxslt-${PV}" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunBINCONFIG = "${bindir}/xslt-config" 29*4882a593Smuzhiyun 30*4882a593Smuzhiyuninherit autotools pkgconfig binconfig-disabled lib_package multilib_header 31*4882a593Smuzhiyun 32*4882a593Smuzhiyundo_configure:prepend () { 33*4882a593Smuzhiyun # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header. 34*4882a593Smuzhiyun # This can be removed when upgrading to 1.1.34. 35*4882a593Smuzhiyun sed -i -e 's/ansidecl.h//' ${S}/configure.ac 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun # The timestamps in the 1.1.28 tarball are messed up causing this file to 38*4882a593Smuzhiyun # appear out of date. Touch it so that we don't try to regenerate it. 39*4882a593Smuzhiyun touch ${S}/doc/xsltproc.1 40*4882a593Smuzhiyun} 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunEXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto --with-html-subdir=${BPN}" 43*4882a593Smuzhiyun# older versions of this recipe had ${PN}-utils 44*4882a593SmuzhiyunRPROVIDES:${PN}-bin += "${PN}-utils" 45*4882a593SmuzhiyunRCONFLICTS:${PN}-bin += "${PN}-utils" 46*4882a593SmuzhiyunRREPLACES:${PN}-bin += "${PN}-utils" 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun# This is only needed until libxml can load the relocated catalog itself 49*4882a593Smuzhiyundo_install:append:class-native () { 50*4882a593Smuzhiyun create_wrapper ${D}/${bindir}/xsltproc XML_CATALOG_FILES=${sysconfdir}/xml/catalog 51*4882a593Smuzhiyun} 52*4882a593Smuzhiyun 53*4882a593Smuzhiyundo_install:append () { 54*4882a593Smuzhiyun oe_multilib_header libxslt/xsltconfig.h 55*4882a593Smuzhiyun} 56*4882a593Smuzhiyun 57*4882a593SmuzhiyunFILES:${PN} += "${libdir}/libxslt-plugins" 58*4882a593SmuzhiyunFILES:${PN}-dev += "${libdir}/xsltConf.sh" 59*4882a593Smuzhiyun 60*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 61