package/opencv: fix opencv.pc generation
authorSamuel Martin <s.martin49@gmail.com>
Sun, 17 May 2015 13:03:14 +0000 (15:03 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 17 May 2015 18:43:35 +0000 (20:43 +0200)
commite7a7d53c9421f93f4cae7102f8a43deeb0fafdf1
tree81f56542055635cf3321e3ed70ade1beddff8a4e
parent9f31cd14d01e306e6475b750c30554043c57491a
package/opencv: fix opencv.pc generation

This change fixes build of packages depending on opencv and using
pkg-config to get the opencv LDFLAGS, which were wrongly ordered for
static build and included absolute path pointing to the host system
libraries instead of the sysroot ones.

This patch fixes build issues with gst1-plugins-bad and vlc.

This change introduce and new patch to opencv, which is already merged
upstream [1].

Fixes:
  http://autobuild.buildroot.net/results/c70/c70f793c7c3b380428d6e2e622a90805cffc4dd1/
  ... and many others

[1] https://github.com/Itseez/opencv/commit/eceada586bbf18fc267e437522ec4f1f23ddc656

Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/opencv/0003-cmake-OpenCVGenPkgconfig.cmake-rework-opencv.pc-gene.patch [new file with mode: 0644]