Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.11
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1a2d74b75ddbff0b0d6cdc04bf4a7d31
  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://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. --with-vfs \
  28. --without-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_BIN} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
  42. cd ${IDIR_MC}/usr/bin && ln -fs mc mcedit && ln -fs mc mcview
  43. cd ${WRKINST}/etc/mc && ${CP} mcedit.menu mc.ext \
  44. mc.menu ${IDIR_MC}/etc/mc/
  45. include ${TOPDIR}/mk/pkg-bottom.mk