summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libx11.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libx11.inc')
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc
new file mode 100644
index 0000000000..f8c17b1a6d
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libx11.inc
@@ -0,0 +1,34 @@
1DESCRIPTION = "X11 protocol and utility library"
2
3require xorg-lib-common.inc
4
5PROVIDES = "virtual/libx11"
6
7XORG_PN = "libX11"
8LEAD_SONAME = "libX11.so"
9
10EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h"
11
12FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt"
13FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
14
15do_compile() {
16 cd ${S}/src/util
17 mv makekeys.c.orig makekeys.c || true
18 touch makekeys-makekeys.o
19 (
20 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
21 ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
22 )
23 if [ "$?" != "0" ]; then
24 exit 1
25 fi
26 # mv to stop it getting rebuilt
27 mv makekeys.c makekeys.c.orig
28 cd ${S}
29 oe_runmake
30}
31
32# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
33# A world build should only build the correct version, not all of them.
34EXCLUDE_FROM_WORLD = "1"