0020-openmaxil-add-pkg-config-file.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 372b3b75945300604c9b7b012ecb25c0548a1495 Mon Sep 17 00:00:00 2001
  2. From: Martin Jansa <martin.jansa@lge.com>
  3. Date: Wed, 13 Jun 2018 18:22:22 +0000
  4. Subject: [PATCH] openmaxil: add pkg-config file
  5. ---
  6. Upstream-Status: Pending
  7. CMakeLists.txt | 2 +-
  8. pkgconfig/openmaxil.pc.in | 10 ++++++++++
  9. 2 files changed, 11 insertions(+), 1 deletion(-)
  10. create mode 100644 pkgconfig/openmaxil.pc.in
  11. diff --git a/CMakeLists.txt b/CMakeLists.txt
  12. index 80337b2..3e3c90e 100644
  13. --- a/CMakeLists.txt
  14. +++ b/CMakeLists.txt
  15. @@ -133,7 +133,7 @@ include_directories("${PROJECT_BINARY_DIR}")
  16. include(FindPkgConfig QUIET)
  17. if(PKG_CONFIG_FOUND)
  18. # Produce a pkg-config file
  19. - foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc)
  20. + foreach(PCFILE bcm_host.pc brcmegl.pc brcmglesv2.pc brcmvg.pc vcsm.pc mmal.pc openmaxil.pc)
  21. configure_file("pkgconfig/${PCFILE}.in" "${PCFILE}" @ONLY)
  22. install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}"
  23. DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
  24. diff --git a/pkgconfig/openmaxil.pc.in b/pkgconfig/openmaxil.pc.in
  25. new file mode 100644
  26. index 0000000..8793a61
  27. --- /dev/null
  28. +++ b/pkgconfig/openmaxil.pc.in
  29. @@ -0,0 +1,10 @@
  30. +prefix=@CMAKE_INSTALL_PREFIX@
  31. +exec_prefix=${prefix}
  32. +libdir=${exec_prefix}/lib
  33. +includedir=${prefix}/include
  34. +
  35. +Name: openmaxil
  36. +Description: Broadcom openmaxil library
  37. +Version: 1
  38. +Libs: -L${libdir} -lopenmaxil -lvcos -lvchiq_arm -pthread
  39. +Cflags: -I${includedir} -I${includedir}/IL -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM