diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libx11.inc')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11.inc | 43 |
1 files changed, 13 insertions, 30 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc index d56aa23918..3ecd9e50b3 100644 --- a/meta/recipes-graphics/xorg-lib/libx11.inc +++ b/meta/recipes-graphics/xorg-lib/libx11.inc | |||
@@ -11,7 +11,7 @@ inherit siteinfo | |||
11 | FILESPATH = "${FILE_DIRNAME}/libx11" | 11 | FILESPATH = "${FILE_DIRNAME}/libx11" |
12 | 12 | ||
13 | PE = "1" | 13 | PE = "1" |
14 | INC_PR = "r7" | 14 | INC_PR = "r8" |
15 | 15 | ||
16 | PROVIDES = "virtual/libx11" | 16 | PROVIDES = "virtual/libx11" |
17 | 17 | ||
@@ -22,12 +22,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=172255dee66bb0151435b2d5d709fcf7" | |||
22 | DEPENDS += "xproto xextproto xtrans libxcb kbproto inputproto" | 22 | DEPENDS += "xproto xextproto xtrans libxcb kbproto inputproto" |
23 | DEPENDS += "xproto-native" | 23 | DEPENDS += "xproto-native" |
24 | 24 | ||
25 | PACKAGES =+ "${PN}-xcb" | ||
26 | |||
27 | FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt" | ||
28 | FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*" | ||
29 | FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale" | ||
30 | |||
31 | EXTRA_OECONF += "--with-keysymdefdir=${STAGING_INCDIR}/X11/" | 25 | EXTRA_OECONF += "--with-keysymdefdir=${STAGING_INCDIR}/X11/" |
32 | 26 | ||
33 | # Let people with incredibly archaic requirements enable Xcms and BigFont, but | 27 | # Let people with incredibly archaic requirements enable Xcms and BigFont, but |
@@ -36,29 +30,18 @@ PACKAGECONFIG ??= "" | |||
36 | PACKAGECONFIG[xcms] = "--enable-xcms,--disable-xcms" | 30 | PACKAGECONFIG[xcms] = "--enable-xcms,--disable-xcms" |
37 | PACKAGECONFIG[bigfont] = "--enable-xf86bigfont,--disable-xf86bigfont,xf86bigfontproto" | 31 | PACKAGECONFIG[bigfont] = "--enable-xf86bigfont,--disable-xf86bigfont,xf86bigfontproto" |
38 | 32 | ||
39 | do_compile_prepend() { | 33 | # src/util/makekeys needs to be compiled natively, so tell it what compiler to |
40 | cd ${S}/src/util | 34 | # use. |
41 | mv makekeys.c.orig makekeys.c || true | 35 | export CC_FOR_BUILD = "${BUILD_CC}" |
42 | touch makekeys-makekeys.o | 36 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" |
43 | ( | 37 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" |
44 | unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS | 38 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" |
45 | # MIN_REHASH 10 is only in 1.0.1 | 39 | |
46 | sed -i -e 's:MIN_REHASH 10:MIN_REHASH 16:g' makekeys.c | 40 | PACKAGES =+ "${PN}-xcb" |
47 | sed -i -e 's:MIN_REHASH 15:MIN_REHASH 16:g' makekeys.c | 41 | |
48 | touch makekeys-makekeys.o; | 42 | FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt" |
49 | if [ "${SITEINFO_BITS}" == "64" ]; then | 43 | FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*" |
50 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -I${S}/include -o makekeys | 44 | FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale" |
51 | else | ||
52 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} -DUSE32 makekeys.c -I${S}/include -o makekeys | ||
53 | fi | ||
54 | ) | ||
55 | if [ "$?" != "0" ]; then | ||
56 | exit 1 | ||
57 | fi | ||
58 | # mv to stop it getting rebuilt | ||
59 | mv makekeys.c makekeys.c.orig | ||
60 | cd ../../ | ||
61 | } | ||
62 | 45 | ||
63 | # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 | 46 | # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 |
64 | # A world build should only build the correct version, not all of them. | 47 | # A world build should only build the correct version, not all of them. |