Makefile 1.6 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.8.12
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 7ecccc03df060cd0ca1414a5a14e6649
  8. PKG_DESCR:= norton commander clone
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= glib libncurses libssh2
  11. PKG_BUILDDEP:= glib ncurses libssh2
  12. PKG_URL:= http://www.midnight-commander.org/
  13. PKG_SITES:= http://ftp.midnight-commander.org/
  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. --enable-vfs \
  27. --enable-vfs-sftp \
  28. --with-mcfs \
  29. --without-samba \
  30. --without-gpm-mouse \
  31. --with-configdir=/etc \
  32. --without-ext2undel \
  33. --with-subshell \
  34. --with-screen=ncurses \
  35. --with-edit
  36. CONFIGURE_ENV+= mc_cv_have_zipinfo=yes \
  37. am_cv_func_iconv=no
  38. mc-install:
  39. ${INSTALL_DIR} ${IDIR_MC}/etc/mc
  40. ${INSTALL_DIR} ${IDIR_MC}/usr/bin
  41. ${INSTALL_DIR} ${IDIR_MC}/usr/share/mc
  42. ${CP} ${WRKINST}/usr/share/mc/* ${IDIR_MC}/usr/share/mc
  43. ${INSTALL_BIN} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
  44. cd ${IDIR_MC}/usr/bin && ln -fs mc mcedit && ln -fs mc mcview
  45. cd ${WRKINST}/etc/mc && ${CP} mcedit.menu mc.ext sfs.ini \
  46. mc.menu ${IDIR_MC}/etc/mc/
  47. include ${TOPDIR}/mk/pkg-bottom.mk