Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= ncurses
  7. PKG_VERSION:= 5.7
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= cce05daf61a64501ef6cd8da1f727ec6
  10. MASTER_SITES:= ${MASTER_SITE_GNU:=ncurses/}
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE}))
  13. CONFIGURE_STYLE= gnu
  14. CONFIGURE_ENV+= ac_cv_linux_vers=2
  15. CONFIGURE_ARGS+= --without-cxx \
  16. --without-cxx-binding \
  17. --without-progs \
  18. --with-fallbacks \
  19. --without-ada \
  20. --with-shared \
  21. --with-normal \
  22. --without-debug \
  23. --without-profile \
  24. --without-gpm \
  25. --enable-overwrite \
  26. --with-terminfo-dirs=/usr/share/terminfo \
  27. --with-default-terminfo-dir=/usr/share/terminfo \
  28. --disable-big-core \
  29. --disable-home-terminfo \
  30. --without-rcs-ids \
  31. --enable-const \
  32. --enable-echo
  33. BUILD_STYLE= auto
  34. INSTALL_STYLE= auto confprog
  35. ALL_TARGET:= libs
  36. INSTALL_TARGET:= install.libs install.data
  37. pre-configure:
  38. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  39. ./configure \
  40. --with-build-cc=${HOSTCC} \
  41. --with-progs \
  42. );
  43. ${MAKE} -C ${WRKBUILD}/include
  44. ${MAKE} -C ${WRKBUILD}/progs
  45. post-install:
  46. # this is installed as libncurses - make libcurses a "link"
  47. rm -f ${WRKINST}/usr/lib/libcurses.so*
  48. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  49. # libcurses will not show up in the IPKG, only in STAGING_DIR
  50. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
  51. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so.* \
  53. ${IDIR_LIBNCURSES}/usr/lib
  54. for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 \
  55. v/vt220 w/wsvt25 x/xterm x/xterm-color x/xterm-xfree86; do \
  56. ${INSTALL_DIR} \
  57. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$(dirname $$f); \
  58. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/$$f \
  59. ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
  60. done
  61. include ${TOPDIR}/mk/pkg-bottom.mk