summaryrefslogtreecommitdiff
path: root/package/ncurses/Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-07 18:21:40 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-10 10:45:26 +0100
commit4d925af2857b24d3576b5804884fb006e1ab6504 (patch)
treed1b506bcce8fa742b790817659b904a25b1f327e /package/ncurses/Makefile
parent7e58edfad5318ab12b990099e220be91b47366c0 (diff)
ncurses: allow installing the full set of terminfo files
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Diffstat (limited to 'package/ncurses/Makefile')
-rw-r--r--package/ncurses/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile
index c1b142dff..60bab59af 100644
--- a/package/ncurses/Makefile
+++ b/package/ncurses/Makefile
@@ -16,6 +16,9 @@ PKG_SUBPKGS:= LIBNCURSES LIBNCURSES_DEV
PKGSD_LIBNCURSES_DEV:= development files for libncurses
PKGSC_LIBNCURSES_DEV:= devel
+PKG_FLAVOURS:= FULL_TERMINFO
+PKGFD_FULL_TERMINFO:= install the complete set of terminfo files as provided upstream
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
@@ -69,10 +72,13 @@ post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
rm -f ${WRKINST}/usr/lib/libcurses.so*
echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
# libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
- ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
${IDIR_LIBNCURSES}/usr/lib
+ifeq (${ADK_PACKAGE_NCURSES_FULL_TERMINFO},y)
+ ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
+ ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
+else
${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
for f in ansi dumb linux screen vt100 vt102 \
rxvt-unicode vt220 xterm xterm-color xterm-xfree86; do \
@@ -80,6 +86,7 @@ post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
done
+endif
libncurses-dev-install:
${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include