blob: b04eafbdf2f7c9513193c3d9fb3ace4b03a7ec6b [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Xlib: C Language X Interface library"
2
3DESCRIPTION = "This package provides a client interface to the X Window \
4System, otherwise known as 'Xlib'. It provides a complete API for the \
5basic functions of the window system."
6
7require xorg-lib-common.inc
8
9inherit siteinfo
10
11FILESEXTRAPATHS =. "${FILE_DIRNAME}/libx11:"
12
13PE = "1"
14
15PROVIDES = "virtual/libx11"
16
17XORG_PN = "libX11"
18LICENSE = "MIT & MIT-style & BSD"
19LIC_FILES_CHKSUM = "file://COPYING;md5=172255dee66bb0151435b2d5d709fcf7"
20
21DEPENDS += "xproto xextproto xtrans libxcb kbproto inputproto"
22DEPENDS += "xproto-native"
23
24EXTRA_OECONF += "--with-keysymdefdir=${STAGING_INCDIR}/X11/ --disable-xf86bigfont"
25EXTRA_OEMAKE += 'CWARNFLAGS=""'
26
27PACKAGECONFIG ??= "xcms"
28PACKAGECONFIG[xcms] = "--enable-xcms,--disable-xcms"
29
30# src/util/makekeys is built natively but needs -D_GNU_SOURCE defined.
31CPPFLAGS_FOR_BUILD += "-D_GNU_SOURCE"
32
33PACKAGES =+ "${PN}-xcb"
34
35FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${datadir}/X11/Xcms.txt"
36FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*"
37FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
38
39# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
40# A world build should only build the correct version, not all of them.
41EXCLUDE_FROM_WORLD = "1"