# d2mac-linux: porting the Diablo II Mac executable to 32-bit Linux

> d2mac-linux ports the Diablo II 1.14d Mac executable to 32-bit Linux by converting its i386 Mach-O container to ELF and reimplementing imported Darwin, Carbon and AGL interfaces in Zig. The shim translates graphics to GLX and adapts threading, files and sockets. The author reports that the game reaches its menu and character creation.

- Type: Case study
- Targets: Binary · Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-06
- Original resource: <https://github.com/jaenster/d2mac-linux>
- Primary source: <https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/README.md>
- Catalog page: <https://awesomerea.org/resources/d2mac-linux-case/>
- Record JSON: <https://awesomerea.org/resources/d2mac-linux-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/d2mac-linux-case/index.md)

## Requirements & limits

- **Prerequisites:** A legitimate copy of the original Diablo II Mac client and its game data is required.
- **Prerequisites:** Execution needs a 32-bit-capable Linux userland, Mesa GL and an X server.
- **Limits:** Right-click handling and sound remain unimplemented.
- **License:** MIT.

## Primary sources

1. <https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/README.md>
2. <https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/scripts/README.md>
3. <https://github.com/jaenster/d2mac-linux/blob/313fa1c5b8c05c14f5aeebc05904fced222633d0/LICENSE>

## More in Games

- [DevilutionX: porting Diablo’s reconstructed engine](https://awesomerea.org/resources/devilutionx-case/index.md) · Case study
- [DiabloWeb: a WebAssembly browser port built on Devilution](https://awesomerea.org/resources/diabloweb-devilution-wasm-port-case/index.md) · Case study
- [Dusklight: a native Twilight Princess port built on the decompilation](https://awesomerea.org/resources/dusklight-twilight-princess-port-case/index.md) · Case study
- [Ghostship: a libultraship native port of Super Mario 64](https://awesomerea.org/resources/ghostship-sm64-port-case/index.md) · Case study
- [GoldenEye 007: an agent-assisted native port from a decompilation](https://awesomerea.org/resources/goldeneye-pc-port-case/index.md) · Case study
- [ico-pc: a native ICO port compiled from the PS2 decompilation](https://awesomerea.org/resources/ico-pc-port-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
