Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. HOST_STYLE:= auto
  50. # use sth which does not exist
  51. HOST_ALL_TARGET:= progs
  52. HOST_INSTALL_TARGET:= install.includes install.progs
  53. HOST_CONFIGURE_ARGS+= --without-shared \
  54. --with-build-cc=${CC_FOR_BUILD} \
  55. --with-progs \
  56. --with-ticlib \
  57. --disable-tic-depends \
  58. --enable-symlinks \
  59. --without-manpages \
  60. --without-tests \
  61. --without-cxx \
  62. --without-cxx-binding \
  63. --without-gpm \
  64. --without-ada \
  65. --disable-termcap \
  66. --without-debug \
  67. --without-profile
  68. libncurses-install:
  69. rm -rf ${WRKINST}/usr/lib/terminfo
  70. # this is installed as libncurses - make libcurses a "link"
  71. rm -f ${WRKINST}/usr/lib/libcurses.so*
  72. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  73. # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
  74. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  75. ${CP} ${WRKINST}/usr/lib/lib{tinfo,form,menu,ncurses,panel}.so* \
  76. ${IDIR_LIBNCURSES}/usr/lib
  77. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  78. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  79. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  80. else
  81. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  82. for f in ansi dumb linux screen vt100 vt102 \
  83. vt220 xterm xterm-color xterm-xfree86; do \
  84. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  85. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  86. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  87. done
  88. endif
  89. include ${TOPDIR}/mk/host-bottom.mk
  90. include ${TOPDIR}/mk/pkg-bottom.mk