browser-adapter: fix unmatched quotes and variable names

* 0479fb1a1cc0d3fad2877fd74ff0291550d84d1f changed exported variables
  from STAGING_INC_DIR to STAGING_INCDIR and STAGING_LIB_DIR to STAGING_LIBDIR
  but browser-adapter Makefile still expects former, so revert that part.
  git/Makefile:INCLUDES := -I$(STAGING_INC_DIR) -I$(STAGING_INC_DIR)/Yap -I$(STAGING_INC_DIR)/BrowserServer
  git/Makefile:LIBS := -L$(STAGING_LIB_DIR) -lYap $(STAGING_LIB_DIR)/AdapterBase.a

* without this change it fails to find STAGING_INCDIR/Yap/YapClient.h

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browser-adapter: fix installation of BrowserAdapter.so

* 0479fb1a1cc0d3fad2877fd74ff0291550d84d1f changed browser-adapter.bb to
  install BrowserAdapter.so with make, but with wrong patch:
  change to use
  oe_runmake INSTALL_DIR=${D} install
  instead of
  install -m 755 -p ${S}/release-${TARGET_ARCH}/BrowserAdapter.so ${D}${libdir}/BrowserPlugins
  breaks it, because INSTALL_DIR should be ${D}${prefix}

  Makefile:
    install: all
    @mkdir -p $(INSTALL_DIR)/lib/BrowserPlugins
    install -m 0755 $(BUILD_TYPE)-$(PLATFORM)/BrowserAdapter.so $(INSTALL_DIR)/lib/BrowserPlugins

  There was probably this warning:
  WARNING: QA Issue: browser-adapter: Files/directories were installed but not shipped
  /lib
  /lib/BrowserPlugins
  /lib/BrowserPlugins/BrowserAdapter.so
  /lib/BrowserPlugins/.debug
  /lib/BrowserPlugins/.debug/BrowserAdapter.so
  So BrowserAdapter.so was not packaged at all.

* fix INSTALL_DIR

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-supplemental: Fix not to install directly into sysroot

In spite of what appears the commit message of
0479fb1a1cc0d3fad2877fd74ff0291550d84d1f, this is the commit that stops
webkit-supplemental from installing directly into the sysroot.

- Arrange for qmake to generate install targets in the
  Makefile.WebKitSupplemental-s that copy to the correct location by
  setting STAGING_INCDIR and STAGING_LIBDIR appropriately in
  do_configure() and setting INSTALL_ROOT when invoking make in
  do_install().

- Move the plugins to their expected locations in do_install() until
  the *.pro-s are fixed.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I7e3f430136d8071b65f2211dcf6dcf366b67345c
webkit-webos: Fix syntax error in test for gold

Found by shr-project (http://preview.tinyurl.com/9nfbqej). Thanks for
catching something our build verifier missed!

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I7894827f3001c5166297a2dad5f89ff5cff122f4
webos-image: add missing pieces to support to support selecting an alternative to dropbear

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
webos-image: pull dropbear through ssh-server-dropbear image feature instead of task-webos-core RDEPENDS

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
task-webos-core, task-webos-extended: drop invalid DEPENDS_${PN}

* tasks (packagegroups in newer oe-core) does not have such _build_ time
  dependencies and DEPENDS (unlike RDEPENDS) doesn't have _${PN} suffix

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
task-webos-core: remove jpeg from RDEPENDS

* if something depends on lib like jpeg it will pull it with shlibs
* it allows to switch P_P_jpeg e.g. to libjpeg-turbo

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
distro: webos: set PREFERRED_PROVIDER_jpeg to jpeg

* this way libjpeg-turbo wont be selected as default provider for build
  time dependency on jpeg

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webos_machine_dep.bbclass: fix PACKAGE_ARCH for MACHINES with '-'

* MACHINE_ARCH replaces '-' with '_' because of RPM (see
https://bugzilla.yoctoproject.org/show_bug.cgi?id=946 for details.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webos_arch_indep.bbclass: inherit allarch

* allarch works better with sstate

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes: replace webos_arch_indep with allarch from oe-core

* allarch works better with sstate

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: replace python functions with simpler variable

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qmake-webos-native: remove dependency on target MACHINE in native recipe

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: move shared parts between qt4-webos.bb and qmake-webos-native.bb to qt4-webos.inc

* at least we don't depend on MACHINE variable from native recipe
  and we can disable opengl

* but this is still only temporary solution and needs to be replaced with qt4-native

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: don't export wrong STAGING_LIBDIR/STAGING_INCDIR values

* breaks do_install when opengl is enabled:
  | make[1]: Entering directory `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/qt-build-tuna/src/opengl'
  | make[1]: *** No rule to make target `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/image/usr/include/string.h', needed by `.obj/release-shared/qgl.o'.  Stop.
  | make[1]: Leaving directory `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/qt-build-tuna/src/opengl'
  | make: *** [sub-opengl-install_subtargets-ordered] Error 2
  | make: Leaving directory `/OE/webos/owpb/openwebos-ports/tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.01-r23/qt-build-tuna'

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: fix creating /include directory in build host root

* the same fix like normal qt4
  http://git.openembedded.org/openembedded-core/commit/?id=7d3fd68480d54a8ef0d91a772df3506cd45ef2c2

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: add patch to fix build for qemux86-64

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: set correct arch and endian like oe-core does

* fixes build of qemux86 and qemux86-64, see
  https://github.com/openwebos/qt/pull/19 for more details

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
task*: rename to packagegroup to match oe-core

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>