1
0

Makefile 2.4 KB

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