Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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:= 1
  7. PKG_MD5SUM:= cce05daf61a64501ef6cd8da1f727ec6
  8. PKG_DESCR:= a terminal handling library and common terminal definitions
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.gnu.org/software/ncurses/
  11. PKG_SITES:= ${MASTER_SITE_GNU:=ncurses/}
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. $(eval $(call PKG_template,LIBNCURSES_DEV,libncurses-dev,${PKG_VERSION}-${PKG_RELEASE},libncurses,${PKG_DESCR},${PKG_SECTION}))
  15. CONFIGURE_STYLE:= gnu
  16. CONFIGURE_ENV+= ac_cv_linux_vers=2
  17. CONFIGURE_ARGS+= --without-cxx \
  18. --without-cxx-binding \
  19. --with-build-cc=${HOSTCC} \
  20. --without-progs \
  21. --with-fallbacks \
  22. --without-ada \
  23. --with-shared \
  24. --with-normal \
  25. --without-debug \
  26. --without-profile \
  27. --without-gpm \
  28. --enable-overwrite \
  29. --with-terminfo-dirs=/usr/share/terminfo \
  30. --with-default-terminfo-dir=/usr/share/terminfo \
  31. --disable-big-core \
  32. --disable-home-terminfo \
  33. --without-rcs-ids \
  34. --enable-const \
  35. --enable-echo
  36. BUILD_STYLE:= auto
  37. INSTALL_STYLE:= auto
  38. ALL_TARGET:= libs
  39. INSTALL_TARGET:= install.libs install.data
  40. ifeq (${ADK_HOST_CYGWIN},y)
  41. CONFOPT:= --with-shared
  42. endif
  43. pre-configure:
  44. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  45. ./configure \
  46. ${CONFOPT} \
  47. --with-build-cc=${HOSTCC} \
  48. --with-progs \
  49. );
  50. ${MAKE} -C ${WRKBUILD}/include
  51. ${MAKE} -C ${WRKBUILD}/progs
  52. post-install:
  53. # this is installed as libncurses - make libcurses a "link"
  54. rm -f ${WRKINST}/usr/lib/libcurses.so*
  55. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  56. # libcurses will not show up in the IPKG, only in STAGING_DIR
  57. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
  58. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  59. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
  60. ${IDIR_LIBNCURSES}/usr/lib
  61. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  62. for f in ansi dumb linux rxvt screen vt100 vt102 \
  63. vt220 wsvt25 xterm xterm-color xterm-xfree86; do \
  64. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  65. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
  66. done
  67. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  68. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  69. include ${TOPDIR}/mk/pkg-bottom.mk