Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. --without-libiconv-prefix \
  21. --without-x \
  22. --with-vfs \
  23. --without-mcfs \
  24. --without-samba \
  25. --without-gpm-mouse \
  26. --with-configdir=/etc \
  27. --without-ext2undel \
  28. --with-subshell \
  29. --with-screen=ncurses \
  30. --with-edit
  31. CONFIGURE_ENV+= mc_cv_have_zipinfo=yes \
  32. am_cv_func_iconv=no
  33. BUILD_STYLE= auto
  34. INSTALL_STYLE= auto
  35. pre-install:
  36. cp ${WRKSRC}/doc/xnc.hlp ${WRKSRC}/doc/mc.hlp
  37. post-install:
  38. ${INSTALL_DIR} ${IDIR_MC}/usr/{bin,share/mc}
  39. ${CP} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
  40. cd ${IDIR_MC}/usr/bin && ln -s mc mcedit && ln -s mc mcview
  41. cd ${WRKINST}/usr/share/mc && ${CP} cedit.menu mc.ext mc.hint \
  42. mc.lib mc.menu syntax extfs ${IDIR_MC}/usr/share/mc/
  43. include ${TOPDIR}/mk/pkg-bottom.mk