Makefile 3.5 KB

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