Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. pre-configure:
  41. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  42. ./configure \
  43. --with-build-cc=${HOSTCC} \
  44. --with-progs \
  45. );
  46. ${MAKE} -C ${WRKBUILD}/include
  47. ${MAKE} -C ${WRKBUILD}/progs
  48. post-install:
  49. # this is installed as libncurses - make libcurses a "link"
  50. rm -f ${WRKINST}/usr/lib/libcurses.so*
  51. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  52. # libcurses will not show up in the IPKG, only in STAGING_DIR
  53. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
  54. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  55. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
  56. ${IDIR_LIBNCURSES}/usr/lib
  57. for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 \
  58. v/vt220 w/wsvt25 x/xterm x/xterm-color x/xterm-xfree86; do \
  59. ${INSTALL_DIR} \
  60. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$(dirname $$f); \
  61. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/$$f \
  62. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
  63. done
  64. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  65. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  66. include ${TOPDIR}/mk/pkg-bottom.mk