Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/misc
  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. --without-normal \
  31. --with-shared \
  32. --enable-pc-files \
  33. --with-termlib \
  34. --without-debug \
  35. --without-profile \
  36. --without-gpm \
  37. --without-manpages \
  38. --without-tests \
  39. --enable-overwrite \
  40. --with-terminfo-dirs=/usr/share/terminfo \
  41. --with-default-terminfo-dir=/usr/share/terminfo \
  42. --disable-big-core \
  43. --disable-home-terminfo \
  44. --disable-assertions \
  45. --without-rcs-ids \
  46. --enable-const
  47. ALL_TARGET:= libs
  48. INSTALL_TARGET:= install.libs install.data
  49. # use sth which does not exist
  50. HOST_ALL_TARGET:= progs
  51. HOST_INSTALL_TARGET:= install.includes install.progs
  52. HOST_CONFIGURE_ARGS+= --without-shared \
  53. --with-build-cc=${CC_FOR_BUILD} \
  54. --with-progs \
  55. --with-ticlib \
  56. --disable-tic-depends \
  57. --enable-symlinks \
  58. --without-manpages \
  59. --without-tests \
  60. --without-cxx \
  61. --without-cxx-binding \
  62. --without-gpm \
  63. --without-ada \
  64. --disable-termcap \
  65. --without-debug \
  66. --without-profile
  67. libncurses-install:
  68. rm -rf ${WRKINST}/usr/lib/terminfo
  69. # this is installed as libncurses - make libcurses a "link"
  70. rm -f ${WRKINST}/usr/lib/libcurses.so*
  71. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  72. # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
  73. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  74. ${CP} ${WRKINST}/usr/lib/lib{tinfo,form,menu,ncurses,panel}.so* \
  75. ${IDIR_LIBNCURSES}/usr/lib
  76. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  77. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  78. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  79. else
  80. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  81. for f in ansi dumb linux screen vt100 vt102 \
  82. vt220 xterm xterm-color xterm-xfree86; do \
  83. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  84. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  85. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  86. done
  87. endif
  88. include ${TOPDIR}/mk/host-bottom.mk
  89. include ${TOPDIR}/mk/pkg-bottom.mk