Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. SUB_INSTALLS-y:=
  16. SUB_INSTALLS-m:=
  17. SUB_INSTALLS-${ADK_PACKAGE_LIBNCURSES_DEV}+= libncurses-dev-install
  18. CONFIGURE_ENV+= ac_cv_linux_vers=2
  19. CONFIGURE_ARGS+= --without-cxx \
  20. --without-cxx-binding \
  21. --with-build-cc=${HOSTCC} \
  22. --without-progs \
  23. --with-fallbacks \
  24. --disable-termcap \
  25. --without-ada \
  26. --with-shared \
  27. --with-normal \
  28. --without-debug \
  29. --without-profile \
  30. --without-gpm \
  31. --enable-overwrite \
  32. --with-terminfo-dirs=/usr/share/terminfo \
  33. --with-default-terminfo-dir=/usr/share/terminfo \
  34. --disable-big-core \
  35. --disable-home-terminfo \
  36. --without-rcs-ids \
  37. --enable-const \
  38. --enable-echo
  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: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  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. libncurses-dev-install:
  70. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  71. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  72. include ${TOPDIR}/mk/pkg-bottom.mk