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