Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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:= 2
  7. PKG_MD5SUM:= 8cb9c412e5f2d96bc6f459aa8c6282a1
  8. PKG_DESCR:= a 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. PKG_FLAVOURS_LIBNCURSES:= FULL_TERMINFO
  16. PKGFD_FULL_TERMINFO:= install the complete set of terminfo files as provided upstream
  17. include ${TOPDIR}/mk/host.mk
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call HOST_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE}))
  20. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. TARGET_CFLAGS+= -lgcc
  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. --without-debug \
  32. --without-profile \
  33. --without-gpm \
  34. --without-manpages \
  35. --without-tests \
  36. --enable-overwrite \
  37. --with-terminfo-dirs=/usr/share/terminfo \
  38. --with-default-terminfo-dir=/usr/share/terminfo \
  39. --disable-big-core \
  40. --disable-home-terminfo \
  41. --without-rcs-ids \
  42. --enable-const
  43. ALL_TARGET:= libs
  44. INSTALL_TARGET:= install.libs install.data
  45. # use sth which does not exist
  46. HOST_ALL_TARGET:= progs
  47. HOST_INSTALL_TARGET:= install.includes install.progs
  48. HOST_CONFIGURE_ARGS+= --without-shared \
  49. --with-build-cc=${CC_FOR_BUILD} \
  50. --with-progs \
  51. --with-ticlib \
  52. --disable-tic-depends \
  53. --enable-symlinks \
  54. --without-manpages \
  55. --without-tests \
  56. --without-cxx \
  57. --without-cxx-binding \
  58. --without-gpm \
  59. --without-ada \
  60. --disable-termcap \
  61. --without-debug \
  62. --without-profile
  63. libncurses-hostinstall:
  64. ${CP} ${HOST_WRKINST}/usr/bin/* ${STAGING_HOST_DIR}/usr/bin
  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{form,menu,ncurses,panel}.so* \
  73. ${IDIR_LIBNCURSES}/usr/lib
  74. for ti in rxvt rxvt-unicode; do \
  75. TERMINFO=${WRKINST}/usr/share/terminfo \
  76. tic -x ./files/$$ti.ti; \
  77. done
  78. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  79. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  80. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  81. else
  82. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  83. for f in ansi dumb linux screen vt100 vt102 \
  84. rxvt rxvt-unicode vt220 xterm xterm-color xterm-xfree86; do \
  85. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  86. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  87. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  88. done
  89. endif
  90. include ${TOPDIR}/mk/host-bottom.mk
  91. include ${TOPDIR}/mk/pkg-bottom.mk