Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.7
  6. PKG_RELEASE:= 5
  7. PKG_MD5SUM:= cce05daf61a64501ef6cd8da1f727ec6
  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/package.mk
  17. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. TARGET_CFLAGS+= -lgcc
  19. CONFIGURE_ENV+= ac_cv_linux_vers=2
  20. CONFIGURE_ARGS+= --without-cxx \
  21. --without-cxx-binding \
  22. --with-build-cc=${CC_FOR_BUILD} \
  23. --without-progs \
  24. --with-fallbacks \
  25. --disable-termcap \
  26. --without-ada \
  27. --with-shared \
  28. --with-normal \
  29. --without-debug \
  30. --without-profile \
  31. --without-gpm \
  32. --enable-overwrite \
  33. --with-terminfo-dirs=/usr/share/terminfo \
  34. --with-default-terminfo-dir=/usr/share/terminfo \
  35. --disable-big-core \
  36. --disable-home-terminfo \
  37. --without-rcs-ids \
  38. --enable-const \
  39. --enable-echo
  40. ALL_TARGET:= libs
  41. INSTALL_TARGET:= install.libs install.data
  42. pre-configure:
  43. # create tic host binary
  44. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  45. ./configure \
  46. --with-shared \
  47. --with-build-cc=${CC_FOR_BUILD} \
  48. --with-progs \
  49. --without-debug \
  50. --without-profile \
  51. );
  52. ${MAKE} -C ${WRKBUILD}/include
  53. ${MAKE} -C ${WRKBUILD}/progs
  54. ${CP} ${WRKBUILD}/progs/tic ${STAGING_HOST_DIR}/bin
  55. find ${WRKBUILD} -name *.o -exec rm {} \;
  56. find ${WRKBUILD} -name *.a -exec rm {} \;
  57. libncurses-install:
  58. # this is installed as libncurses - make libcurses a "link"
  59. rm -f ${WRKINST}/usr/lib/libcurses.so*
  60. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  61. # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
  62. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  63. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
  64. ${IDIR_LIBNCURSES}/usr/lib
  65. ifeq (${ADK_PACKAGE_LIBNCURSES_FULL_TERMINFO},y)
  66. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  67. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  68. else
  69. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  70. for f in ansi dumb linux screen vt100 vt102 \
  71. rxvt-unicode vt220 xterm xterm-color xterm-xfree86; do \
  72. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  73. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  74. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  75. done
  76. endif
  77. include ${TOPDIR}/mk/pkg-bottom.mk