ncurses: update to 6.1
[openadk.git] / package / ncurses / Makefile
blobdc6e02a15edaf27d1dfeeaba8bb14b0e3113737e
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= ncurses
7 PKG_VERSION:= 6.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17
10 PKG_DESCR:= terminal handling library
11 PKG_SECTION:= libs/misc
12 PKG_BUILDDEP:= ncurses-host
13 PKG_URL:= http://www.gnu.org/software/ncurses/
14 PKG_SITES:= ${MASTER_SITE_GNU:=ncurses/}
15 PKG_LIBNAME:= libncurses
16 PKG_OPTS:= dev
18 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
20 PKG_FLAVOURS_LIBNCURSES:= FULL_TERMINFO
21 PKGFD_FULL_TERMINFO:= install the complete set of terminfo files as provided upstream
23 include ${ADK_TOPDIR}/mk/host.mk
24 include ${ADK_TOPDIR}/mk/package.mk
26 $(eval $(call HOST_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE}))
27 $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
29 ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
30 TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
31 TARGET_LDFLAGS:=$(filter-out -static,$(TARGET_LDFLAGS))
32 endif
34 ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
35 CONFIGURE_ARGS+= --with-static
36 else
37 CONFIGURE_ARGS+= --with-shared
38 endif
40 CONFIGURE_ENV+= ac_cv_linux_vers=2
41 CONFIGURE_ARGS+= --without-cxx \
42 --without-cxx-binding \
43 --with-build-cc="${HOST_CC}" \
44 --with-pkg-config-libdir=/usr/lib/pkgconfig \
45 --without-progs \
46 --disable-termcap \
47 --enable-symlinks \
48 --without-ada \
49 --without-normal \
50 --enable-pc-files \
51 --with-termlib \
52 --without-debug \
53 --without-profile \
54 --without-gpm \
55 --without-manpages \
56 --without-tests \
57 --enable-overwrite \
58 --with-terminfo-dirs=/usr/share/terminfo \
59 --with-default-terminfo-dir=/usr/share/terminfo \
60 --disable-big-core \
61 --disable-home-terminfo \
62 --disable-assertions \
63 --without-rcs-ids \
64 --enable-const
65 ALL_TARGET:= libs
66 INSTALL_TARGET:= install.libs install.data
68 # use sth which does not exist
69 HOST_ALL_TARGET:= progs
70 HOST_INSTALL_TARGET:= install.includes install.progs
71 HOST_CONFIGURE_ARGS+= --without-shared \
72 --with-build-cc="${HOST_CC}" \
73 --with-progs \
74 --with-ticlib \
75 --disable-tic-depends \
76 --enable-symlinks \
77 --without-manpages \
78 --without-tests \
79 --without-cxx \
80 --without-cxx-binding \
81 --without-gpm \
82 --without-ada \
83 --disable-termcap \
84 --without-debug \
85 --without-profile
87 libncurses-install:
88 rm -rf ${WRKINST}/usr/lib/terminfo
89 # this is installed as libncurses - make libcurses a "link"
90 rm -f ${WRKINST}/usr/lib/libcurses.so*
91 echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
92 # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
93 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
94 ${CP} ${WRKINST}/usr/lib/lib{tinfo,form,menu,ncurses,panel}.so* \
95 ${IDIR_LIBNCURSES}/usr/lib
96 ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
97 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
98 ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
99 else
100 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
101 for f in ansi dumb linux screen vt100 vt102 \
102 vt220 xterm xterm-color xterm-xfree86; do \
103 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
104 ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
105 ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
106 done
107 endif
109 include ${ADK_TOPDIR}/mk/host-bottom.mk
110 include ${ADK_TOPDIR}/mk/pkg-bottom.mk