You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.1 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. #
  4. # Based on https://github.com/kyak/openwrt-packages/tree/master/lynx
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=lynx
  8. PKG_VERSION:=2.8.9rel.1
  9. PKG_RELEASE:=1
  10. PKG_LICENSE:=GPL-2.0
  11. PKG_MAINTAINER:=Leonid Esman <leonid.esman@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=https://invisible-mirror.net/archives/lynx/tarballs/ \
  14. https://ftp.icm.edu.pl/packages/lynx/tarballs/ \
  15. http://ftp.oregonstate.edu/pub/blfs/conglomeration/lynx/ \
  16. https://ftp.osuosl.org/pub/blfs/conglomeration/lynx/ \
  17. https://fossies.org/linux/www/
  18. PKG_HASH:=387f193d7792f9cfada14c60b0e5c0bff18f227d9257a39483e14fa1aaf79595
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
  20. # try current development version
  21. # URL for current development version - http://invisible-island.net/datafiles/release/lynx-cur.tar.bz2
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/lynx
  24. TITLE:=Lynx is the text web browser
  25. SECTION:=net
  26. CATEGORY:=Network
  27. DEPENDS:=+libncursesw +zlib +libopenssl +ca-bundle
  28. URL:=http://lynx.invisible-island.net/
  29. endef
  30. define Package/lynx/description
  31. Classic non-graphical (text-mode) web browser
  32. endef
  33. # customize as you need
  34. CONFIGURE_ARGS += --with-zlib --with-ssl \
  35. --enable-ipv6 \
  36. --with-screen=ncursesw \
  37. --enable-widec \
  38. --enable-locale-charset \
  39. --enable-charset-choice \
  40. --enable-cjk \
  41. --enable-japanese-utf8 \
  42. --enable-nsl-fork \
  43. --disable-config-info --disable-echo \
  44. --disable-dired --disable-trace \
  45. --disable-finger --disable-gopher --disable-news --disable-wais \
  46. --disable-prettysrc --disable-scrollbar --disable-gzip-help \
  47. --disable-idna --disable-syslog --disable-font-switch
  48. CONFIGURE_VARS += cf_cv_ncurses_header="ncursesw/curses.h" \
  49. ac_cv_path_NCURSES_CONFIG=""
  50. define Package/lynx/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_DIR) $(1)/etc
  53. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lynx $(1)/usr/bin/
  54. $(INSTALL_DATA) ./files/lynx.cfg $(1)/etc/
  55. $(INSTALL_DATA) ./files/lynx.lss $(1)/etc/
  56. endef
  57. $(eval $(call BuildPackage,lynx))