Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. 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. --disable-color \
  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. endif
  34. post-install:
  35. ${INSTALL_DIR} ${IDIR_NANO}/usr/bin
  36. ${INSTALL_BIN} ${WRKINST}/usr/bin/nano ${IDIR_NANO}/usr/bin/
  37. ${INSTALL_DIR} ${IDIR_NANO}/etc
  38. $(INSTALL_DATA) ./files/nanorc ${IDIR_NANO}/etc/
  39. include ${TOPDIR}/mk/pkg-bottom.mk