1
0

Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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
  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. TARGET_CFLAGS+= -lgcc
  23. CONFIGURE_ENV+= ac_cv_linux_vers=2
  24. CONFIGURE_ARGS+= --without-cxx \
  25. --without-cxx-binding \
  26. --with-build-cc=${CC_FOR_BUILD} \
  27. --without-progs \
  28. --disable-termcap \
  29. --enable-symlinks \
  30. --without-ada \
  31. --with-shared \
  32. --with-termlib \
  33. --without-debug \
  34. --without-profile \
  35. --without-gpm \
  36. --without-manpages \
  37. --without-tests \
  38. --enable-overwrite \
  39. --with-terminfo-dirs=/usr/share/terminfo \
  40. --with-default-terminfo-dir=/usr/share/terminfo \
  41. --disable-big-core \
  42. --disable-home-terminfo \
  43. --without-rcs-ids \
  44. --enable-const
  45. ALL_TARGET:= libs
  46. INSTALL_TARGET:= install.libs install.data
  47. HOST_STYLE:= auto
  48. # use sth which does not exist
  49. HOST_ALL_TARGET:= progs
  50. HOST_INSTALL_TARGET:= install.includes install.progs
  51. HOST_CONFIGURE_ARGS+= --without-shared \
  52. --with-build-cc=${CC_FOR_BUILD} \
  53. --with-progs \
  54. --with-ticlib \
  55. --disable-tic-depends \
  56. --enable-symlinks \
  57. --without-manpages \
  58. --without-tests \
  59. --without-cxx \
  60. --without-cxx-binding \
  61. --without-gpm \
  62. --without-ada \
  63. --disable-termcap \
  64. --without-debug \
  65. --without-profile
  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. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  76. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  77. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  78. else
  79. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  80. for f in ansi dumb linux screen vt100 vt102 \
  81. vt220 xterm xterm-color xterm-xfree86; do \
  82. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  83. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  84. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  85. done
  86. endif
  87. include ${TOPDIR}/mk/host-bottom.mk
  88. include ${TOPDIR}/mk/pkg-bottom.mk