Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ versions "NCURSES_REENTRANT"

## Building on macOS

The stock ncurses libraries on macOS don't include the wide libraries. Thus the full ncurses version needs to be installed with [Homebrew](https://brew.sh/). Homebrew installs ncurses below ```/usr/local/opt/ncurses```, where the dub configuration will pick it up.
The stock ncurses libraries on macOS don't include the wide libraries. Thus the full ncurses version needs to be installed with [Homebrew](https://brew.sh/). Homebrew installs ncurses below ```/usr/local/opt/ncurses``` (macOS Intel) or ```/opt/homebrew/opt/ncurses``` (Apple Silicon), where the dub configuration will pick it up.

First install Homebrew using the instructions on the web site, then you can add the ncurses package with

Expand Down
3 changes: 2 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ targetType "sourceLibrary" # .di files only
targetName "ncurses-d"

# Howebrew installs libncurses here:
lflags "-L/usr/local/opt/ncurses/lib" platform="osx"
lflags "-L/usr/local/opt/ncurses/lib" platform="osx-x86_64"
lflags "-L/opt/homebrew/opt/ncurses/lib" platform="osx-aarch64"

configuration "minimal" {
libs "ncursesw"
Expand Down