1
0

Makefile 2.9 KB

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