Makefile 3.2 KB

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