Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_MD5SUM:= 2be94dc43fb60fff4626a2401a977220
  8. PKG_DESCR:= An enhanced clone of the Pico text editor
  9. PKG_SECTION:= admin
  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.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_ENV+= ac_cv_header_regex_h=no
  18. CONFIGURE_ARGS+= --enable-nanorc \
  19. --disable-glibtest \
  20. --disable-utf8 \
  21. --without-slang
  22. ifeq (${ADK_PACKAGE_NANO_TINY},y)
  23. CONFIGURE_ARGS+= --enable-tiny
  24. else
  25. CONFIGURE_ARGS+= --disable-browser \
  26. --disable-help \
  27. --disable-mouse \
  28. --disable-nls \
  29. --disable-speller \
  30. --disable-operatingdir \
  31. --enable-multibuffer
  32. endif
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_NANO}/usr/bin
  35. ${INSTALL_BIN} ${WRKINST}/usr/bin/nano ${IDIR_NANO}/usr/bin/
  36. ${INSTALL_DIR} ${IDIR_NANO}/etc
  37. $(INSTALL_DATA) ./files/nanorc ${IDIR_NANO}/etc/
  38. include ${TOPDIR}/mk/pkg-bottom.mk