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
9 PKG_HASH
:= 6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159
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
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
))
34 ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY
),y
)
35 CONFIGURE_ARGS
+= --with-static
37 CONFIGURE_ARGS
+= --with-shared
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 \
58 --with-terminfo-dirs
=/usr
/share
/terminfo \
59 --with-default-terminfo-dir
=/usr
/share
/terminfo \
61 --disable-home-terminfo \
62 --disable-assertions \
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
72 HOST_CONFIGURE_ARGS
+= --with-shared \
73 --with-build-cc
="${HOST_CC}" \
76 --disable-tic-depends \
81 --without-cxx-binding \
89 rm -rf
${WRKINST}/usr
/lib
/terminfo
90 # this is installed as libncurses - make libcurses a "link"
91 rm -f
${WRKINST}/usr
/lib
/libcurses.so
*
92 echo
'GROUP(-lncurses)' >${WRKINST}/usr
/lib
/libcurses.so
93 # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
94 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr
/lib
95 ${CP} ${WRKINST}/usr
/lib
/lib
{tinfo
,form
,menu
,ncurses
,panel
}.so
* \
96 ${IDIR_LIBNCURSES}/usr
/lib
97 ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y
)
98 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr
/share
99 ${CP} ${WRKINST}/usr
/share
/terminfo
${IDIR_LIBNCURSES}/usr
/share
/
101 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr
/share
/terminfo
/
102 for f in ansi dumb linux screen vt100 vt102 \
103 vt220 xterm xterm-color xterm-xfree86
; do \
104 ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr
/share
/terminfo
/$${f
:0:1}; \
105 ${INSTALL_DATA} ${WRKINST}/usr
/share
/terminfo
/*/$$f \
106 ${IDIR_LIBNCURSES}/usr
/share
/terminfo
/$${f
:0:1}/$$f; \
110 include ${ADK_TOPDIR}/mk
/host-bottom.mk
111 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk