# Build of xserver-kdrive is not possible with xextproto >= 7.1.
# This package allows to install old 7.0 includes in parallel.
FILESPATH = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/xextproto-7.0:${@os.path.dirname(bb.data.getVar('FILE',d,1))}/xextproto:${@os.path.dirname(bb.data.getVar('FILE',d,1))}/files"
PR_append = ".1"

BPN = "xextproto"

require xextproto_7.0.5.bb

XORG_PN = "xextproto"
EXTRA_OECONF += "--includedir=${includedir}/xextproto-70"

do_install_append() {
	rm -r ${D}${libdir}
}
# xorg-proto-common.inc would stage all. We need to overwrite it.
do_stage() {
	autotools_stage_includes
}
# No, we really do not want to install .pc file and overwrite newer one:
pkgconfig_sysroot_preprocess() {
}

# Build of xserver-kdrive is not possible with xextproto >= 7.1.
# This package allows to install old 7.0 includes in parallel.
PR_append = ".1"

BPN = "xextproto"

require xextproto_7.0.5.bb

XORG_PN = "xextproto"
EXTRA_OECONF += "--includedir=${includedir}/xextproto-70"

do_install_append() {
	rm -r ${D}${libdir}
}
# xorg-proto-common.inc would stage all. We need to overwrite it.
do_stage() {
	autotools_stage_includes
}
# No, we really do not want to install .pc file and overwrite newer one:
pkgconfig_sysroot_preprocess() {
}

Drop unnecessary FILESPATH (what was added doesn't exist)
xextproto-70-includes: Drop unnecessary FILESPATH (what was added doesn't
exist)

Signed-off-by: Tom Rini <4c3d5c8f8c21c27dd329bd585f481113514551fd@mentor.com>
