This is an automation-friendly packaging of the XQuartz 2.8.1 release with the following modifications:
- fixes broken
pkg-config
chain (some.pc
files were missing in the release) - only includes the
/opt/X11
subdirectory, does not mess with system settings - adds
/opt/X11/libexec/postinstall
script to create X11 symlinks (last lines from the installer packaging script in the release). It is optional, supports legacy scripts that expect/usr/X11
to exist. - adds
/opt/X11/libexec/pkg-config
which uses/opt/X11
prefix. It is intentionally not placed inbin
such that it does not confuse any existingpkg-config
installations. To make it part of XQuartz usesudo ln -s ../libexec/pkg-config /opt/X11/bin/pkg-config
. If you use any otherpkg-config
add/opt/X11/lib/pkgconfig
toPKG_CONFIG_PATH
instead.
The actual XQuartz binary content is identical to the release.
Suggested installation:
curl -sSL https://github.com/R-macos/XQuartz/releases/download/XQuartz-2.8.1/XQuartz-2.8.1.tar.xz \
| sudo tar fxj - -C / && sudo sh /opt/X11/libexec/postinstall