Makefile 2.6 KB

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