pkgsrc/devel/ncurses/buildlink3.mk
adam 6abd5459f9 Changes 5.8:
Interface changes
* turn on _XOPEN_CURSES definition in curses.h.
* change _nc_has_mouse to has_mouse, reflect its use in C++ and Ada95.
* add is_pad and is_subwin functions for opaque access to the WINDOW structure.
* add tiparm, based on review of X/Open Curses Issue 7.

Library Improvements
* add a terminal driver for Windows console, which supports a MinGW port to
  Windows.
* add extended functions which specify the SCREEN pointer for several curses
  functions which use the global SP.
* improve the NCURSES_NO_UTF8_ACS feature by adding a check for an extended
  terminfo capability U8.
* improve performance of tigetstr, etc., by using hashing code from tic.
* add WACS_xxx definitions to wide-character configuration for thick- and
  double-lines.
* modify init_pair to allow caller to create extra color pairs beyond the
  color_pairs limit, which use default colors.

Improvements to Programs
* add tabs program.
* modify tic's -I/-C dump to reformat acsc strings into canonical form (sorted,
  unique mapping).
* add checks in tic for inconsistent cursor-movement controls, and for
  inconsistent printer-controls.
* add special case to _nc_infotocap (used by tic and infocmp) to recognize the
  setaf/setab strings from xterm+256color and xterm+88color, and provide a
  reduced version which works with termcap.
2011-02-28 11:02:46 +00:00

47 lines
1.6 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.37 2011/02/28 11:02:46 adam Exp $
BUILDLINK_TREE+= ncurses
.if !defined(NCURSES_BUILDLINK3_MK)
NCURSES_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ncurses+= ncurses>=5.3nb1
BUILDLINK_ABI_DEPENDS.ncurses+= ncurses>=5.4nb1
BUILDLINK_PKGSRCDIR.ncurses?= ../../devel/ncurses
BUILDLINK_LIBNAME.ncurses= ncurses
BUILDLINK_LDADD.ncurses?= ${BUILDLINK_LIBNAME.ncurses:S/^/-l/:S/^-l$//}
# Many packages expect the ncurses headers and libraries to be usable as
# <curses.h> and -lcurses and they often only look in include/ rather than
# some properly written autoconf macros which also try to pick up
# ncurses/ncurses.h.
#
BUILDLINK_TARGETS+= buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h
BUILDLINK_TRANSFORM+= l:curses:${BUILDLINK_LIBNAME.ncurses}
BUILDLINK_INCDIRS.ncurses+= include/ncurses
.PHONY: buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h
buildlink-ncurses-curses-h:
${RUN} \
src=${BUILDLINK_PREFIX.ncurses}"/include/ncurses/curses.h"; \
dest=${BUILDLINK_DIR}"/include/curses.h"; \
if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
${ECHO_BUILDLINK_MSG} "Linking ncurses/curses.h -> curses.h."; \
${MKDIR} `${DIRNAME} "$$dest"`; \
${LN} -s "$$src" "$$dest"; \
fi
buildlink-ncurses-ncurses-h:
${RUN} \
src=${BUILDLINK_PREFIX.ncurses}"/include/ncurses/ncurses.h"; \
dest=${BUILDLINK_DIR}"/include/ncurses.h"; \
if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
${ECHO_BUILDLINK_MSG} "Linking ncurses/ncurses.h -> ncurses.h.";\
${MKDIR} `${DIRNAME} "$$dest"`; \
${LN} -s "$$src" "$$dest"; \
fi
.endif # NCURSES_BUILDLINK3_MK
BUILDLINK_TREE+= -ncurses