xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/libmxml/libmxml_3.3.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "Tiny XML Library"
2*4882a593SmuzhiyunLICENSE = "Apache-2.0"
3*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
4*4882a593SmuzhiyunHOMEPAGE = "https://www.msweet.org/mxml/"
5*4882a593SmuzhiyunBUGTRACKER = "https://github.com/michaelrsweet/mxml/issues"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSRC_URI = "git://github.com/michaelrsweet/mxml.git;nobranch=1;protocol=https"
8*4882a593SmuzhiyunSRCREV = "0237559fdbcecae34157b547aa2b99e12de305a2"
9*4882a593SmuzhiyunS = "${WORKDIR}/git"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninherit autotools
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunPACKAGECONFIG ??= "threads"
14*4882a593SmuzhiyunPACKAGECONFIG[threads] = "--enable-threads,--disable-threads"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# Package does not support out of tree builds.
17*4882a593SmuzhiyunB = "${S}"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# MXML uses autotools but it explicitly states it does not support autoheader.
20*4882a593SmuzhiyunEXTRA_AUTORECONF = "--exclude=autopoint,autoheader"
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundo_configure:prepend() {
23*4882a593Smuzhiyun    # Respect optimization CFLAGS specified by OE.
24*4882a593Smuzhiyun    sed -e 's/-Os -g//' -i ${S}/configure.ac
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun    # Enable verbose compilation output. This is required for extra QA checks to work.
27*4882a593Smuzhiyun    sed -e '/.SILENT:/d' -i ${S}/Makefile.in
28*4882a593Smuzhiyun}
29*4882a593Smuzhiyun
30*4882a593Smuzhiyundo_install() {
31*4882a593Smuzhiyun    # Package uses DSTROOT instread of standard DESTDIR to specify install location.
32*4882a593Smuzhiyun    oe_runmake install DSTROOT=${D}
33*4882a593Smuzhiyun}
34