PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
PKG_CONFIG_SYSROOT_DIR = ""
+
+python __anonymous () {
+ pn = bb.data.getVar("PN", d, True)
+ depends = bb.data.getVar("DEPENDS", d, True)
+ deps = bb.utils.explode_deps(depends)
+ if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
+ autoextend = True
+ else:
+ autoextend = False
+ for dep in deps:
+ if not dep.endswith("-native"):
+ if autoextend:
+ depends = depends.replace(dep, dep + "-native")
+ else:
+ bb.note("%s has depends %s which doesn't end in -native?" % (pn, dep))
+ bb.data.setVar("DEPENDS", depends, d)
+}
+
bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d)
}
+python __anonymous () {
+ pn = bb.data.getVar("PN", d, True)
+ depends = bb.data.getVar("DEPENDS", d, True)
+ deps = bb.utils.explode_deps(depends)
+ if "sdk" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
+ autoextend = True
+ else:
+ autoextend = False
+ for dep in deps:
+ if dep.endswith("-native") or dep.endswith("-cross") or dep.startswith("virtual/"):
+ continue
+ if not dep.endswith("-sdk"):
+ if autoextend:
+ depends = depends.replace(dep, dep + "-sdk")
+ else:
+ bb.note("%s has depends %s which doesn't end in -sdk?" % (pn, dep))
+ bb.data.setVar("DEPENDS", depends, d)
+ provides = bb.data.getVar("PROVIDES", d, True)
+ for prov in provides.split():
+ if prov.find(pn) != -1:
+ continue
+ if not prov.endswith("-sdk"):
+ if autoextend:
+ provides = provides.replace(prov, prov + "-sdk")
+ #else:
+ # bb.note("%s has rouge PROVIDES of %s which doesn't end in -sdk?" % (pn, prov))
+ bb.data.setVar("PROVIDES", provides, d)
+
+}
+
+
+++ /dev/null
-SECTION = "console/utils"
-require sed_${PV}.bb
-inherit native
update-alternatives --remove sed sed.${PN}
}
+BBCLASSEXTEND = "native"
+++ /dev/null
-require libfontenc_${PV}.bb
-
-DEPENDS = "zlib-native xproto-native"
-PE = "1"
-
-XORG_PN = "libfontenc"
-
-inherit native
DEPENDS += "zlib xproto"
PR = "r1"
PE = "1"
+
+BBCLASSEXTEND = "native"
+++ /dev/null
-require libxau_${PV}.bb
-
-DEPENDS = "xproto-native util-macros-native"
-PROVIDES = ""
-
-inherit native
+++ /dev/null
-require libxau_${PV}.bb
-
-DEPENDS = "xproto-sdk util-macros-sdk"
-PROVIDES = ""
-
-inherit sdk
PE = "1"
XORG_PN = "libXau"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require libxdmcp_${PV}.bb
-
-DEPENDS = "xproto-native util-macros-native"
-PROVIDES = ""
-
-inherit native
+++ /dev/null
-require libxdmcp_${PV}.bb
-
-DEPENDS = "xproto-sdk util-macros-sdk"
-PROVIDES = ""
-
-inherit sdk
PE = "1"
XORG_PN = "libXdmcp"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require libxext_git.bb
-
-DEPENDS = "xproto-sdk util-macros-sdk libx11-sdk libxau-sdk xextproto-sdk"
-PROVIDES = ""
-
-inherit sdk
SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/${XORG_PN};protocol=git"
S = "${WORKDIR}/git/"
+
+BBCLASSEXTEND = "sdk"
+++ /dev/null
-require libxfont_${PV}.bb
-
-DEPENDS = "xproto-native zlib-native fontcacheproto-native fontsproto-native \
- libfontenc-native xtrans-native freetype-native util-macros-native"
-PE = "1"
-
-# no need for patch used in libxfont
-SRC_URI = "${XORG_MIRROR}/individual/lib/${XORG_PN}-${PV}.tar.bz2"
-
-inherit native
#SRC_URI += "file://no-scalable-crash.patch;patch=1"
XORG_PN = "libXfont"
+
+BBCLASSEXTEND = "native"
+++ /dev/null
-require libxkbfile_${PV}.bb
-
-DEPENDS = "libx11-native kbproto-native"
-PE = "1"
-
-XORG_PN = "libxkbfile"
-
-inherit native
DEPENDS += "virtual/libx11 kbproto"
PR = "r1"
PE = "1"
+
+BBCLASSEXTEND = "native"
+++ /dev/null
-require libxrandr_${PV}.bb
-
-DEPENDS = "randrproto-sdk util-macros-sdk libxext-sdk libxrender-sdk"
-
-inherit sdk
PE = "1"
XORG_PN = "libXrandr"
+
+BBCLASSEXTEND = "sdk"
+++ /dev/null
-require libxrender_${PV}.bb
-
-DEPENDS = "xproto-sdk renderproto-sdk util-macros-sdk libx11-sdk"
-
-inherit sdk
PE = "1"
XORG_PN = "libXrender"
+
+BBCLASSEXTEND = "sdk"
+++ /dev/null
-require xtrans_${PV}.bb
-
-DEPENDS = "util-macros-native"
-
-inherit native
+++ /dev/null
-require xtrans_${PV}.bb
-
-DEPENDS = "util-macros-sdk"
-
-inherit sdk
RDEPENDS_${PN}-dev = ""
XORG_PN = "xtrans"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require bigreqsproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require bigreqsproto_${PV}.bb
-
-inherit sdk
PE = "1"
XORG_PN = "bigreqsproto"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require fontcacheproto_${PV}.bb
-
-XORG_PN = "fontcacheproto"
-
-inherit native
PR = "r1"
PE = "1"
+
+BBCLASSEXTEND = "native"
+++ /dev/null
-require fontsproto_${PV}.bb
-
-PR = "r1"
-
-XORG_PN = "fontsproto"
-
-S = "${WORKDIR}/fontsproto-${PV}"
-
-inherit native
PR = "r1"
PE = "1"
+
+BBCLASSEXTEND = "native"
+++ /dev/null
-require inputproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require inputproto_${PV}.bb
-
-inherit sdk
S = "${WORKDIR}/git"
XORG_PN = "inputproto"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require kbproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require kbproto_${PV}.bb
-
-inherit sdk
PE = "1"
XORG_PN = "kbproto"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require xcmiscproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require xcmiscproto_${PV}.bb
-
-inherit sdk
PE = "1"
XORG_PN = "xcmiscproto"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require xextproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require xextproto_${PV}.bb
-
-inherit sdk
PE = "1"
XORG_PN = "xextproto"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require xf86bigfontproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require xf86bigfontproto_${PV}.bb
-
-inherit sdk
PE = "1"
XORG_PN = "xf86bigfontproto"
+
+BBCLASSEXTEND = "native sdk"
+++ /dev/null
-require xproto_${PV}.bb
-
-inherit native
+++ /dev/null
-require xproto_${PV}.bb
-
-inherit sdk
PE = "1"
XORG_PN = "xproto"
+
+BBCLASSEXTEND = "native sdk"
+
+++ /dev/null
-require xorg-util-common.inc
-inherit native
-
-DESCRIPTION = "create dependencies in makefiles"
-DEPENDS = "xproto-native util-macros-native"
-PR = "r2"
-PE = "1"
-
-XORG_PN = "makedepend"
DEPENDS = "xproto util-macros"
PR = "r2"
PE = "1"
+
+BBCLASSEXTEND = "native"
+++ /dev/null
-require util-macros_${PV}.bb
-
-inherit native
+++ /dev/null
-require util-macros_${PV}.bb
-
-inherit sdk
# ${PN} is empty so we need to tweak -dev and -dbg package dependencies
RDEPENDS_${PN}-dev = ""
RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})"
+
+BBCLASSEXTEND = "native sdk"