libports: add symlink from ncurses.h to curses.h

Serveral programms want to include ncurses.h rather than curses.h.
To keep them happy, we add simply add a symlink.

Fixes #286.
This commit is contained in:
Josef Söntgen 2012-06-06 13:34:14 +02:00 committed by Norman Feske
parent 838d867680
commit 84717b7bd4
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ src/lib/ncurses:
$(NCURSES_GEN_SYMLINKS):
$(VERBOSE)for i in $(NCURSES_SYMLINKED_INC); do \
ln -sf ../../$(CONTRIB_DIR)/$(NCURSES)/include/$$i include/ncurses/$$i; done
$(VERBOSE)ln -sf curses.h include/ncurses/ncurses.h
#
# Produce generated includes
@ -185,6 +186,7 @@ clean-ncurses: clean_ncurses_symlinks clean_ncurses_gen_files
clean_ncurses_symlinks:
$(VERBOSE)rm -f $(NCURSES_GEN_SYMLINKS)
$(VERBOSE)rm -f include/ncurses/ncurses.h
clean_ncurses_gen_files:
$(VERBOSE)rm -f $(NCURSES_GEN_FILES)