1DOLLY 82PACKAGE x11-libs3REQUIRES HOST runtime@04REQUIRES HOST sockets@056# The X Window System's client libraries from X.Org's release archives,7# unchanged, for what a session or another package compiles: the protocol8# headers, xtrans, libXau and libxcb (whose protocol code xcb-proto's Python9# generator writes), libX11, the extension libraries and the Athena toolkit's10# stack. Static libraries with their headers, X.Org's protocol headers and the11# pkg-config files of both. xcb and ICE reach the X server through sockets@0's12# client, which comes with them.13FROM /demos/tools/Dollyfile-tools-build f848aebbca736e17aa72bca3fb0387176bf8695f829e6c49d1664a4ed6b7868d14USE /demos/python/Dollyfile-python caf80d3cd27594e1ed0bc4bbd8d586359be411b6f5328e5d3fe89c4a6951576f15USE /demos/tools/Dollyfile-tar e0a8f1a090eebe83540c35637645fec640423215f101a735f63eb6d877b2a28616INSTALL /Dollyfile-libdolly-sockets 6b09a69a442e3002873b97f13b5ebef36beea3b660a40b55b3a58f8eddf41af01718REQUIRES HEADER libc19REQUIRES TOOL ar20REQUIRES TOOL cc21REQUIRES TOOL cp22REQUIRES TOOL gzip23REQUIRES TOOL make24REQUIRES TOOL mkdir25REQUIRES TOOL python326REQUIRES TOOL sed27REQUIRES TOOL tar28REQUIRES TOOL xz2930SOURCE /dist/static/x11/xorgproto-2026.1.tar.gz 7fa90e48cbaca6bc4c99d176e88c5c147ab0ed42358e14a0869ee9c8a610ae7e /tmp/x11/xorgproto.tar.gz31SOURCE /dist/static/x11/xtrans-1.6.0.tar.gz 936b74c60b19c317c3f3cb1b114575032528dbdaf428740483200ea874c2ca0a /tmp/x11/xtrans.tar.gz32SOURCE /dist/static/x11/xcb-proto-1.17.0.tar.gz 392d3c9690f8c8202a68fdb89c16fd55159ab8d65000a6da213f4a1576e97a16 /tmp/x11/xcb-proto.tar.gz33SOURCE /dist/static/x11/libXau-1.0.12.tar.gz 2402dd938da4d0a332349ab3d3586606175e19cb32cb9fe013c19f1dc922dcee /tmp/x11/libXau.tar.gz34SOURCE /dist/static/x11/libxcb-1.17.0.tar.gz 2c69287424c9e2128cb47ffe92171e10417041ec2963bceafb65cb3fcf8f0b85 /tmp/x11/libxcb.tar.gz35SOURCE /dist/static/x11/libX11-1.8.13.tar.gz acf0e7cd7541110e6330ecb539441a2d53061f386ec7be6906dfde0de2598470 /tmp/x11/libX11.tar.gz36SOURCE /dist/static/x11/libXext-1.3.7.tar.gz 6564608dc3b816b0cfddf0c7ddc62bc579055dd70b2f28113a618df2acb64189 /tmp/x11/libXext.tar.gz37SOURCE /dist/static/x11/libXrender-0.9.12.tar.gz 0fff64125819c02d1102b6236f3d7d861a07b5216d8eea336c3811d31494ecf7 /tmp/x11/libXrender.tar.gz38SOURCE /dist/static/x11/libXfixes-6.0.2.tar.gz 041331b8e6e36038b3bf836785b6b175ec8515f964c9e4e3316b3bfed0f53ac7 /tmp/x11/libXfixes.tar.gz39SOURCE /dist/static/x11/libXi-1.8.3.tar.gz 6648c44127e4585f4e7842c0802d265008fa6f9741df0ea6ee7934a5267adf63 /tmp/x11/libXi.tar.gz40SOURCE /dist/static/x11/libICE-1.1.2.tar.gz 1da62f732f8679c20045708a29372b82dff9e7eceee543ed488b845002b3b0ff /tmp/x11/libICE.tar.gz41SOURCE /dist/static/x11/libSM-1.2.6.tar.gz 166b4b50d606cdd83f1ddc61b5b9162600034f848b3e32ccbb0e63536b7d6cdd /tmp/x11/libSM.tar.gz42SOURCE /dist/static/x11/libXt-1.3.1.tar.gz cf2212189869adb94ffd58c7d9a545a369b83d2274930bfbe148da354030b355 /tmp/x11/libXt.tar.gz43SOURCE /dist/static/x11/libXmu-1.3.1.tar.gz 5c8f44e26ccc9b14188599524e67ce788a205b38e297834babdeb12090be835b /tmp/x11/libXmu.tar.gz44SOURCE /dist/static/x11/libXpm-3.5.19.tar.gz f241f705c607fba1a53338f7e1c12005d6da326b5cb55a11a10847781b4578c0 /tmp/x11/libXpm.tar.gz45SOURCE /dist/static/x11/libXaw-1.0.16.tar.gz 012f90adf8739f2f023d63a5fee1528949cf2aba92ef7ac1abcfc2ae9cf28798 /tmp/x11/libXaw.tar.gz46SOURCE /dist/static/x11/libXrandr-1.5.5.tar.xz 72b922c2e765434e9e9f0960148070bd4504b288263e2868a4ccce1b7cf2767a /tmp/x11/libXrandr.tar.xz47SOURCE /dist/static/x11/libXcursor-1.2.3.tar.xz fde9402dd4cfe79da71e2d96bb980afc5e6ff4f8a7d74c159e1966afb2b2c2c0 /tmp/x11/libXcursor.tar.xz48SOURCE /dist/static/x11/libXdamage-1.1.7.tar.xz 127067f521d3ee467b97bcb145aeba1078e2454d448e8748eb984d5b397bde24 /tmp/x11/libXdamage.tar.xz49SOURCE /dist/static/x11/libXcomposite-0.4.7.tar.xz 8bdf310967f484503fa51714cf97bff0723d9b673e0eecbf92b3f97c060c8ccb /tmp/x11/libXcomposite.tar.xz50SOURCE /dist/static/x11/libXinerama-1.1.6.tar.xz d00fc1599c303dc5cbc122b8068bdc7405d6fcb19060f4597fc51bd3a8be51d7 /tmp/x11/libXinerama.tar.xz51SLOP CWD /tmp/x11 for archive in *.tar.gz; do gzip -dc "$archive" | tar -xf -; done52SLOP CWD /tmp/x11 for archive in *.tar.xz; do xz -dc "$archive" | tar -xf -; done5354FILE /tmp/x11/libs.mk55    .RECIPEPREFIX := >56    .DELETE_ON_ERROR:57    .SECONDARY:58    MAKEFLAGS += -r59    S := /tmp/x1160    B := /tmp/x11/build61    I := /usr/include/X1162    63    # Slop does not run the configure scripts, so these say what they would64    # find here: libc's pthread functions, which serve Xlib's locks without65    # threads, as XTHREADS. Not claimed: TCP (sockets@0 is local, and xtrans's66    # TCP code needs gethostbyaddr, which libc lacks), shared memory,67    # descriptor passing (xcb sends none) and loadable modules.68    # malloc(0) is taken to return NULL, configure's answer when it cannot run69    # a test program.70    HAVE := -D_GNU_SOURCE -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \71      -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STDLIB_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_IOCTL_H \72      -DHAVE_SYS_PARAM_H -DHAVE_SYS_SELECT_H -DHAVE_WCHAR_H -DHAVE_WCTYPE_H -DHAVE_POLL_H \73      -DHAVE_REALLOCARRAY -DHAVE_STRLCPY -DHAVE_STRLCAT -DHAVE_STRCASECMP -DHAVE_STRTOL \74      -DHAVE_ASPRINTF -DHAVE_GETPAGESIZE -DHAVE_ISWALNUM -DHAVE_SOCKLEN_T -DHAVE_UNAME \75      -DHAVE_STRUCT_SOCKADDR_STORAGE -DHAVE_GETADDRINFO -DHAVE_INET_NTOP -DHAVE_GETENTROPY \76      -DHAVE_EXPLICIT_BZERO -DHAVE_PATHCONF -DUSE_POLL -DMALLOC_0_RETURNS_NULL \77      -DUNIXCONN -D_CONST_X_STRING -DXTHREADS -DXUSE_MTSAFE_API78    CC := cc -O2 $(HAVE)79    80    all: $(addprefix /usr/lib/lib,$(addsuffix .a,Xau xcb X11 X11-xcb \81      Xext Xrender Xfixes Xi ICE SM Xt Xmu Xmuu Xpm Xaw7)) /usr/lib/libXaw.a \82      $(addprefix /usr/lib/pkgconfig/,$(addsuffix .pc,xau xcb x11 x11-xcb xext xrender xfixes \83      xi ice sm xt xmu xmuu xpm xaw7))84    85    # Each library's objects, built from its sources with its own flags.86    # $(call objects,LIB,SOURCES) names them; the pattern rules compile them.87    objects = $(patsubst $(S)/%.c,$(B)/$(1)/%.o,$(2))88    89    # Protocol headers and their pkg-config files, as xorgproto installs them;90    # Xpoll.h names musl's fd_set member.91    $(B)/xorgproto:92    >mkdir -p $(B) /usr/share/pkgconfig93    >cp -r $(S)/xorgproto-2026.1/include/X11 $(S)/xorgproto-2026.1/include/GL /usr/include/94    >sed 's/@USE_FDS_BITS@/fds_bits/' $(S)/xorgproto-2026.1/include/X11/Xpoll.h.in > $(I)/Xpoll.h95    >for pc in $(S)/xorgproto-2026.1/*.pc.in; do \96       sed -e 's,@prefix@,/usr,' -e 's,@includedir@,/usr/include,' -e 's,@datarootdir@,/usr/share,' \97         -e 's,@datadir@,/usr/share,' -e 's,@exec_prefix@,/usr,' -e 's,@libdir@,/usr/lib,' \98         $$pc > /usr/share/pkgconfig/$$(basename $$pc .in); done99    >touch $@100    101    # xtrans's configure finds fchown, and no sticky bit: Dolly has no modes.102    $(B)/xtrans: $(B)/xorgproto103    >mkdir -p $(I)/Xtrans104    >cp $(S)/xtrans-1.6.0/*.c $(S)/xtrans-1.6.0/*.h $(I)/Xtrans/105    >sed -e 's,@prefix@,/usr,' -e 's,@includedir@,/usr/include,' -e 's,@PACKAGE_VERSION@,1.6.0,' \106       -e 's,@datarootdir@,/usr/share,' -e 's,@datadir@,/usr/share,' -e 's,@fchown_define@,-DHAS_FCHOWN,' \107       -e 's,@sticky_bit_define@,,' $(S)/xtrans-1.6.0/xtrans.pc.in > /usr/share/pkgconfig/xtrans.pc108    >touch $@109    110    # xcbgen, the Python module, and the protocol descriptions it reads.111    XCBPY := /usr/lib/python3.14/site-packages112    $(B)/xcbproto: $(B)/xorgproto113    >mkdir -p /usr/share/xcb $(XCBPY)/xcbgen114    >cp $(S)/xcb-proto-1.17.0/src/*.xml /usr/share/xcb/115    >cp $(S)/xcb-proto-1.17.0/xcbgen/*.py $(XCBPY)/xcbgen/116    >touch $@117    118    # libXau.119    XAU := $(addprefix $(S)/libXau-1.0.12/,AuDispose.c AuFileName.c AuGetAddr.c AuGetBest.c \120      AuLock.c AuRead.c AuUnlock.c AuWrite.c)121    $(B)/Xau/%.o: $(S)/%.c $(B)/xorgproto122    >mkdir -p $(@D)123    >$(CC) -I$(S)/libXau-1.0.12/include -c $< -o $@124    /usr/lib/libXau.a: $(call objects,Xau,$(XAU))125    >cp $(S)/libXau-1.0.12/include/X11/Xauth.h $(I)/126    >ar rcs $@ $^127    128    # libxcb: the connection code and the core protocol, which c_client.py129    # writes from xproto.xml with the two extensions every client needs.130    XCB := $(S)/libxcb-1.17.0/src131    XCBGEN := $(B)/xcbgen132    /usr/share/xcb/%.xml: $(B)/xcbproto ;133    $(XCBGEN)/%.c: /usr/share/xcb/%.xml134    >mkdir -p $(@D)135    >cd $(@D) && python3 $(XCB)/c_client.py -c 'libxcb 1.17.0' -l 'X Version 11' -s 3 \136       -p $(XCBPY) $<137    XCB_GENERATED := xproto bigreq xc_misc138    $(B)/xcb/%.o: $(S)/%.c /usr/lib/libXau.a $(addprefix $(XCBGEN)/,$(addsuffix .c,$(XCB_GENERATED)))139    >mkdir -p $(@D)140    >$(CC) -DXCB_QUEUE_BUFFER_SIZE=16384 -I$(XCB) -I$(XCBGEN) -c $< -o $@141    $(B)/xcb/gen/%.o: $(XCBGEN)/%.c $(addprefix $(XCBGEN)/,$(addsuffix .c,$(XCB_GENERATED)))142    >mkdir -p $(@D)143    >$(CC) -I$(XCB) -I$(XCBGEN) -c $< -o $@144    /usr/lib/libxcb.a: $(call objects,xcb,$(addprefix $(XCB)/xcb_,$(addsuffix .c,auth conn ext in list out util xid))) \145      $(addprefix $(B)/xcb/gen/,$(addsuffix .o,$(XCB_GENERATED)))146    >mkdir -p /usr/include/xcb147    >cp $(XCB)/xcb.h $(XCB)/xcbext.h $(addprefix $(XCBGEN)/,$(addsuffix .h,$(XCB_GENERATED))) /usr/include/xcb/148    >ar rcs $@ $^149    150    # libX11 with its locale, input and output method modules linked in, as151    # configure builds it by default, and libX11-xcb. ks_tables.h is written152    # by makekeys, a program of the build, from the keysym headers.153    X11 := $(S)/libX11-1.8.13154    X11_CORE := $(filter-out %/reallocarray.c %/x11_xcb.c,$(wildcard $(X11)/src/*.c))155    X11_XIM := $(wildcard $(X11)/modules/im/ximcp/*.c)156    X11_SOURCES := $(X11_CORE) $(X11_XIM) $(wildcard $(X11)/src/xcms/*.c $(X11)/src/xkb/*.c) \157      $(filter-out %/XlcDL.c %/XlcSL.c,$(wildcard $(X11)/src/xlibi18n/*.c)) \158      $(wildcard $(X11)/modules/lc/*/*.c $(X11)/modules/om/generic/*.c)159    $(call objects,X11,$(X11_CORE) $(X11)/src/x11_xcb.c): TRANSPORT := -DX11_t -DTRANS_CLIENT160    $(call objects,X11,$(X11_XIM)): TRANSPORT := -DXIM_t -DTRANS_CLIENT161    X11_FLAGS := -I$(X11)/include -I$(X11)/include/X11 -I$(X11)/src -I$(X11)/src/xcms \162      -I$(X11)/src/xkb -I$(X11)/src/xlibi18n -I$(B)/X11 -D_BSD_SOURCE -DUSE_THREAD_SAFETY_CONSTRUCTOR \163      -DXCMS -DXLOCALE -DXKB -DXF86BIGFONT -DCOMPOSECACHE \164      -DX11_DATADIR='"/usr/share/X11"' -DXLOCALEDIR='"/usr/share/X11/locale"' \165      -DXLOCALELIBDIR='"/usr/lib/X11/locale"' -DXLOCALEDATADIR='"/usr/share/X11/locale"' \166      -DXERRORDB='"/usr/share/X11/XErrorDB"' -DXKEYSYMDB='"/usr/share/X11/XKeysymDB"' \167      -DXCMSDIR='"/usr/share/X11"' -DX11_LIBDIR='"/usr/lib/X11"'168    $(B)/X11/ks_tables.h: $(X11)/src/util/makekeys.c $(B)/xorgproto169    >mkdir -p $(@D)170    >sed -e 's/#undef XTHREADS/#define XTHREADS 1/' -e 's/#undef XUSE_MTSAFE_API/#define XUSE_MTSAFE_API 1/' \171       $(X11)/include/X11/XlibConf.h.in > $(X11)/include/X11/XlibConf.h172    >cc -O1 -I$(X11)/include $< -o $(B)/X11/makekeys173    >$(B)/X11/makekeys $(addprefix $(I)/,keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h) > $@174    $(B)/X11/%.o: $(S)/%.c $(B)/X11/ks_tables.h /usr/lib/libxcb.a175    >mkdir -p $(@D)176    >$(CC) $(X11_FLAGS) $(TRANSPORT) -c $< -o $@177    /usr/lib/libX11.a: $(call objects,X11,$(X11_SOURCES))178    >mkdir -p $(I)/extensions /usr/share/X11179    >cp $(addprefix $(X11)/include/X11/,ImUtil.h XKBlib.h Xcms.h Xlib-xcb.h Xlib.h Xlibint.h \180       Xlocale.h Xregion.h Xresource.h Xutil.h cursorfont.h) $(I)/181    >cp $(X11)/include/X11/XlibConf.h $(I)/182    >cp $(X11)/include/X11/extensions/XKBgeom.h $(I)/extensions/183    >cp $(X11)/src/XErrorDB /usr/share/X11/184    >ar rcs $@ $^185    /usr/lib/libX11-xcb.a: $(call objects,X11,$(X11)/src/x11_xcb.c)186    >ar rcs $@ $^187    188    # The extension libraries: each compiles its src directory but for the files189    # upstream's Makefile.am leaves out.190    EXT_FLAGS = -I$(S)/$(1)/include -I$(S)/$(1)/include/X11/extensions191    define extension192    $(B)/$(1)/%.o: $(S)/%.c /usr/lib/libX11.a $(2)193    >mkdir -p $$(@D)194    >$$(CC) $$(call EXT_FLAGS,$(1)) $(3) -c $$< -o $$@195    /usr/lib/$(word 1,$(subst -, ,$(1))).a: $$(call objects,$(1),$$(filter-out %/reallocarray.c %/XFreeLst.c,$$(wildcard $(S)/$(1)/src/*.c)))196    >mkdir -p $(I)/extensions197    >cp $(S)/$(1)/include/X11/extensions/*.h $(I)/extensions/198    >ar rcs $$@ $$^199    endef200    $(eval $(call extension,libXext-1.3.7))201    $(eval $(call extension,libXrender-0.9.12,/usr/lib/libXext.a))202    $(eval $(call extension,libXfixes-6.0.2,/usr/lib/libXext.a))203    $(eval $(call extension,libXi-1.8.3,/usr/lib/libXfixes.a))204    205    # The inter-client exchange and session management libraries over xtrans.206    $(B)/libICE-1.1.2/%.o: $(S)/%.c $(B)/xtrans $(B)/xorgproto207    >mkdir -p $(@D)208    >$(CC) -I$(S)/libICE-1.1.2/include -DICE_t -DTRANS_CLIENT -DTRANS_SERVER -c $< -o $@209    /usr/lib/libICE.a: $(call objects,libICE-1.1.2,$(wildcard $(S)/libICE-1.1.2/src/*.c))210    >mkdir -p $(I)/ICE211    >cp $(S)/libICE-1.1.2/include/X11/ICE/*.h $(I)/ICE/212    >ar rcs $@ $^213    $(B)/libSM-1.2.6/%.o: $(S)/%.c /usr/lib/libICE.a214    >mkdir -p $(@D)215    >$(CC) -I$(S)/libSM-1.2.6/include -c $< -o $@216    /usr/lib/libSM.a: $(call objects,libSM-1.2.6,$(filter-out %/sm_auth.c,$(wildcard $(S)/libSM-1.2.6/src/*.c)))217    >mkdir -p $(I)/SM218    >cp $(S)/libSM-1.2.6/include/X11/SM/*.h $(I)/SM/219    >ar rcs $@ $^220    221    # The X Toolkit Intrinsics. makestrs writes the string tables, StringDefs.h222    # and Shell.h from string.list.223    XT := $(S)/libXt-1.3.1224    XT_SEARCH := /usr/share/X11/%L/%T/%N%C%S:/usr/share/X11/%l/%T/%N%C%S:/usr/share/X11/%T/%N%C%S:/usr/share/X11/%L/%T/%N%S:/usr/share/X11/%l/%T/%N%S:/usr/share/X11/%T/%N%S225    $(B)/Xt/StringDefs.c: $(XT)/util/makestrs.c226    >mkdir -p $(@D)227    >cc -O1 $< -o $(B)/Xt/makestrs228    >cd $(@D) && ./makestrs -i $(XT) < $(XT)/util/string.list > StringDefs.c229    >cp $(@D)/StringDefs.h $(@D)/Shell.h $(XT)/include/X11/230    $(B)/Xt/%.o: $(S)/%.c $(B)/Xt/StringDefs.c /usr/lib/libSM.a /usr/lib/libX11.a231    >mkdir -p $(@D)232    >$(CC) -I$(XT)/include -I$(XT)/include/X11 -DXKB -DLIBXT_COMPILATION \233       -DXFILESEARCHPATHDEFAULT='"$(XT_SEARCH)"' -DERRORDB='"/usr/share/X11/XtErrorDB"' -c $< -o $@234    $(B)/Xt/gen/StringDefs.o: $(B)/Xt/StringDefs.c235    >mkdir -p $(@D)236    >$(CC) -I$(XT)/include -I$(XT)/include/X11 -c $< -o $@237    /usr/lib/libXt.a: $(call objects,Xt,$(wildcard $(XT)/src/*.c)) $(B)/Xt/gen/StringDefs.o238    >cp $(XT)/include/X11/*.h $(I)/239    >ar rcs $@ $^240    241    # Miscellaneous utilities, and Xmuu, the five of them that need no Xt.242    XMU := $(S)/libXmu-1.3.1243    $(B)/Xmu/%.o: $(S)/%.c /usr/lib/libXt.a /usr/lib/libXext.a244    >mkdir -p $(@D)245    >$(CC) -I$(XMU)/include -I$(XMU)/include/X11/Xmu -DBITMAPDIR='"/usr/include/X11/bitmaps"' -c $< -o $@246    /usr/lib/libXmu.a: $(call objects,Xmu,$(filter-out %/reallocarray.c,$(wildcard $(XMU)/src/*.c)))247    >mkdir -p $(I)/Xmu248    >cp $(XMU)/include/X11/Xmu/*.h $(I)/Xmu/249    >ar rcs $@ $^250    /usr/lib/libXmuu.a: $(call objects,Xmu,$(addprefix $(XMU)/src/,ClientWin.c CursorName.c DefErrMsg.c GetHost.c Lower.c))251    >ar rcs $@ $^252    253    # The pixmap library; compressed files are not read through a pipe.254    $(B)/Xpm/%.o: $(S)/%.c /usr/lib/libX11.a255    >mkdir -p $(@D)256    >$(CC) -I$(S)/libXpm-3.5.19/include/X11 -DNO_ZPIPE -c $< -o $@257    /usr/lib/libXpm.a: $(call objects,Xpm,$(wildcard $(S)/libXpm-3.5.19/src/*.c))258    >cp $(S)/libXpm-3.5.19/include/X11/xpm.h $(I)/259    >ar rcs $@ $^260    261    # The Athena widgets, version 7.262    XAW := $(S)/libXaw-1.0.16263    $(B)/Xaw/%.o: $(S)/%.c /usr/lib/libXmu.a /usr/lib/libXpm.a264    >mkdir -p $(@D)265    >$(CC) -I$(XAW)/include -DXAW7 -DPROJECT_ROOT='"/usr"' -c $< -o $@266    /usr/lib/libXaw7.a: $(call objects,Xaw,$(wildcard $(XAW)/src/*.c))267    >mkdir -p $(I)/Xaw268    >cp $(XAW)/include/X11/Xaw/*.h $(I)/Xaw/269    >ar rcs $@ $^270    /usr/lib/libXaw.a: /usr/lib/libXaw7.a271    >cp $< $@272    273    # pkg-config files as the configure scripts write them, with what a static274    # link needs: xcb and ICE take their sockets from sockets@0's client.275    # $(call pc,NAME,LIBRARY,VERSION,REQUIRES,LIBS)276    define pc277    /usr/lib/pkgconfig/$(1).pc: /usr/lib/lib$(2).a278    >mkdir -p $$(@D)279    >printf '%s\n' 'prefix=/usr' 'Name: $(1)' 'Description: $(1)' 'Version: $(3)' 'Requires: $(4)' \280       'Libs: -L/usr/lib -l$(2) $(5)' 'Cflags: -I/usr/include' > $$@281    endef282    $(eval $(call pc,xau,Xau,1.0.12,xproto))283    $(eval $(call pc,xcb,xcb,1.17.0,xau,-ldolly-sockets))284    $(eval $(call pc,x11,X11,1.8.13,xproto kbproto xcb))285    $(eval $(call pc,x11-xcb,X11-xcb,1.8.13,x11 xcb))286    $(eval $(call pc,xext,Xext,1.3.7,x11 xextproto))287    $(eval $(call pc,xrender,Xrender,0.9.12,x11 renderproto))288    $(eval $(call pc,xfixes,Xfixes,6.0.2,x11 fixesproto))289    $(eval $(call pc,xi,Xi,1.8.3,xext xfixes inputproto))290    $(eval $(call pc,ice,ICE,1.1.2,xproto,-ldolly-sockets))291    $(eval $(call pc,sm,SM,1.2.6,ice))292    $(eval $(call pc,xt,Xt,1.3.1,sm x11))293    $(eval $(call pc,xmu,Xmu,1.3.1,xt xext x11))294    $(eval $(call pc,xmuu,Xmuu,1.3.1,x11))295    $(eval $(call pc,xpm,Xpm,3.5.19,x11))296    $(eval $(call pc,xaw7,Xaw7,1.0.16,xmu xt xpm xext x11))297# One Make for every library would spend many minutes choosing its first298# jobs from scratch: the libraries go in four groups, each on the last.299SLOP make -j4 -f /tmp/x11/libs.mk /tmp/x11/build/xorgproto /tmp/x11/build/xtrans /tmp/x11/build/xcbproto300SLOP make -j4 -f /tmp/x11/libs.mk /usr/lib/libXau.a /usr/lib/libxcb.a301SLOP make -j4 -f /tmp/x11/libs.mk /usr/lib/libX11.a /usr/lib/libX11-xcb.a302SLOP make -j4 -f /tmp/x11/libs.mk303# The extension libraries GTK's X11 backend links beyond these: each compiles304# its src directory, as the others do, with a pkg-config file as theirs.305FILE /tmp/x11/xlibs.slop306    cd /tmp/x11307    for spec in libXrandr-1.5.5:Xrandr:1.5.5:x11_xext_xrender_randrproto libXdamage-1.1.7:Xdamage:1.1.7:x11_xfixes_damageproto \308        libXcomposite-0.4.7:Xcomposite:0.4.7:x11_xfixes_compositeproto libXinerama-1.1.6:Xinerama:1.1.6:x11_xext_xineramaproto \309        libXcursor-1.2.3:Xcursor:1.2.3:x11_xrender_xfixes; do310      source=${spec%%:*}; rest=${spec#*:}; name=${rest%%:*}; rest=${rest#*:}; version=${rest%%:*}311      requires=$(echo ${rest#*:} | tr _ ' ')312      mkdir -p build/$name313      for c in $source/src/*.c; do314        cc -O2 -DHAVE_XFIXES '-DICONDIR="/usr/share/icons"' '-DXCURSORPATH="~/.icons:/usr/share/icons:/usr/share/pixmaps"' \315          -I$source/include/X11/Xcursor -I$source/include -I$source/include/X11/extensions \316          -c $c -o build/$name/$(basename $c .c).o || exit 1317      done318      ar rcs /usr/lib/lib$name.a build/$name/*.o319      if test -d $source/include/X11/extensions; then cp $source/include/X11/extensions/*.h /usr/include/X11/extensions/320      else mkdir -p /usr/include/X11/Xcursor && cp $source/include/X11/Xcursor/Xcursor.h /usr/include/X11/Xcursor/; fi321      lower=$(echo $name | tr A-Z a-z)322      printf '%s\n' 'prefix=/usr' "Name: $lower" "Description: $lower" "Version: $version" "Requires: $requires" \323        "Libs: -L/usr/lib -l$name" 'Cflags: -I/usr/include' > /usr/lib/pkgconfig/$lower.pc324    done325SLOP slop /tmp/x11/xlibs.slop326SLOP CWD /tmp/x11 for source in */COPYING; do mkdir -p /usr/share/licenses/${source%%-[0-9]*} && cp $source /usr/share/licenses/${source%%-[0-9]*}/; done327SLOP mkdir -p /usr/share/licenses/xorgproto && cp /tmp/x11/xorgproto-2026.1/COPYING-* /usr/share/licenses/xorgproto/328329EXPORTS HEADER x11 /usr/include/X11330EXPORTS HEADER xcb /usr/include/xcb331EXPORTS LIB Xau /usr/lib/libXau.a332EXPORTS LIB xcb /usr/lib/libxcb.a333EXPORTS LIB X11 /usr/lib/libX11.a334EXPORTS LIB X11-xcb /usr/lib/libX11-xcb.a335EXPORTS LIB Xext /usr/lib/libXext.a336EXPORTS LIB Xrender /usr/lib/libXrender.a337EXPORTS LIB Xfixes /usr/lib/libXfixes.a338EXPORTS LIB Xi /usr/lib/libXi.a339EXPORTS LIB ICE /usr/lib/libICE.a340EXPORTS LIB SM /usr/lib/libSM.a341EXPORTS LIB Xt /usr/lib/libXt.a342EXPORTS LIB Xmu /usr/lib/libXmu.a343EXPORTS LIB Xmuu /usr/lib/libXmuu.a344EXPORTS LIB Xpm /usr/lib/libXpm.a345EXPORTS LIB Xaw7 /usr/lib/libXaw7.a346EXPORTS LIB Xaw /usr/lib/libXaw.a347EXPORTS LIB Xrandr /usr/lib/libXrandr.a348EXPORTS LIB Xdamage /usr/lib/libXdamage.a349EXPORTS LIB Xcomposite /usr/lib/libXcomposite.a350EXPORTS LIB Xinerama /usr/lib/libXinerama.a351EXPORTS LIB Xcursor /usr/lib/libXcursor.a352FILE /usr/lib/pkgconfig/xau.pc353FILE /usr/lib/pkgconfig/xcb.pc354FILE /usr/lib/pkgconfig/x11.pc355FILE /usr/lib/pkgconfig/x11-xcb.pc356FILE /usr/lib/pkgconfig/xext.pc357FILE /usr/lib/pkgconfig/xrender.pc358FILE /usr/lib/pkgconfig/xfixes.pc359FILE /usr/lib/pkgconfig/xi.pc360FILE /usr/lib/pkgconfig/ice.pc361FILE /usr/lib/pkgconfig/sm.pc362FILE /usr/lib/pkgconfig/xt.pc363FILE /usr/lib/pkgconfig/xmu.pc364FILE /usr/lib/pkgconfig/xmuu.pc365FILE /usr/lib/pkgconfig/xpm.pc366FILE /usr/lib/pkgconfig/xaw7.pc367FILE /usr/lib/pkgconfig/xrandr.pc368FILE /usr/lib/pkgconfig/xdamage.pc369FILE /usr/lib/pkgconfig/xcomposite.pc370FILE /usr/lib/pkgconfig/xinerama.pc371FILE /usr/lib/pkgconfig/xcursor.pc372FOLDER /usr/share/pkgconfig373FILE /usr/share/X11/XErrorDB374FOLDER /usr/share/licenses/xorgproto375FOLDER /usr/share/licenses/xtrans376FOLDER /usr/share/licenses/xcb-proto377FOLDER /usr/share/licenses/libXau378FOLDER /usr/share/licenses/libxcb379FOLDER /usr/share/licenses/libX11380FOLDER /usr/share/licenses/libXext381FOLDER /usr/share/licenses/libXrender382FOLDER /usr/share/licenses/libXfixes383FOLDER /usr/share/licenses/libXi384FOLDER /usr/share/licenses/libICE385FOLDER /usr/share/licenses/libSM386FOLDER /usr/share/licenses/libXt387FOLDER /usr/share/licenses/libXmu388FOLDER /usr/share/licenses/libXpm389FOLDER /usr/share/licenses/libXaw390FOLDER /usr/share/licenses/libXrandr391FOLDER /usr/share/licenses/libXdamage392FOLDER /usr/share/licenses/libXcomposite393FOLDER /usr/share/licenses/libXinerama394FOLDER /usr/share/licenses/libXcursor395