diff options
| -rw-r--r-- | meta-oe/recipes-support/libmxml/libmxml_3.0.bb | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-support/libmxml/libmxml_git.bb | 44 |
2 files changed, 33 insertions, 44 deletions
diff --git a/meta-oe/recipes-support/libmxml/libmxml_3.0.bb b/meta-oe/recipes-support/libmxml/libmxml_3.0.bb new file mode 100644 index 0000000000..5ca2dda323 --- /dev/null +++ b/meta-oe/recipes-support/libmxml/libmxml_3.0.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | DESCRIPTION = "Tiny XML Library" | ||
| 2 | LICENSE = "Apache-2.0" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
| 4 | HOMEPAGE = "https://www.msweet.org/mxml/" | ||
| 5 | BUGTRACKER = "https://github.com/michaelrsweet/mxml/issues" | ||
| 6 | |||
| 7 | SRC_URI = "git://github.com/michaelrsweet/mxml.git" | ||
| 8 | SRCREV = "c7755b6992a2afdd34dde47fc9be97f1237cfded" | ||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | inherit autotools | ||
| 12 | |||
| 13 | PACKAGECONFIG ??= "threads" | ||
| 14 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" | ||
| 15 | |||
| 16 | # Package does not support out of tree builds. | ||
| 17 | B = "${S}" | ||
| 18 | |||
| 19 | # MXML uses autotools but it explicitly states it does not support autoheader. | ||
| 20 | EXTRA_AUTORECONF = "--exclude=autopoint,autoheader" | ||
| 21 | |||
| 22 | do_configure_prepend() { | ||
| 23 | # Respect optimization CFLAGS specified by OE. | ||
| 24 | sed -e 's/-Os -g//' -i ${S}/configure.ac | ||
| 25 | |||
| 26 | # Enable verbose compilation output. This is required for extra QA checks to work. | ||
| 27 | sed -e '/.SILENT:/d' -i ${S}/Makefile.in | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install() { | ||
| 31 | # Package uses DSTROOT instread of standard DESTDIR to specify install location. | ||
| 32 | oe_runmake install DSTROOT=${D} | ||
| 33 | } | ||
diff --git a/meta-oe/recipes-support/libmxml/libmxml_git.bb b/meta-oe/recipes-support/libmxml/libmxml_git.bb deleted file mode 100644 index b17fc67e0a..0000000000 --- a/meta-oe/recipes-support/libmxml/libmxml_git.bb +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | DESCRIPTION = "Tiny XML Library" | ||
| 2 | LICENSE = "Apache-2.0" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
| 4 | HOMEPAGE = "https://www.msweet.org/mxml/" | ||
| 5 | BUGTRACKER = "https://github.com/michaelrsweet/mxml/issues" | ||
| 6 | |||
| 7 | SRC_URI = "git://github.com/michaelrsweet/mxml.git" | ||
| 8 | SRCREV = "c7755b6992a2afdd34dde47fc9be97f1237cfded" | ||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | # v3.0 | ||
| 11 | PV = "3.0" | ||
| 12 | |||
| 13 | CONFIGUREOPTS = " --prefix=${prefix} \ | ||
| 14 | --bindir=${bindir} \ | ||
| 15 | --sbindir=${sbindir} \ | ||
| 16 | --libexecdir=${libexecdir} \ | ||
| 17 | --datadir=${datadir} \ | ||
| 18 | --sysconfdir=${sysconfdir} \ | ||
| 19 | --sharedstatedir=${sharedstatedir} \ | ||
| 20 | --localstatedir=${localstatedir} \ | ||
| 21 | --libdir=${libdir} \ | ||
| 22 | --includedir=${includedir} \ | ||
| 23 | --oldincludedir=${oldincludedir} \ | ||
| 24 | --infodir=${infodir} \ | ||
| 25 | --mandir=${mandir} \ | ||
| 26 | --host=${TARGET_SYS} \ | ||
| 27 | --build=${BUILD_SYS} \ | ||
| 28 | ${PACKAGECONFIG_CONFARGS} \ | ||
| 29 | " | ||
| 30 | |||
| 31 | do_configure() { | ||
| 32 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} | ||
| 33 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} | ||
| 34 | ./configure ${CONFIGUREOPTS} --enable-shared | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install () { | ||
| 38 | export DSTROOT=${D} | ||
| 39 | oe_runmake install | ||
| 40 | } | ||
| 41 | |||
| 42 | PACKAGES += " ${PN}-bin " | ||
| 43 | FILES_${PN} = "${libdir}/*" | ||
| 44 | FILES_${PN}-bin = "${bindir}/*" | ||
