diff options
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-lib/libx11.inc')
-rw-r--r-- | meta-oe/recipes-graphics/xorg-lib/libx11.inc | 52 |
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 @@ | |||
1 | require xorg-lib-common.inc | ||
2 | |||
3 | DESCRIPTION = "Base X libs." | ||
4 | COMMON_DEPENDS = "util-macros xtrans libxdmcp libxau \ | ||
5 | bigreqsproto xproto xextproto xcmiscproto \ | ||
6 | xf86bigfontproto kbproto inputproto xproto-native" | ||
7 | |||
8 | DEPENDS = "libxcb ${COMMON_DEPENDS}" | ||
9 | DEPENDS_virtclass-native = "${COMMON_DEPENDS}" | ||
10 | DEPENDS_virtclass-nativesdk = "${COMMON_DEPENDS}" | ||
11 | |||
12 | FILESPATHPKG .= ":libx11-${PV}:libx11" | ||
13 | BBCLASSEXTEND = "native nativesdk" | ||
14 | PROVIDES = "virtual/libx11" | ||
15 | PE = "1" | ||
16 | |||
17 | PACKAGES =+ "${PN}-xcb" | ||
18 | |||
19 | FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt" | ||
20 | FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*" | ||
21 | FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale" | ||
22 | |||
23 | XORG_PN = "libX11" | ||
24 | |||
25 | EXTRA_OECONF += " --with-xcb --with-keysymdefdir=${STAGING_INCDIR}/X11 --with-groff=no --with-ps2pdf=no --with-fop=no" | ||
26 | EXTRA_OECONF_virtclass-native = " --without-xcb --with-groff=no --with-ps2pdf=no --with-fop=no" | ||
27 | EXTRA_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 | |||
33 | CFLAGS_append_arm = " -fforward-propagate " | ||
34 | |||
35 | SRC_URI += " file://keysymdef_include.patch \ | ||
36 | file://x11_disable_makekeys.patch \ | ||
37 | " | ||
38 | |||
39 | do_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 | } | ||