spmenu-wiki/Using spmenu on macOS.md

36 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

# Using spmenu on macOS
2023-06-04 22:20:27 +02:00
**NOTE: This article is out of date and should no longer be considered accurate
information. Read at your own risk.**
2023-05-09 19:37:40 +02:00
spmenu (sort of) supports macOS. This is done through an X11 implementation for
macOS called [XQuartz](https://www.xquartz.org/). It requires some extra effort
however.
2023-05-09 19:37:40 +02:00
## Install Homebrew
2023-05-09 19:37:40 +02:00
Start by installing Homebrew (the package manager) on your Mac. From there run:
`brew install libxft libxinerama xquartz libconfig libx11 freetype`. Make sure
Xquartz is set up and functional before proceeding.
2023-05-09 19:37:40 +02:00
## Editing the buildconf
2023-05-09 19:37:40 +02:00
**NOTE: The following instructions only apply to users of spmenu 1.0 and
greater. Previous versions require a significant amount of work to get
running.**
2023-05-09 19:37:40 +02:00
The buildconf is just a shell script that the build script (build.sh) reads. So
if we want to append any options we simply edit this file. First we need to set
`PREFIX` to `/usr/local` instead of the default `/usr`. This is because Apple
as of macOS 10.15 Catalina no longer allows us to write to `/usr/bin` and
`/usr/share`. This avoids any `Permission denied` errors you may get (yes, even
with sudo)
2023-05-09 19:37:40 +02:00
Now we need to set `pango=false`, `pangoxft=false`, `imlib2=false` and
`openssl=false`. Currently, these features are **not supported** on macOS.
[Should've installed a better operating system, bud.](https://archlinux.org)
2023-05-09 19:37:40 +02:00
## Compiling and installing
2023-05-09 19:37:40 +02:00
Now that we've edited our buildconf, we can simply run `sudo ./build.sh`.