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.

70 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_CPE_ID:=cpe:/a:lynx:lynx
  13. PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=https://invisible-mirror.net/archives/lynx/tarballs/ \
  15. https://ftp.icm.edu.pl/packages/lynx/tarballs/ \
  16. http://ftp.oregonstate.edu/pub/blfs/conglomeration/lynx/ \
  17. https://ftp.osuosl.org/pub/blfs/conglomeration/lynx/ \
  18. https://fossies.org/linux/www/
  19. PKG_HASH:=387f193d7792f9cfada14c60b0e5c0bff18f227d9257a39483e14fa1aaf79595
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
  21. # try current development version
  22. # URL for current development version - http://invisible-island.net/datafiles/release/lynx-cur.tar.bz2
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/lynx
  25. TITLE:=Lynx is the text web browser
  26. SECTION:=net
  27. CATEGORY:=Network
  28. DEPENDS:=+libncursesw +zlib +libopenssl +ca-bundle
  29. URL:=http://lynx.invisible-island.net/
  30. endef
  31. define Package/lynx/description
  32. Classic non-graphical (text-mode) web browser
  33. endef
  34. # customize as you need
  35. CONFIGURE_ARGS += --with-zlib --with-ssl \
  36. --enable-ipv6 \
  37. --with-screen=ncursesw \
  38. --enable-widec \
  39. --enable-locale-charset \
  40. --enable-charset-choice \
  41. --enable-cjk \
  42. --enable-japanese-utf8 \
  43. --enable-nsl-fork \
  44. --disable-config-info --disable-echo \
  45. --disable-dired --disable-trace \
  46. --disable-finger --disable-gopher --disable-news --disable-wais \
  47. --disable-prettysrc --disable-scrollbar --disable-gzip-help \
  48. --disable-idna --disable-syslog --disable-font-switch
  49. CONFIGURE_VARS += cf_cv_ncurses_header="ncursesw/curses.h" \
  50. ac_cv_path_NCURSES_CONFIG=""
  51. define Package/lynx/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_DIR) $(1)/etc
  54. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lynx $(1)/usr/bin/
  55. $(INSTALL_DATA) ./files/lynx.cfg $(1)/etc/
  56. $(INSTALL_DATA) ./files/lynx.lss $(1)/etc/
  57. endef
  58. $(eval $(call BuildPackage,lynx))