Rebased the 3 patches x11_disable_makekeys.patch, nodolt.patch and include_fix.patch; since the patches are also used by other recipes of lower versions, I created a new directory libx11-1.3.4/ to hold the rebased patches (the original patches are still kept unchanged); Updated LICENSE and LIC_FILES_CHKSUM, and reset PR to "r0"; Removed "patch=1" in SRC_URI as by default a patch is applied; Updated preferred-xorg-versions.inc. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
35 lines
931 B
PHP
35 lines
931 B
PHP
DESCRIPTION = "X11 protocol and utility library"
|
|
|
|
require xorg-lib-common.inc
|
|
|
|
PROVIDES = "virtual/libx11"
|
|
|
|
XORG_PN = "libX11"
|
|
LEAD_SONAME = "libX11.so"
|
|
|
|
EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h"
|
|
|
|
FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt"
|
|
FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
|
|
|
|
do_compile() {
|
|
cd ${S}/src/util
|
|
mv makekeys.c.orig makekeys.c || true
|
|
touch makekeys-makekeys.o
|
|
(
|
|
unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
|
|
${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
|
|
)
|
|
if [ "$?" != "0" ]; then
|
|
exit 1
|
|
fi
|
|
# mv to stop it getting rebuilt
|
|
mv makekeys.c makekeys.c.orig
|
|
cd ${S}
|
|
oe_runmake
|
|
}
|
|
|
|
# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
|
|
# A world build should only build the correct version, not all of them.
|
|
EXCLUDE_FROM_WORLD = "1"
|