coldfire: add generic support for 54418
[openadk.git] / package / ncurses / Makefile
blob915d7f49d9e808df17a8c358239065a3396c50ab
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.4
8 PKG_RELEASE:= 1
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
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_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_CFLAGS+= -fPIC
72 HOST_CONFIGURE_ARGS+= --with-shared \
73 --with-build-cc="${HOST_CC}" \
74 --with-progs \
75 --with-ticlib \
76 --disable-tic-depends \
77 --enable-symlinks \
78 --without-manpages \
79 --without-tests \
80 --without-cxx \
81 --without-cxx-binding \
82 --without-gpm \
83 --without-ada \
84 --disable-termcap \
85 --without-debug \
86 --without-profile
88 libncurses-install:
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/
100 else
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; \
107 done
108 endif
110 include ${ADK_TOPDIR}/mk/host-bottom.mk
111 include ${ADK_TOPDIR}/mk/pkg-bottom.mk