summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/xorg-lib/libx11.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-lib/libx11.inc')
-rw-r--r--meta-oe/recipes-graphics/xorg-lib/libx11.inc52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/xorg-lib/libx11.inc b/meta-oe/recipes-graphics/xorg-lib/libx11.inc
new file mode 100644
index 000000000..d1e646af0
--- /dev/null
+++ b/meta-oe/recipes-graphics/xorg-lib/libx11.inc
@@ -0,0 +1,52 @@
1require xorg-lib-common.inc
2
3DESCRIPTION = "Base X libs."
4COMMON_DEPENDS = "util-macros xtrans libxdmcp libxau \
5 bigreqsproto xproto xextproto xcmiscproto \
6 xf86bigfontproto kbproto inputproto xproto-native"
7
8DEPENDS = "libxcb ${COMMON_DEPENDS}"
9DEPENDS_virtclass-native = "${COMMON_DEPENDS}"
10DEPENDS_virtclass-nativesdk = "${COMMON_DEPENDS}"
11
12FILESPATHPKG .= ":libx11-${PV}:libx11"
13BBCLASSEXTEND = "native nativesdk"
14PROVIDES = "virtual/libx11"
15PE = "1"
16
17PACKAGES =+ "${PN}-xcb"
18
19FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt"
20FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*"
21FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
22
23XORG_PN = "libX11"
24
25EXTRA_OECONF += " --with-xcb --with-keysymdefdir=${STAGING_INCDIR}/X11 --with-groff=no --with-ps2pdf=no --with-fop=no"
26EXTRA_OECONF_virtclass-native = " --without-xcb --with-groff=no --with-ps2pdf=no --with-fop=no"
27EXTRA_OECONF_virtclass-nativesdk = " --without-xcb --with-groff=no --with-ps2pdf=no --with-fop=no"
28
29# Below option is added to overcome the GCC bug on ARM
30# see http://gcc.gnu.org/PR42981 for further details.
31# We could potentially take it off when its fixed in gcc 4.5
32
33CFLAGS_append_arm = " -fforward-propagate "
34
35SRC_URI += " file://keysymdef_include.patch \
36 file://x11_disable_makekeys.patch \
37"
38
39do_compile_prepend() {
40 (
41 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
42 cd src/util;
43 mv makekeys.c.orig makekeys.c || true
44 # MIN_REHASH 10 is only in 1.0.1
45 sed -i -e 's:MIN_REHASH 10:MIN_REHASH 16:g' makekeys.c
46 sed -i -e 's:MIN_REHASH 15:MIN_REHASH 16:g' makekeys.c
47 touch makekeys-makekeys.o ; ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
48 # mv to stop it getting rebuilt
49 mv makekeys.c makekeys.c.orig
50 cd ../../
51 ) || exit 1
52}