Makefile 3.5 KB

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