Makefile 3.0 KB

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