# Install mkhexgrid with Homebrew, MacPorts

Fully-configurable hex grid generator. Version 0.1.1 via Homebrew; verified from local package data. Also installable with macports: sudo port install mkhexgrid.

## Install

```sh
sudo av install brew:mkhexgrid
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mkhexgrid
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mkhexgrid
```

  Evidence: MacPorts ports tree: graphics/mkhexgrid/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mkhexgrid
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mkhexgrid>
- **Version:** 0.1.1
- **Source summary:** Fully-configurable hex grid generator
- **Homepage:** <https://www.nomic.net/~uckelman/mkhexgrid/>
- **Upstream docs:** <https://www.nomic.net/~uckelman/mkhexgrid/>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://www.nomic.net/~uckelman/mkhexgrid/releases/mkhexgrid-0.1.1.src.tar.bz2>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- mkhexgrid (cli)
- mkhexgrid (alias)

## Dependencies

- gd

## Build dependencies

- boost

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.1.1
- Local data: ok
- Upstream repository: https://www.nomic.net/~uckelman/mkhexgrid/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

mkhexgrid is a small command-line program by Joel Uckelman for generating configurable hexagonal grids, especially grids used for strategy games. The official page says it can create PNG, SVG, and PostScript output and can adjust line thickness, colors, center marks, coordinate styles, and coordinate placement.

### Project history

The project first released version 0.1.0 on August 6, 2006, with Windows and Linux binaries plus source packages. Version 0.1.1 followed on January 10, 2007, fixing several bugs and Mac OS X build issues.

### Adoption history

The official page announced FreeBSD Ports availability in December 2006 and recommended Fink for Mac OS X users. Homebrew and MacPorts later carried the package for users who wanted a scriptable hex-grid generator.

### How it is used

mkhexgrid reads grid parameters from a spec file or standard input and writes output to a named file or standard output. The reference manual documents options for output format, image size, rows, columns, grid color, coordinate format, coordinate origin, and center marks.

Its practical niche is generating repeatable printable or image-based hex maps without opening a graphical map editor.

### Why package nerds care

mkhexgrid is package-nerd interesting because it packages a very specific tabletop/strategy-game utility as a normal Unix command. It is small, source-archived, and useful in scripts that generate assets or print-ready grid sheets.

### Timeline

- 2006-08: mkhexgrid 0.1.0 initial release.
- 2006-12: Official news says mkhexgrid was added to FreeBSD Ports.
- 2007-01: mkhexgrid 0.1.1 released.

### Related projects

- mkhexgrid is related to strategy-game map tooling, tabletop hex maps, GD PNG generation, SVG, PostScript, FreeBSD Ports, Fink, Homebrew, and MacPorts.

### Sources

- <https://www.nomic.net/~uckelman/mkhexgrid/>
- <https://www.nomic.net/~uckelman/mkhexgrid/HISTORY>
- <https://www.nomic.net/~uckelman/mkhexgrid/README>
- <https://www.nomic.net/~uckelman/mkhexgrid/mkhexgrid.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mkhexgrid
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- MacPorts - mkhexgrid: normalized package name match | MacPorts ports tree: graphics/mkhexgrid/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [gd](https://pkg.so/brew/gd/) - Runtime dependency declared by Homebrew.
- [roll](https://pkg.so/brew/roll/) - Shares pkgdb curated category or tags: cli, games, tabletop.
- [rolldice](https://pkg.so/brew/rolldice/) - Shares pkgdb curated category or tags: cli, games, tabletop.
- [mame](https://pkg.so/brew/mame/) - Shares pkgdb curated category or tags: cli, games.
- [rom-tools](https://pkg.so/brew/rom-tools/) - Shares pkgdb curated category or tags: cli, games.
- [dosbox-x](https://pkg.so/brew/dosbox-x/) - Shares pkgdb curated category or tags: cli, games.
- [stockfish](https://pkg.so/brew/stockfish/) - Shares pkgdb curated category or tags: cli, games.
- [nethack](https://pkg.so/brew/nethack/) - Shares pkgdb curated category or tags: cli, games.
- [katago](https://pkg.so/brew/katago/) - Shares pkgdb curated category or tags: cli, games.
- [mapcrafter](https://pkg.so/brew/mapcrafter/) - Local package facts share a topical domain. Shared terms: cli, games, map, png.

## Combined YAML source

View the package source record on GitHub. [combined/mkhexgrid.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mkhexgrid.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
