Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= nano
  5. PKG_VERSION:= 2.2.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6304308afb1f7ef4a5e93eb99206632a
  8. PKG_DESCR:= An enhanced clone of the Pico editor
  9. PKG_SECTION:= editor
  10. PKG_DEPENDS:= libncurses
  11. PKG_BUILDDEP:= ncurses
  12. PKG_URL:= http://www.nano-editor.org/
  13. PKG_SITES:= http://www.nano-editor.org/dist/v2.2/
  14. PKG_FLAVOURS:= TINY
  15. PKGFD_TINY:= tiny nano
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,NANO,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_ENV+= ac_cv_header_regex_h=no
  19. CONFIGURE_ARGS+= --enable-nanorc \
  20. --disable-glibtest \
  21. --disable-utf8 \
  22. --disable-color \
  23. --without-slang
  24. ifeq (${ADK_PACKAGE_NANO_TINY},y)
  25. CONFIGURE_ARGS+= --enable-tiny
  26. else
  27. CONFIGURE_ARGS+= --disable-browser \
  28. --disable-help \
  29. --disable-mouse \
  30. --disable-nls \
  31. --disable-speller \
  32. --disable-operatingdir \
  33. --enable-multibuffer
  34. endif
  35. post-install:
  36. ${INSTALL_DIR} ${IDIR_NANO}/usr/bin
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/nano ${IDIR_NANO}/usr/bin/
  38. ${INSTALL_DIR} ${IDIR_NANO}/etc
  39. $(INSTALL_DATA) ./files/nanorc ${IDIR_NANO}/etc/
  40. include ${TOPDIR}/mk/pkg-bottom.mk