• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/rpi-userland/rpi-userland-000-add-pkgconfig-files.patch
Fatih AşıcıFatih Aşıcı committed 6a29ce0d16423 Jul 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Add .pc files for the OpenGLESv2, EGL and bcm_host libraries
2
​
3
Those pkg-config files make it easier for Qt5 to find those libraries
4
and the appropriate link flags.
5
​
6
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8
​
9
Index: b/interface/khronos/egl/egl.pc.in
10
===================================================================
11
--- /dev/null
12
+++ b/interface/khronos/egl/egl.pc.in
13
@@ -0,0 +1,11 @@
14
+prefix=@CMAKE_INSTALL_PREFIX@
15
+exec_prefix=${prefix}
16
+libdir=${exec_prefix}/lib
17
+includedir=${prefix}/include
18
+
19
+Name: egl
20
+Description: RasberryPi implementation of EGL
21
+Version: 10
22
+Libs: -L${libdir} -lEGL -lGLESv2 -lbcm_host -lvchostif
23
+Cflags: -I${includedir}/ -I${includedir}/interface/vcos/pthreads/ \
24
+        -I${includedir}/interface/vmcs_host/linux/
25
Index: b/interface/khronos/CMakeLists.txt
26
===================================================================
27
--- a/interface/khronos/CMakeLists.txt
28
+++ b/interface/khronos/CMakeLists.txt
29
@@ -74,3 +74,11 @@
30
 
31
 install(TARGETS EGL GLESv2 OpenVG WFC khrn_client DESTINATION lib)
32
 install(TARGETS EGL_static GLESv2_static khrn_static DESTINATION lib)
33
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/egl/egl.pc.in"
34
+  "${CMAKE_CURRENT_BINARY_DIR}/egl/egl.pc" @ONLY)
35
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/egl/egl.pc"
36
+  DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
37
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/glxx/glesv2.pc.in"
38
+  "${CMAKE_CURRENT_BINARY_DIR}/glxx/glesv2.pc" @ONLY)
39
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/glxx/glesv2.pc"
40
+  DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
41
Index: b/interface/khronos/glxx/glesv2.pc.in
42
===================================================================
43
--- /dev/null
44
+++ b/interface/khronos/glxx/glesv2.pc.in
45
@@ -0,0 +1,10 @@
46
+prefix=@CMAKE_INSTALL_PREFIX@
47
+exec_prefix=${prefix}
48
+libdir=${exec_prefix}/lib
49
+includedir=${prefix}/include
50
+
51
+Name: glesv2
52
+Description: RasberryPi implementation of OpenGL ESv2
53
+Version: 2.0
54
+Libs: -L${libdir} -lGLESv2
55
+Cflags: -I${includedir}/
56
Index: b/host_applications/linux/libs/bcm_host/CMakeLists.txt
57
===================================================================
58
--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt
59
+++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt
60
@@ -20,3 +20,7 @@
61
 
62
 install(TARGETS bcm_host DESTINATION lib)
63
 
64
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/bcm_host.pc.in"
65
+  "${CMAKE_CURRENT_BINARY_DIR}/bcm_host.pc" @ONLY)
66
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/bcm_host.pc"
67
+  DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
68
Index: b/host_applications/linux/libs/bcm_host/bcm_host.pc.in
69
===================================================================
70
--- /dev/null
71
+++ b/host_applications/linux/libs/bcm_host/bcm_host.pc.in
72
@@ -0,0 +1,10 @@
73
+prefix=/usr
74
+exec_prefix=${prefix}
75
+libdir=${exec_prefix}/lib
76
+includedir=${prefix}/include
77
+
78
+Name: bcm_host
79
+Description: Broadcom VideoCore host API library
80
+Version: 1
81
+Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm
82
+Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.