Makefile 1.4 KB

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