freebsd-skq/lib/ncurses/config.mk
Baptiste Daroussin 821aa63a09 ncurses: only keep the version with widechar support
Only keep the widechar version of ncurses as libncursesw.so.9

Keep the old name to avoid breaking the ABI compatibility (the non
widechar version libncurses.so.9 is not binary compatible with
libncursesw.so.9) since all ports and base are already only linking
against the widechar version we can simply remove libncurses.so.9

Since the .9 version only lived in the dev branch and never ended in a
release, it is simply removed and not added to any binary compat
package.

Add symlinks to keep build time compatibility for anyone linking against
-lncurses
2021-01-05 14:01:32 +01:00

46 lines
1.1 KiB
Makefile

# $FreeBSD$
# This Makefile is shared by libncurses, libform, libmenu, libpanel.
NCURSES_DIR= ${SRCTOP}/contrib/ncurses
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED -DENABLE_WIDEC
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
CFLAGS+= -I.
CFLAGS+= -I${.CURDIR:H}/ncurses
# for ${NCURSES_CFG_H}
CFLAGS+= -I${.CURDIR:H}/ncurses
CFLAGS+= -I${NCURSES_DIR}/include
CFLAGS+= -I${NCURSES_DIR}/ncurses
CFLAGS+= -Wall
CFLAGS+= -DNDEBUG
CFLAGS+= -DHAVE_CONFIG_H
# everyone needs this
.PATH: ${NCURSES_DIR}/include
# tools and directories
AWK?= awk
TERMINFODIR?= ${SHAREDIR}/misc
# Generate headers
ncurses_def.h: MKncurses_def.sh ncurses_defs
AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \
${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h
# Manual pages filter
MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
-e 's%@DATADIR@%/usr/share%g' \
-e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
-e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
-e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
-e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
-e 's%@TIC@%tic%g' \
-e 's%@INFOCMP@%infocmp%g'