qextserialport: use 'make install' to install to staging
authorArnout Vandecappelle <arnout@mind.be>
Sun, 20 Nov 2016 22:13:28 +0000 (23:13 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 21 Nov 2016 21:44:36 +0000 (22:44 +0100)
commit8ad8e9917fd1ea37a4866ef00ce42fd029a72bae
tree4624e50bb8f3a544dc19d32ca4de9b8721c75593
parent18af7b57870169581c5b38df94260dc1d40f7610
qextserialport: use 'make install' to install to staging

qmake hardcodes the path to the sysroot in the install commands, so
we can't use it for target. But it's perfectly usable for staging.

By using 'make install', we get:
- the extserialport.prf file is installed to the mkspecs directory and
  libqextserialport.prl in staging/usr/lib, so qmake can do its magic
  and add the necessary compiler options;
- it also works for static build, when *.so files don't exist.

The QExtSerialPort and qextserialport.pc files are created by
Buildroot so they still have to be installed explicitly. Note that
upstream installs in the QtExtSerialPort directory, not QExtSerialPort,
so we follow that decision.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Thomas: also adjust 0003-pkgconfig.patch to fix the header path.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qextserialport/0002-main-include.patch
package/qextserialport/0003-pkgconfig.patch
package/qextserialport/qextserialport.mk