Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LIBNCURSES_DEV,libncurses-dev,${PKG_VERSION}-${PKG_RELEASE},libncurses,${PKGSD_LIBNCURSES_DEV},${PKGSC_LIBNCURSES_DEV}))
  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. pre-configure:
  42. # create tic host binary
  43. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  44. ./configure \
  45. --with-shared \
  46. --with-build-cc=${HOSTCC} \
  47. --with-progs \
  48. --without-debug \
  49. --without-profile \
  50. );
  51. ${MAKE} -C ${WRKBUILD}/include
  52. ${MAKE} -C ${WRKBUILD}/progs
  53. find ${WRKBUILD} -name *.o -exec rm {} \;
  54. find ${WRKBUILD} -name *.a -exec rm {} \;
  55. post-install:
  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_TARGET_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