libamcodec: new package
[buildroot-gz.git] / package / rpi-userland / 0001-Add-.pc-files-for-the-OpenGLESv2-EGL-and-bcm_host-li.patch
blob352f95df2f7fb60176403476aa24d239adcdf61e
1 From 853d7486a98e38eb78d48b2dcb1dda36610575b4 Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sat, 24 Jan 2015 19:44:14 +0100
4 Subject: [PATCH] Add .pc files for the OpenGLESv2, EGL and bcm_host
5 libraries
7 Those pkg-config files make it easier for Qt5 to find those libraries
8 and the appropriate link flags.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 ---
13 host_applications/linux/libs/bcm_host/CMakeLists.txt | 4 ++++
14 host_applications/linux/libs/bcm_host/bcm_host.pc.in | 10 ++++++++++
15 interface/khronos/CMakeLists.txt | 8 ++++++++
16 interface/khronos/egl/egl.pc.in | 11 +++++++++++
17 interface/khronos/glxx/glesv2.pc.in | 10 ++++++++++
18 5 files changed, 43 insertions(+)
19 create mode 100644 host_applications/linux/libs/bcm_host/bcm_host.pc.in
20 create mode 100644 interface/khronos/egl/egl.pc.in
21 create mode 100644 interface/khronos/glxx/glesv2.pc.in
23 diff --git a/host_applications/linux/libs/bcm_host/CMakeLists.txt b/host_applications/linux/libs/bcm_host/CMakeLists.txt
24 index 1edf50a..1f29ead 100644
25 --- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
26 +++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
27 @@ -20,3 +20,7 @@ target_link_libraries(bcm_host vcos vchostif)
29 install(TARGETS bcm_host DESTINATION lib)
31 +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/bcm_host.pc.in"
32 + "${CMAKE_CURRENT_BINARY_DIR}/bcm_host.pc" @ONLY)
33 +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/bcm_host.pc"
34 + DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
35 diff --git a/host_applications/linux/libs/bcm_host/bcm_host.pc.in b/host_applications/linux/libs/bcm_host/bcm_host.pc.in
36 new file mode 100644
37 index 0000000..d40d350
38 --- /dev/null
39 +++ b/host_applications/linux/libs/bcm_host/bcm_host.pc.in
40 @@ -0,0 +1,10 @@
41 +prefix=/usr
42 +exec_prefix=${prefix}
43 +libdir=${exec_prefix}/lib
44 +includedir=${prefix}/include
46 +Name: bcm_host
47 +Description: Broadcom VideoCore host API library
48 +Version: 1
49 +Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm
50 +Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
51 diff --git a/interface/khronos/CMakeLists.txt b/interface/khronos/CMakeLists.txt
52 index c437291..ec5a605 100644
53 --- a/interface/khronos/CMakeLists.txt
54 +++ b/interface/khronos/CMakeLists.txt
55 @@ -74,3 +74,11 @@ target_link_libraries(OpenVG EGL)
57 install(TARGETS EGL GLESv2 OpenVG WFC khrn_client DESTINATION lib)
58 install(TARGETS EGL_static GLESv2_static khrn_static DESTINATION lib)
59 +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/egl/egl.pc.in"
60 + "${CMAKE_CURRENT_BINARY_DIR}/egl/egl.pc" @ONLY)
61 +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/egl/egl.pc"
62 + DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
63 +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/glxx/glesv2.pc.in"
64 + "${CMAKE_CURRENT_BINARY_DIR}/glxx/glesv2.pc" @ONLY)
65 +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/glxx/glesv2.pc"
66 + DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
67 diff --git a/interface/khronos/egl/egl.pc.in b/interface/khronos/egl/egl.pc.in
68 new file mode 100644
69 index 0000000..5868706
70 --- /dev/null
71 +++ b/interface/khronos/egl/egl.pc.in
72 @@ -0,0 +1,11 @@
73 +prefix=@CMAKE_INSTALL_PREFIX@
74 +exec_prefix=${prefix}
75 +libdir=${exec_prefix}/lib
76 +includedir=${prefix}/include
78 +Name: egl
79 +Description: RasberryPi implementation of EGL
80 +Version: 10
81 +Libs: -L${libdir} -lEGL -lGLESv2 -lbcm_host -lvchostif
82 +Cflags: -I${includedir}/ -I${includedir}/interface/vcos/pthreads/ \
83 + -I${includedir}/interface/vmcs_host/linux/
84 diff --git a/interface/khronos/glxx/glesv2.pc.in b/interface/khronos/glxx/glesv2.pc.in
85 new file mode 100644
86 index 0000000..2f58eed
87 --- /dev/null
88 +++ b/interface/khronos/glxx/glesv2.pc.in
89 @@ -0,0 +1,10 @@
90 +prefix=@CMAKE_INSTALL_PREFIX@
91 +exec_prefix=${prefix}
92 +libdir=${exec_prefix}/lib
93 +includedir=${prefix}/include
95 +Name: glesv2
96 +Description: RasberryPi implementation of OpenGL ESv2
97 +Version: 2.0
98 +Libs: -L${libdir} -lGLESv2
99 +Cflags: -I${includedir}/
101 1.9.1