Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. CONFIGURE_STYLE= gnu
  15. CONFIGURE_ENV+= ac_cv_linux_vers=2
  16. CONFIGURE_ARGS+= --without-cxx \
  17. --without-cxx-binding \
  18. --without-progs \
  19. --with-fallbacks \
  20. --without-ada \
  21. --with-shared \
  22. --with-normal \
  23. --without-debug \
  24. --without-profile \
  25. --without-gpm \
  26. --enable-overwrite \
  27. --with-terminfo-dirs=/usr/share/terminfo \
  28. --with-default-terminfo-dir=/usr/share/terminfo \
  29. --disable-big-core \
  30. --disable-home-terminfo \
  31. --without-rcs-ids \
  32. --enable-const \
  33. --enable-echo
  34. BUILD_STYLE= auto
  35. INSTALL_STYLE= auto confprog
  36. ALL_TARGET:= libs
  37. INSTALL_TARGET:= install.libs install.data
  38. pre-configure:
  39. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  40. ./configure \
  41. --with-build-cc=${HOSTCC} \
  42. --with-progs \
  43. );
  44. ${MAKE} -C ${WRKBUILD}/include
  45. ${MAKE} -C ${WRKBUILD}/progs
  46. post-install:
  47. # this is installed as libncurses - make libcurses a "link"
  48. rm -f ${WRKINST}/usr/lib/libcurses.so*
  49. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  50. # libcurses will not show up in the IPKG, only in STAGING_DIR
  51. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
  52. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so.* \
  54. ${IDIR_LIBNCURSES}/usr/lib
  55. for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 \
  56. v/vt220 w/wsvt25 x/xterm x/xterm-color x/xterm-xfree86; do \
  57. ${INSTALL_DIR} \
  58. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$(dirname $$f); \
  59. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/$$f \
  60. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
  61. done
  62. include ${TOPDIR}/mk/pkg-bottom.mk