Makefile 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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:= 2
  7. PKG_MD5SUM:= cce05daf61a64501ef6cd8da1f727ec6
  8. PKG_DESCR:= a terminal handling library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.gnu.org/software/ncurses/
  11. PKG_SITES:= ${MASTER_SITE_GNU:=ncurses/}
  12. PKG_DESCR_LIB_DEV:= development files for libncurses
  13. PKG_SECTION_LIB_DEV:= devel
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,LIBNCURSES_DEV,libncurses-dev,${PKG_VERSION}-${PKG_RELEASE},libncurses,${PKG_DESCR_LIB_DEV},${PKG_SECTION_LIB_DEV}))
  17. SUB_INSTALLS-y:=
  18. SUB_INSTALLS-m:=
  19. SUB_INSTALLS-${ADK_PACKAGE_LIBNCURSES_DEV}+= libncurses-dev-install
  20. CONFIGURE_ENV+= ac_cv_linux_vers=2
  21. CONFIGURE_ARGS+= --without-cxx \
  22. --without-cxx-binding \
  23. --with-build-cc=${HOSTCC} \
  24. --without-progs \
  25. --with-fallbacks \
  26. --disable-termcap \
  27. --without-ada \
  28. --with-shared \
  29. --with-normal \
  30. --without-debug \
  31. --without-profile \
  32. --without-gpm \
  33. --enable-overwrite \
  34. --with-terminfo-dirs=/usr/share/terminfo \
  35. --with-default-terminfo-dir=/usr/share/terminfo \
  36. --disable-big-core \
  37. --disable-home-terminfo \
  38. --without-rcs-ids \
  39. --enable-const \
  40. --enable-echo
  41. ALL_TARGET:= libs
  42. INSTALL_TARGET:= install.libs install.data
  43. ifeq (${ADK_HOST_CYGWIN},y)
  44. CONFOPT:= --with-shared
  45. endif
  46. pre-configure:
  47. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  48. ./configure \
  49. ${CONFOPT} \
  50. --with-build-cc=${HOSTCC} \
  51. --with-progs \
  52. );
  53. ${MAKE} -C ${WRKBUILD}/include
  54. ${MAKE} -C ${WRKBUILD}/progs
  55. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  56. # this is installed as libncurses - make libcurses a "link"
  57. rm -f ${WRKINST}/usr/lib/libcurses.so*
  58. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  59. # libcurses will not show up in the IPKG, only in STAGING_DIR
  60. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
  61. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  62. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
  63. ${IDIR_LIBNCURSES}/usr/lib
  64. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  65. for f in ansi dumb linux screen vt100 vt102 \
  66. rxvt-unicode vt220 xterm xterm-color xterm-xfree86; do \
  67. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  68. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  69. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  70. done
  71. libncurses-dev-install:
  72. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  73. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  74. include ${TOPDIR}/mk/pkg-bottom.mk