mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
libxml2: Convert to BBCLASSEXTEND (and drop unneeded custom staging function
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
require libxml2.inc
|
||||
|
||||
PR = "r8"
|
||||
|
||||
DEPENDS += "python-native"
|
||||
|
||||
EXTRA_OECONF = "--with-python=${STAGING_DIR_NATIVE}/${prefix} --without-debug --without-legacy --with-catalog --without-docbook --with-c14n"
|
||||
|
||||
inherit native
|
||||
|
||||
do_stage () {
|
||||
oe_runmake install
|
||||
}
|
||||
@@ -7,6 +7,24 @@ SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz \
|
||||
file://libxml-64bit.patch;patch=1 \
|
||||
file://libxml-nanohttp.patch;patch=1"
|
||||
|
||||
DEPENDS_virtclass-native = "python-native"
|
||||
|
||||
inherit autotools pkgconfig binconfig
|
||||
|
||||
EXTRA_OECONF = "--without-python --without-debug --without-legacy --without-catalog --without-docbook --with-c14n"
|
||||
EXTRA_OECONF_virtclass-native = "--with-python=${STAGING_DIR_NATIVE}/${prefix} --without-debug --without-legacy --with-catalog --without-docbook --with-c14n"
|
||||
|
||||
export LDFLAGS += "-ldl"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
# autonamer would call this libxml2-2, but we don't want that
|
||||
if bb.data.getVar('DEBIAN_NAMES', d, 1):
|
||||
bb.data.setVar('PKG_libxml2', 'libxml2', d)
|
||||
}
|
||||
|
||||
PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"
|
||||
|
||||
FILES_${PN}-dev += "${bindir}/*-config"
|
||||
FILES_${PN}-utils += "${bindir}/*"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
@@ -1,26 +1,3 @@
|
||||
require libxml2.inc
|
||||
|
||||
PR = "r7"
|
||||
|
||||
export LDFLAGS += "-ldl"
|
||||
|
||||
do_stage() {
|
||||
autotools_stage_all
|
||||
install -d ${STAGING_DATADIR}/aclocal/
|
||||
install -d ${STAGING_BINDIR_CROSS}
|
||||
|
||||
install -m 0644 libxml.m4 ${STAGING_DATADIR}/aclocal/
|
||||
#this is need it by php during its install
|
||||
install -m 0755 xml2-config ${STAGING_BINDIR_CROSS}
|
||||
}
|
||||
|
||||
python populate_packages_prepend () {
|
||||
# autonamer would call this libxml2-2, but we don't want that
|
||||
if bb.data.getVar('DEBIAN_NAMES', d, 1):
|
||||
bb.data.setVar('PKG_libxml2', 'libxml2', d)
|
||||
}
|
||||
|
||||
PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"
|
||||
|
||||
FILES_${PN}-dev += "${bindir}/*-config"
|
||||
FILES_${PN}-utils += "${bindir}/*"
|
||||
PR = "r8"
|
||||
|
||||
Reference in New Issue
Block a user