Makefile 1.5 KB

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