Makefile 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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:= 3
  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_SUBPKGS:= LIBNCURSES LIBNCURSES_DEV
  13. PKGSD_LIBNCURSES_DEV:= development files for libncurses
  14. PKGSC_LIBNCURSES_DEV:= devel
  15. PKG_FLAVOURS_LIBNCURSES:= FULL_TERMINFO
  16. PKGFD_FULL_TERMINFO:= install the complete set of terminfo files as provided upstream
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBNCURSES_DEV,libncurses-dev,${PKG_VERSION}-${PKG_RELEASE},libncurses,${PKGSD_LIBNCURSES_DEV},${PKGSC_LIBNCURSES_DEV}))
  20. CONFIGURE_ENV+= ac_cv_linux_vers=2
  21. CONFIGURE_ARGS+= --without-cxx \
  22. --without-cxx-binding \
  23. --with-build-cc=${CC_FOR_BUILD} \
  24. --without-progs \
  25. --with-fallbacks \
  26. --disable-termcap \
  27. --without-ada \
  28. --with-shared \
  29. --with-normal \
  30. --without-debug \
  31. --without-profile \
  32. --without-gpm \
  33. --enable-overwrite \
  34. --with-terminfo-dirs=/usr/share/terminfo \
  35. --with-default-terminfo-dir=/usr/share/terminfo \
  36. --disable-big-core \
  37. --disable-home-terminfo \
  38. --without-rcs-ids \
  39. --enable-const \
  40. --enable-echo
  41. ALL_TARGET:= libs
  42. INSTALL_TARGET:= install.libs install.data
  43. pre-configure:
  44. # create tic host binary
  45. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  46. ./configure \
  47. --with-shared \
  48. --with-build-cc=${CC_FOR_BUILD} \
  49. --with-progs \
  50. --without-debug \
  51. --without-profile \
  52. );
  53. ${MAKE} -C ${WRKBUILD}/include
  54. ${MAKE} -C ${WRKBUILD}/progs
  55. find ${WRKBUILD} -name *.o -exec rm {} \;
  56. find ${WRKBUILD} -name *.a -exec rm {} \;
  57. post-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. libncurses-dev-install:
  78. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  79. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  80. include ${TOPDIR}/mk/pkg-bottom.mk