summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libx11.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-10-03 09:35:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-11 18:08:36 +0100
commitaf0a9577604de374035c06c344771a874a2b7496 (patch)
treea14e08e709df88b2bbd2a288139a9a871b85a668 /meta/recipes-graphics/xorg-lib/libx11.inc
parentb093169e526fd80ccd2b66effb28f7e1b34f14f0 (diff)
downloadpoky-af0a9577604de374035c06c344771a874a2b7496.tar.gz
libx11: package xcb, merge few changes from meta-oe
* move --with-keysymdef/--with-keysymdefdir setting to recipes (newer versions are using keysymdefdir instead keysymdef * fix MIN_REHASH in makekeys by sed call (From OE-Core rev: 70abb59e71a2aed5ef7faf5ba9b56f695d562382) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libx11.inc')
-rw-r--r--meta/recipes-graphics/xorg-lib/libx11.inc25
1 files changed, 16 insertions, 9 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc
index 455753f5db..748a48cef3 100644
--- a/meta/recipes-graphics/xorg-lib/libx11.inc
+++ b/meta/recipes-graphics/xorg-lib/libx11.inc
@@ -11,32 +11,39 @@ inherit siteinfo
11PROVIDES = "virtual/libx11" 11PROVIDES = "virtual/libx11"
12 12
13XORG_PN = "libX11" 13XORG_PN = "libX11"
14LEAD_SONAME = "libX11.so" 14LICENSE = "MIT & MIT-style & BSD"
15LIC_FILES_CHKSUM = "file://COPYING;md5=172255dee66bb0151435b2d5d709fcf7"
15 16
16EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h --disable-specs" 17EXTRA_OECONF += "--with-groff=no --with-ps2pdf=no --with-fop=no --disable-specs"
18
19PACKAGES =+ "${PN}-xcb"
17 20
18FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt" 21FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt"
22FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*"
19FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale" 23FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
20 24
21do_compile() { 25do_compile_prepend() {
22 cd ${S}/src/util 26 cd ${S}/src/util
23 mv makekeys.c.orig makekeys.c || true 27 mv makekeys.c.orig makekeys.c || true
24 touch makekeys-makekeys.o 28 touch makekeys-makekeys.o
25 ( 29 (
26 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS 30 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
31 # MIN_REHASH 10 is only in 1.0.1
32 sed -i -e 's:MIN_REHASH 10:MIN_REHASH 16:g' makekeys.c
33 sed -i -e 's:MIN_REHASH 15:MIN_REHASH 16:g' makekeys.c
34 touch makekeys-makekeys.o;
27 if [ "${SITEINFO_BITS}" == "64" ]; then 35 if [ "${SITEINFO_BITS}" == "64" ]; then
28 ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys 36 ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
29 else 37 else
30 ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} -DUSE32 makekeys.c -o makekeys 38 ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} -DUSE32 makekeys.c -o makekeys
31 fi 39 fi
32 ) 40 )
33 if [ "$?" != "0" ]; then 41 if [ "$?" != "0" ]; then
34 exit 1 42 exit 1
35 fi 43 fi
36 # mv to stop it getting rebuilt 44 # mv to stop it getting rebuilt
37 mv makekeys.c makekeys.c.orig 45 mv makekeys.c makekeys.c.orig
38 cd ${S} 46 cd ../../
39 oe_runmake
40} 47}
41 48
42# Multiple libx11 derivatives from from this file and are selected by virtual/libx11 49# Multiple libx11 derivatives from from this file and are selected by virtual/libx11