Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,MC,mc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TARGET_LDFLAGS+= -ltinfo
  19. CONFIGURE_ARGS+= --enable-charset \
  20. --disable-extcharset \
  21. --disable-background \
  22. --disable-gcc-warnings \
  23. --disable-glibtest \
  24. --disable-netcode \
  25. --without-libiconv-prefix \
  26. --without-x \
  27. --enable-vfs \
  28. --enable-vfs-sftp \
  29. --with-mcfs \
  30. --without-samba \
  31. --without-gpm-mouse \
  32. --with-configdir=/etc \
  33. --without-ext2undel \
  34. --with-subshell \
  35. --with-screen=ncurses \
  36. --with-edit
  37. CONFIGURE_ENV+= mc_cv_have_zipinfo=yes \
  38. am_cv_func_iconv=no
  39. mc-install:
  40. ${INSTALL_DIR} ${IDIR_MC}/etc/mc
  41. ${INSTALL_DIR} ${IDIR_MC}/usr/bin
  42. ${INSTALL_DIR} ${IDIR_MC}/usr/share/mc
  43. ${CP} ${WRKINST}/usr/share/mc/* ${IDIR_MC}/usr/share/mc
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
  45. cd ${IDIR_MC}/usr/bin && ln -fs mc mcedit && ln -fs mc mcview
  46. cd ${WRKINST}/etc/mc && ${CP} mcedit.menu mc.ext sfs.ini \
  47. mc.menu ${IDIR_MC}/etc/mc/
  48. include ${TOPDIR}/mk/pkg-bottom.mk