Frotz Makefile

Joshua Root jmr at macports.org
Mon Feb 17 00:28:35 UTC 2020


On 2020-2-17 10:37 , Mark Brethen wrote:
> I found this in the Makefile for Frotz 2.51:
> 
>     # Since MacOS lacks pkg-config, pick CURSES_LDFLAGS that's known to work.
>     ifeq ($(UNAME_S),Darwin)
>         MACOS = yes
>         # On MACOS, curses is actually ncurses, but to get wide char support
>         # you need to define _XOPEN_SOURCE_EXTENDED
>         CURSES = curses
>         CFLAGS += -D_XOPEN_SOURCE_EXTENDED -DMACOS -I/opt/local/include \
>                 -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE=600
>         LDFLAGS += -L/opt/local/lib
>         CURSES_LDFLAGS += -lcurses
> 
> looks like it expects a macports ncurses install? Should I strip this out and set it with the portfile?

It might be best to depend on pkgconfig and patch the Makefile to use
it, as the comment implies is already done for other platforms.

- Josh


More information about the macports-dev mailing list