generic-poky/meta/recipes-graphics/xorg-lib/libx11.inc

50 lines
1.5 KiB
PHP

SUMMARY = "Xlib: C Language X Interface library"
DESCRIPTION = "This package provides a client interface to the X Window \
System, otherwise known as 'Xlib'. It provides a complete API for the \
basic functions of the window system."
require xorg-lib-common.inc
inherit siteinfo
PROVIDES = "virtual/libx11"
XORG_PN = "libX11"
LEAD_SONAME = "libX11.so"
EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h --disable-specs"
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
if [ "${SITEINFO_BITS}" == "64" ]; then
${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
else
${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} -DUSE32 makekeys.c -o makekeys
fi
)
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"
python () {
if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
}