lynx: new package
authorMario Lang <mlang@blind.guru>
Tue, 12 Dec 2017 18:41:28 +0000 (19:41 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 13 Dec 2017 07:42:14 +0000 (08:42 +0100)
Signed-off-by: Mario Lang <mlang@blind.guru>
Reviewed-by: Adrian Perez de Castro <aperez@igalia.com>
[Thomas: invert ncurses/slang select to avoid a circular dependency,
add BR2_USE_MMU dependency inherited from slang.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/lynx/Config.in [new file with mode: 0644]
package/lynx/lynx.hash [new file with mode: 0644]
package/lynx/lynx.mk [new file with mode: 0644]

index da38e2e877e32c7f67c045eecdd2c12992495162..6a4e8de06508ef7d68dec78cba8463900439dbae 100644 (file)
@@ -1040,6 +1040,9 @@ F:        package/polkit/
 F:     package/sg3_utils/
 F:     package/udisks/
 
+N:     Mario Lang <mlang@blind.guru>
+F:     package/lynx/
+
 N:     Mario Rugiero <mrugiero@gmail.com>
 F:     package/ratpoison/
 
index cb2141b8f3c810a32f5cd0ff7485de5c255bbdc8..c3ebbfc8c4f14fa5b0c97781efd9446e58656e59 100644 (file)
@@ -1699,6 +1699,7 @@ menu "Networking applications"
        source "package/linuxptp/Config.in"
        source "package/lldpd/Config.in"
        source "package/lrzsz/Config.in"
+       source "package/lynx/Config.in"
        source "package/macchanger/Config.in"
        source "package/memcached/Config.in"
        source "package/mii-diag/Config.in"
diff --git a/package/lynx/Config.in b/package/lynx/Config.in
new file mode 100644 (file)
index 0000000..a338f83
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LYNX
+       bool "lynx"
+       depends on BR2_USE_MMU
+       select BR2_PACKAGE_SLANG if !BR2_PACKAGE_NCURSES
+       select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
+       help
+         The Text Web-Browser.
+
+         http://lynx.invisible-island.net/
diff --git a/package/lynx/lynx.hash b/package/lynx/lynx.hash
new file mode 100644 (file)
index 0000000..c39475a
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated:
+sha256  04318a100b052d079d0018fa371aa28cfb41ab68db3a959f3b75c2170eea1bc8  lynx2.8.9dev.16.tar.bz2
+sha256  8406a30ff3134ec23cf752d1ceda92ddaabbe41b4f2dc07ea3cfa139de12d6d6  COPYING
diff --git a/package/lynx/lynx.mk b/package/lynx/lynx.mk
new file mode 100644 (file)
index 0000000..a95326a
--- /dev/null
@@ -0,0 +1,38 @@
+################################################################################
+#
+# lynx
+#
+################################################################################
+
+LYNX_VERSION = 2.8.9dev.16
+LYNX_SOURCE = lynx$(LYNX_VERSION).tar.bz2
+LYNX_SITE = ftp://ftp.invisible-island.net/lynx/tarballs
+LYNX_LICENSE = GPL-2.0
+LYNX_LICENSE_FILES = COPYING
+
+LYNX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
+
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+LYNX_DEPENDENCIES += ncurses
+LYNX_CONF_OPTS += --with-screen=ncurses$(if $(BR2_PACKAGE_NCURSES_WCHAR),w)
+else ifeq ($(BR2_PACKAGE_SLANG),y)
+LYNX_DEPENDENCIES += slang
+LYNX_CONF_OPTS += --with-screen=slang
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LYNX_DEPENDENCIES += openssl
+LYNX_CONF_OPTS += --with-ssl
+else ifeq ($(BR2_PACKAGE_GNUTLS),y)
+LYNX_DEPENDENCIES += gnutls
+LYNX_CONF_OPTS += --with-gnutls
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LYNX_DEPENDENCIES += zlib
+LYNX_CONF_OPTS += --with-zlib
+else
+LYNX_CONF_OPTS += --without-zlib
+endif
+
+$(eval $(autotools-package))