Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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= mc
  5. PKG_VERSION= 4.6.1
  6. PKG_RELEASE= 1
  7. PKG_BUILDDEP+= glib ncurses
  8. PKG_MD5SUM= 18b20db6e40480a53bac2870c56fc3c4
  9. PKG_DESCR:= norton commander clone
  10. PKG_SECTION:= misc
  11. PKG_DEPENDS:= libncurses glib
  12. PKG_URL:= http://www.midnight-commander.org
  13. PKG_SITES= http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,MC,mc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE= gnu
  17. CONFIGURE_ARGS+= --disable-charset \
  18. --disable-background \
  19. --disable-gcc-warnings \
  20. --disable-glibtest \
  21. --disable-netcode \
  22. --without-libiconv-prefix \
  23. --without-x \
  24. --with-vfs \
  25. --without-mcfs \
  26. --without-samba \
  27. --without-gpm-mouse \
  28. --with-configdir=/etc \
  29. --without-ext2undel \
  30. --with-subshell \
  31. --with-screen=ncurses \
  32. --with-edit
  33. CONFIGURE_ENV+= mc_cv_have_zipinfo=yes \
  34. ac_cv_lib_nsl_t_accept=no \
  35. ac_cv_lib_nsl_gethostbyname=no \
  36. am_cv_func_iconv=no
  37. BUILD_STYLE= auto
  38. INSTALL_STYLE= auto
  39. pre-install:
  40. cp ${WRKSRC}/doc/xnc.hlp ${WRKSRC}/doc/mc.hlp
  41. post-install:
  42. ${INSTALL_DIR} ${IDIR_MC}/usr/{bin,share/mc}
  43. ${CP} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
  44. cd ${IDIR_MC}/usr/bin && ln -s mc mcedit && ln -s mc mcview
  45. cd ${WRKINST}/usr/share/mc && ${CP} cedit.menu mc.ext mc.hint \
  46. mc.lib mc.menu syntax extfs ${IDIR_MC}/usr/share/mc/
  47. include ${TOPDIR}/mk/pkg-bottom.mk