Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 \
  62. v/vt220 w/wsvt25 x/xterm x/xterm-color x/xterm-xfree86; do \
  63. ${INSTALL_DIR} \
  64. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$(dirname $$f); \
  65. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/$$f \
  66. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
  67. done
  68. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  69. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  70. include ${TOPDIR}/mk/pkg-bottom.mk