|
root / base / libX11
libX11 Plain Text 59 lines 2.0 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
# Build script for libX11 (autotools, Template A + custom). LARGE build.
# Needs python3 (xcb-proto's xcbgen) for some codegen paths; --enable-xcms
# --enable-xkb per Task 4a brief. illumos socket symbols (Xtrans) may need
# -lsocket -lnsl - added defensively; harmless no-op if unused.
set -e
cd "$SRCDIR"

# GOTCHA (found 2026-07-22, Task 4a): this release's libtool-generated
# `configure` has no solaris/illumos/hammerhead arm in its dynamic-linker
# detection `case $host_os in ...` block - unmatched OS falls through to
# `*) dynamic_linker=no ;;` which forces can_build_shared=no (static-only
# .a, no .so). Patch the case arm to add hammerhead* alongside the generic
# glibc/ELF branch (same SONAME/.so.N convention applies).
if [ -f configure ]; then
    sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure
fi

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib -lsocket -lnsl"
export PYTHON=/usr/local/bin/python3

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static \
    --enable-xcms \
    --enable-xkb

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# libX11 - Core X11 protocol client library
# https://gitlab.freedesktop.org/xorg/lib/libx11

[package]
name = "libX11"
version = "1.8.13"
release = 1
description = "Core X11 protocol client library"
url = "https://xorg.freedesktop.org/releases/individual/lib/"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["libxcb", "libXau", "libXdmcp"]
build = ["libxcb", "libXau", "libXdmcp", "xtrans", "xorgproto", "xcb-proto"]

[[source]]
file = "libX11-1.8.13.tar.xz"
urls = ["https://xorg.freedesktop.org/releases/individual/lib/libX11-1.8.13.tar.xz"]
checksum = "69606f485c2c07c14ef64f75b7bb326d48587af33795d9ab3e607c0b5f94f11c"

[build]
parallel = true