Makefile 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= ncurses
  5. PKG_VERSION:= 5.9
  6. PKG_RELEASE:= 5
  7. PKG_MD5SUM:= 8cb9c412e5f2d96bc6f459aa8c6282a1
  8. PKG_DESCR:= terminal handling library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= ncurses-host
  11. PKG_URL:= http://www.gnu.org/software/ncurses/
  12. PKG_SITES:= ${MASTER_SITE_GNU:=ncurses/}
  13. PKG_LIBNAME:= libncurses
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_FLAVOURS_LIBNCURSES:= FULL_TERMINFO
  17. PKGFD_FULL_TERMINFO:= install the complete set of terminfo files as provided upstream
  18. include ${TOPDIR}/mk/host.mk
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call HOST_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE}))
  21. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. CONFIGURE_ENV+= ac_cv_linux_vers=2
  23. CONFIGURE_ARGS+= --without-cxx \
  24. --without-cxx-binding \
  25. --with-build-cc=${CC_FOR_BUILD} \
  26. --without-progs \
  27. --disable-termcap \
  28. --enable-symlinks \
  29. --without-ada \
  30. --with-shared \
  31. --with-termlib \
  32. --without-debug \
  33. --without-profile \
  34. --without-gpm \
  35. --without-manpages \
  36. --without-tests \
  37. --enable-overwrite \
  38. --with-terminfo-dirs=/usr/share/terminfo \
  39. --with-default-terminfo-dir=/usr/share/terminfo \
  40. --disable-big-core \
  41. --disable-home-terminfo \
  42. --without-rcs-ids \
  43. --enable-const
  44. ALL_TARGET:= libs
  45. INSTALL_TARGET:= install.libs install.data
  46. HOST_STYLE:= auto
  47. # use sth which does not exist
  48. HOST_ALL_TARGET:= progs
  49. HOST_INSTALL_TARGET:= install.includes install.progs
  50. HOST_CONFIGURE_ARGS+= --without-shared \
  51. --with-build-cc=${CC_FOR_BUILD} \
  52. --with-progs \
  53. --with-ticlib \
  54. --disable-tic-depends \
  55. --enable-symlinks \
  56. --without-manpages \
  57. --without-tests \
  58. --without-cxx \
  59. --without-cxx-binding \
  60. --without-gpm \
  61. --without-ada \
  62. --disable-termcap \
  63. --without-debug \
  64. --without-profile
  65. libncurses-install:
  66. rm -rf ${WRKINST}/usr/lib/terminfo
  67. # this is installed as libncurses - make libcurses a "link"
  68. rm -f ${WRKINST}/usr/lib/libcurses.so*
  69. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  70. # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
  71. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  72. ${CP} ${WRKINST}/usr/lib/lib{tinfo,form,menu,ncurses,panel}.so* \
  73. ${IDIR_LIBNCURSES}/usr/lib
  74. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  75. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  76. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  77. else
  78. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  79. for f in ansi dumb linux screen vt100 vt102 \
  80. vt220 xterm xterm-color xterm-xfree86; do \
  81. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  82. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  83. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  84. done
  85. endif
  86. include ${TOPDIR}/mk/host-bottom.mk
  87. include ${TOPDIR}/mk/pkg-bottom.mk