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.

74 lines
2.3 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:=2
  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. --with-build-cc="$(HOSTCC)" \
  37. --with-build-cflags="$(HOST_CFLAGS)" \
  38. --with-build-cppflags="$(HOST_CPPFLAGS)" \
  39. --with-build-ldflags="$(HOST_LDFLAGS)" \
  40. --enable-ipv6 \
  41. --with-screen=ncursesw \
  42. --enable-widec \
  43. --enable-locale-charset \
  44. --enable-charset-choice \
  45. --enable-cjk \
  46. --enable-japanese-utf8 \
  47. --enable-nsl-fork \
  48. --disable-config-info --disable-echo \
  49. --disable-dired --disable-trace \
  50. --disable-finger --disable-gopher --disable-news --disable-wais \
  51. --disable-prettysrc --disable-scrollbar --disable-gzip-help \
  52. --disable-idna --disable-syslog --disable-font-switch
  53. CONFIGURE_VARS += cf_cv_ncurses_header="ncursesw/curses.h" \
  54. ac_cv_path_NCURSES_CONFIG=""
  55. define Package/lynx/install
  56. $(INSTALL_DIR) $(1)/usr/bin
  57. $(INSTALL_DIR) $(1)/etc
  58. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lynx $(1)/usr/bin/
  59. $(INSTALL_DATA) ./files/lynx.cfg $(1)/etc/
  60. $(INSTALL_DATA) ./files/lynx.lss $(1)/etc/
  61. endef
  62. $(eval $(call BuildPackage,lynx))