Makefile 1.3 KB

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