Skip to content

Configure to work with macOS NCurses? #7

@iandol

Description

@iandol

Hi, ncurses comes with macOS, but to make use of it the naming is slightly different. In homebrew there is a rule that replaces lncursesw with lncurses:

inreplace %w[configure Makefile], "lncursesw", "lncurses"

But it would be better if the configure script could handle this platform detail automatically. Your configure script is a shell script so you could use something like:

PLATFORM=$(uname -s)
if [[ $PLATFORM = 'Darwin' ]]; then
  ...
fi

For the makefile, at least according to stack exchange:

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
  LDFLAGS+=-lncurses
else
  LDFLAGS+=-lncursesw
end

I can make a pull request if you want...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions