Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= ncurses
  5. PKG_VERSION:= 5.9
  6. PKG_RELEASE:= 5
  7. PKG_HASH:= 9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b
  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 ${ADK_TOPDIR}/mk/host.mk
  19. include ${ADK_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. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  23. CONFIGURE_ARGS+= --with-static
  24. else
  25. CONFIGURE_ARGS+= --with-shared
  26. endif
  27. CONFIGURE_ENV+= ac_cv_linux_vers=2 \
  28. PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig
  29. CONFIGURE_ARGS+= --without-cxx \
  30. --without-cxx-binding \
  31. --with-build-cc=${HOST_CC} \
  32. --without-progs \
  33. --disable-termcap \
  34. --enable-symlinks \
  35. --without-ada \
  36. --without-normal \
  37. --enable-pc-files \
  38. --with-termlib \
  39. --without-debug \
  40. --without-profile \
  41. --without-gpm \
  42. --without-manpages \
  43. --without-tests \
  44. --enable-overwrite \
  45. --with-terminfo-dirs=/usr/share/terminfo \
  46. --with-default-terminfo-dir=/usr/share/terminfo \
  47. --disable-big-core \
  48. --disable-home-terminfo \
  49. --disable-assertions \
  50. --without-rcs-ids \
  51. --enable-const
  52. ALL_TARGET:= libs
  53. INSTALL_TARGET:= install.libs install.data
  54. # use sth which does not exist
  55. HOST_ALL_TARGET:= progs
  56. HOST_INSTALL_TARGET:= install.includes install.progs
  57. HOST_CONFIGURE_ARGS+= --without-shared \
  58. --with-build-cc=${HOST_CC} \
  59. --with-progs \
  60. --with-ticlib \
  61. --disable-tic-depends \
  62. --enable-symlinks \
  63. --without-manpages \
  64. --without-tests \
  65. --without-cxx \
  66. --without-cxx-binding \
  67. --without-gpm \
  68. --without-ada \
  69. --disable-termcap \
  70. --without-debug \
  71. --without-profile
  72. libncurses-install:
  73. rm -rf ${WRKINST}/usr/lib/terminfo
  74. # this is installed as libncurses - make libcurses a "link"
  75. rm -f ${WRKINST}/usr/lib/libcurses.so*
  76. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  77. # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
  78. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  79. ${CP} ${WRKINST}/usr/lib/lib{tinfo,form,menu,ncurses,panel}.so* \
  80. ${IDIR_LIBNCURSES}/usr/lib
  81. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  82. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  83. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  84. else
  85. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  86. for f in ansi dumb linux screen vt100 vt102 \
  87. vt220 xterm xterm-color xterm-xfree86; do \
  88. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  89. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  90. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  91. done
  92. endif
  93. include ${ADK_TOPDIR}/mk/host-bottom.mk
  94. include ${ADK_TOPDIR}/mk/pkg-bottom.mk