Makefile 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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:= 3
  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_SUBPKGS:= LIBNCURSES LIBNCURSES_DEV
  13. PKGSD_LIBNCURSES_DEV:= development files for libncurses
  14. PKGSC_LIBNCURSES_DEV:= devel
  15. PKG_FLAVOURS:= FULL_TERMINFO
  16. PKGFD_FULL_TERMINFO:= install the complete set of terminfo files as provided upstream
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBNCURSES_DEV,libncurses-dev,${PKG_VERSION}-${PKG_RELEASE},libncurses,${PKGSD_LIBNCURSES_DEV},${PKGSC_LIBNCURSES_DEV}))
  20. SUB_INSTALLS-y:=
  21. SUB_INSTALLS-m:=
  22. SUB_INSTALLS-${ADK_PACKAGE_LIBNCURSES_DEV}+= libncurses-dev-install
  23. CONFIGURE_ENV+= ac_cv_linux_vers=2
  24. CONFIGURE_ARGS+= --without-cxx \
  25. --without-cxx-binding \
  26. --with-build-cc=${HOSTCC} \
  27. --without-progs \
  28. --with-fallbacks \
  29. --disable-termcap \
  30. --without-ada \
  31. --with-shared \
  32. --with-normal \
  33. --without-debug \
  34. --without-profile \
  35. --without-gpm \
  36. --enable-overwrite \
  37. --with-terminfo-dirs=/usr/share/terminfo \
  38. --with-default-terminfo-dir=/usr/share/terminfo \
  39. --disable-big-core \
  40. --disable-home-terminfo \
  41. --without-rcs-ids \
  42. --enable-const \
  43. --enable-echo
  44. ALL_TARGET:= libs
  45. INSTALL_TARGET:= install.libs install.data
  46. pre-configure:
  47. # create tic host binary
  48. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  49. ./configure \
  50. --with-shared \
  51. --with-build-cc=${HOSTCC} \
  52. --with-progs \
  53. --without-debug \
  54. --without-profile \
  55. );
  56. ${MAKE} -C ${WRKBUILD}/include
  57. ${MAKE} -C ${WRKBUILD}/progs
  58. find ${WRKBUILD} -name *.o -exec rm {} \;
  59. find ${WRKBUILD} -name *.a -exec rm {} \;
  60. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  61. # this is installed as libncurses - make libcurses a "link"
  62. rm -f ${WRKINST}/usr/lib/libcurses.so*
  63. echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so
  64. # libcurses will not show up in the IPKG, only in STAGING_TARGET_DIR
  65. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib
  66. ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so* \
  67. ${IDIR_LIBNCURSES}/usr/lib
  68. ifeq (${ADK_PACKAGE_NCURSES_FULL_TERMINFO},y)
  69. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share
  70. ${CP} ${WRKINST}/usr/share/terminfo ${IDIR_LIBNCURSES}/usr/share/
  71. else
  72. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
  73. for f in ansi dumb linux screen vt100 vt102 \
  74. rxvt-unicode vt220 xterm xterm-color xterm-xfree86; do \
  75. ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
  76. ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
  77. ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
  78. done
  79. endif
  80. libncurses-dev-install:
  81. ${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
  82. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
  83. include ${TOPDIR}/mk/pkg-bottom.mk