Skip to content

Add macOS dependency setup script#5563

Merged
iorsh merged 3 commits intofontforge:masterfrom
micahstubbs:setup-mac-deps
Sep 27, 2025
Merged

Add macOS dependency setup script#5563
iorsh merged 3 commits intofontforge:masterfrom
micahstubbs:setup-mac-deps

Conversation

@micahstubbs
Copy link
Copy Markdown
Contributor

This PR adds a new script setup_mac_deps.sh that checks for all required and optional dependencies needed to build FontForge on macOS and offers to install missing ones via Homebrew.

Key Features of the New Dependency Checker Script:

Dependency Management:

  • The script checks for the presence of essential build tools (cmake, ninja, pkg-config, etc.), required libraries (freetype, glib, etc.), and optional but recommended packages (libspiro, giflib, etc.) for building FontForge. Missing dependencies are tracked and displayed to the user.
  • It includes functionality to install missing dependencies via Homebrew, with special handling for certain packages like gettext.

Platform and Tool Checks:

  • Ensures the script is run on macOS and verifies the installation of Homebrew and Xcode Command Line Tools, providing guidance for installation if they are missing.

User-Friendly Output:

  • Utilizes colored terminal output (e.g., red for errors, green for success) to enhance readability and user experience.
  • Provides clear instructions for resolving issues, such as installing Homebrew or Python packages like sphinx.

Type of change

  • New feature

Thanks

Thank you to the fontforge maintainers for such useful free software.

This script checks for all required and optional dependencies needed to
build FontForge on macOS and offers to install missing ones via Homebrew.

Features:
- Checks for Homebrew and Xcode Command Line Tools
- Verifies all build tools, libraries, and optional dependencies
- Includes Python version check and Sphinx documentation generator check
- Color-coded output for easy status identification
- Interactive installation of missing dependencies
- Provides build instructions after successful setup
@iorsh
Copy link
Copy Markdown
Contributor

iorsh commented May 25, 2025

Looks like a nice tool, but it seems to do much more than the minimum necessary to create a build environment. GTK+ is not used at the moment, and neither is xcode.

This should probably go to fontforge/contrib.

@iorsh
Copy link
Copy Markdown
Contributor

iorsh commented Sep 16, 2025

AI-assisted PR, doesn't seem to address its purpose. Closing as stale.

@micahstubbs, if you wish to reopen it, please attach screen recording which demonstrates its use.

@iorsh iorsh closed this Sep 16, 2025
@iorsh
Copy link
Copy Markdown
Contributor

iorsh commented Sep 27, 2025

Sorry, just checked the script on Monterey, and it works perfectly fine. My fault 🙏

@iorsh iorsh reopened this Sep 27, 2025
@iorsh iorsh merged commit 51df858 into fontforge:master Sep 27, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants