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
|
#!/bin/sh
# Build script for picom (Meson, Template B). RISKY per task brief.
#
# xrender backend ONLY: -Dopengl=false (no Mesa/GL on Hammerhead) skips the
# epoxy dependency entirely (src/meson.build only calls
# `dependency('epoxy')` inside `if get_option('opengl')`). -Ddbus=false
# skips dbus-1 (not needed for a plain compositor).
#
# picom's src/meson.build unconditionally requires several xcb-util family
# pkg-config modules that were NOT yet in zports: xcb-image, xcb-renderutil,
# xcb-util (base). Added as base/xcb-util, base/xcb-util-image,
# base/xcb-util-renderutil (small fd.o autotools ports, built first).
# It also does `cc.has_header('uthash.h')` - not shipped anywhere in the
# tree, so added base/uthash (header-only, build-dep only).
set -e
cd "$SRCDIR"
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -Wl,-R,$PREFIX/lib"
meson setup build \
--prefix="$PREFIX" \
--libdir=lib \
--buildtype=release \
-Ddefault_library=shared \
-Dopengl=false \
-Ddbus=false \
-Dwith_docs=false \
-Dunittest=false
ninja -C build -j${JOBS:-1}
DESTDIR="$PKGDIR" ninja -C build install
# picom - X11 compositor (xrender backend only - no OpenGL/Mesa on Hammerhead)
# https://github.com/yshui/picom
[package]
name = "picom"
version = "13"
release = 1
description = "X11 compositor (xrender backend)"
url = "https://github.com/yshui/picom"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"
[dependencies]
runtime = ["libconfig", "libev", "pcre2", "pixman", "libX11", "libxcb", "xcb-util", "xcb-util-image", "xcb-util-renderutil", "libXext", "libXrender", "libXfixes", "libXdamage", "libXcomposite", "libXrandr"]
build = ["libconfig", "libev", "pcre2", "pixman", "libX11", "libxcb", "xcb-util", "xcb-util-image", "xcb-util-renderutil", "libXext", "libXrender", "libXfixes", "libXdamage", "libXcomposite", "libXrandr", "uthash"]
[[source]]
file = "picom-13.tar.gz"
urls = ["https://github.com/yshui/picom/archive/refs/tags/v13.tar.gz"]
checksum = "db9791a54255742c924ef82a6a882042636d61de0fa61bc14c5e56279cf5791c"
[build]
parallel = true
|