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.7.0.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= f48b2c8dd140aeb36f59d16a662f0779
  8. PKG_DESCR:= norton commander clone
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= glib libncurses
  11. PKG_BUILDDEP:= glib ncurses
  12. PKG_URL:= http://www.midnight-commander.org/
  13. PKG_SITES:= http://openadk.org/distfiles/
  14. PKG_NOPARALLEL:= 1
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,MC,mc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_LDFLAGS+= -ltinfo
  18. CONFIGURE_ARGS+= --enable-charset \
  19. --disable-extcharset \
  20. --disable-background \
  21. --disable-gcc-warnings \
  22. --disable-glibtest \
  23. --disable-netcode \
  24. --without-libiconv-prefix \
  25. --without-x \
  26. --with-vfs \
  27. --without-mcfs \
  28. --without-samba \
  29. --without-gpm-mouse \
  30. --with-configdir=/etc \
  31. --without-ext2undel \
  32. --with-subshell \
  33. --with-screen=ncurses \
  34. --with-edit
  35. CONFIGURE_ENV+= mc_cv_have_zipinfo=yes \
  36. am_cv_func_iconv=no
  37. mc-install:
  38. ${INSTALL_DIR} ${IDIR_MC}/etc/mc
  39. ${INSTALL_DIR} ${IDIR_MC}/usr/bin
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
  41. cd ${IDIR_MC}/usr/bin && ln -fs mc mcedit && ln -fs mc mcview
  42. cd ${WRKINST}/etc/mc && ${CP} cedit.menu mc.ext \
  43. mc.lib mc.menu extfs ${IDIR_MC}/etc/mc/
  44. include ${TOPDIR}/mk/pkg-bottom.mk