2017-08-08 20:38:21 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2017/08/08 18:38:21 spz Exp $
|
2006-10-13 20:07:49 +02:00
|
|
|
|
2017-08-08 20:38:21 +02:00
|
|
|
PKGREVISION= 3
|
2006-10-13 20:07:49 +02:00
|
|
|
.include "../../devel/ncurses/Makefile.common"
|
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/ncurses/ncursesw/}
|
|
|
|
COMMENT= Wide character CRT screen handling and optimization package
|
|
|
|
|
|
|
|
PATCHDIR= ${.CURDIR}/../../devel/ncurses/patches
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../devel/ncurses/distinfo
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-widec
|
2014-09-16 11:48:41 +02:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/ncursesw
|
2006-10-13 20:07:49 +02:00
|
|
|
|
2007-09-14 01:13:47 +02:00
|
|
|
INSTALLATION_DIRS+= include/ncursesw
|
2014-09-16 11:48:41 +02:00
|
|
|
INSTALLATION_DIRS+= bin
|
2007-10-30 06:33:07 +01:00
|
|
|
INSTALLATION_DIRS+= lib
|
2007-09-14 01:13:47 +02:00
|
|
|
|
2006-10-13 20:07:49 +02:00
|
|
|
BUILD_TARGET= libs
|
|
|
|
|
2010-07-26 07:47:45 +02:00
|
|
|
SUBST_CLASSES+= includes
|
|
|
|
SUBST_MESSAGE.includes= Fixing include paths for ncurses headers.
|
|
|
|
SUBST_STAGE.includes= post-build
|
|
|
|
SUBST_FILES.includes= include/curses.h
|
2011-02-28 12:02:46 +01:00
|
|
|
SUBST_SED.includes= -e 's,<ncurses_dll\.h>,<ncurses/ncurses_dll\.h>,'
|
|
|
|
SUBST_SED.includes+= -e 's,<unctrl\.h>,<ncurses/unctrl\.h>,'
|
2010-07-26 07:47:45 +02:00
|
|
|
|
2006-10-13 20:07:49 +02:00
|
|
|
do-install:
|
2014-09-16 11:48:41 +02:00
|
|
|
cd ${WRKSRC}/include && \
|
|
|
|
${MAKE_ENV} ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} install
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/misc/ncurses-config ${DESTDIR}${PREFIX}/bin/ncursesw${NC_VERS:R}-config
|
2016-12-19 00:30:34 +01:00
|
|
|
for LIB in gnuform gnumenu ncurses++ ncurses gnupanel; do \
|
2006-10-13 20:07:49 +02:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
2007-10-30 06:33:07 +01:00
|
|
|
${WRKSRC}/lib/lib$${LIB}w.la ${DESTDIR}${PREFIX}/lib; \
|
2006-10-13 20:07:49 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
BUILDLINK_API_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*}
|
|
|
|
BUILDLINK_ABI_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*}
|
|
|
|
USE_NCURSES= yes
|
|
|
|
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|