|
root / base / xrdb
xrdb Plain Text 66 lines 2.4 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
59
60
61
62
63
64
65
#!/bin/sh
# Build script for xrdb (autotools, Template A + runtime cpp pin).
set -e
cd "$SRCDIR"

# MANDATORY libtool fix (Task 4a, 2026-07-22): see libXau/build.sh for the
# full explanation. Piggyback hammerhead onto the kopensolaris arm.
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:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

# xrdb pipes resource files through cpp at RUNTIME, not just build time.
# configure's AC_PATH_PROG probe would find Hammerhead's /usr/bin/cpp via
# PATH anyway, but pin it explicitly so the result doesn't depend on PATH
# search order across build hosts.
./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static \
    --with-cpp=/usr/bin/cpp

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# xrdb - X server resource database utility
# https://gitlab.freedesktop.org/xorg/app/xrdb
#
# hammerhead-xdm's Xsession/greeter uses xrdb to load
# /usr/local/lib/X11/xdm/Xresources onto the X server's RESOURCE_MANAGER so
# the xlogin greeter picks up the Zygaena teal branding + greeting instead of
# the default white box. See docs/roadmap/DESKTOP_XLIBRE_XDM_GREETER_PLAN.md.
#
# xrdb pipes resource files through a C preprocessor at RUNTIME (not just
# build time). configure's AC_PATH_PROG cpp probe searches
# $PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib,
# which would find Hammerhead's /usr/bin/cpp anyway, but build.sh pins
# --with-cpp=/usr/bin/cpp explicitly for a deterministic, host-independent
# result rather than relying on PATH search order.

[package]
name = "xrdb"
version = "1.2.3"
release = 1
description = "X server resource database utility (xdm greeter branding)"
url = "https://xorg.freedesktop.org/releases/individual/app/"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["libX11", "libXmu"]
build = ["libX11", "libXmu", "xorgproto", "util-macros"]

[[source]]
file = "xrdb-1.2.3.tar.xz"
urls = ["https://xorg.freedesktop.org/releases/individual/app/xrdb-1.2.3.tar.xz"]
checksum = "c88f560243278c896ce4fc92ae5a45a2b505a316ffa427fe55b02e5d5914c4e4"

[build]
parallel = true