2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
14 # Copyright (c) 2019, Michal Nowak
17 # disable CONFIGURE_DEFAULT_DIRS, because lynx does not support --localdir
18 CONFIGURE_DEFAULT_DIRS
=no
21 include ..
/..
/..
/make-rules
/shared-macros.mk
24 COMPONENT_VERSION
= 2.9.2
26 COMPONENT_FMRI
= web
/browser
/lynx
27 COMPONENT_SUMMARY
= Text-mode web browser
28 COMPONENT_CLASSIFICATION
= Applications
/Internet
29 COMPONENT_PROJECT_URL
= https
://lynx.invisible-island.net
/
30 COMPONENT_SRC
= $(COMPONENT_NAME
)$(COMPONENT_VERSION
)
31 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)$(COMPONENT_VERSION
).
tar.bz2
32 COMPONENT_ARCHIVE_HASH
= sha256
:7374b89936d991669e101f4e97f2c9592036e1e8cdaa7bafc259a77ab6fb07ce
33 COMPONENT_ARCHIVE_URL
= http
://invisible-mirror.net
/archives
/$(COMPONENT_NAME
)/tarballs
/$(COMPONENT_ARCHIVE
)
34 COMPONENT_LICENSE_FILE
= COPYING
35 COMPONENT_LICENSE
= GPLv2
37 include $(WS_MAKE_RULES
)/common.mk
39 # Needed to successfully find lynx.pot.
40 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
42 CFLAGS
+= -std
=c99
-D_XOPEN_SOURCE
=600
43 CFLAGS
+= -I
/usr
/include/ncurses
44 CFLAGS
+= -I
/usr
/include/openssl
46 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
47 CONFIGURE_OPTIONS
+= --enable-nls
48 CONFIGURE_OPTIONS
+= --enable-japanese-utf8
49 CONFIGURE_OPTIONS
+= --enable-widec
50 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)/lynx
51 CONFIGURE_OPTIONS
+= --with-ssl
52 CONFIGURE_OPTIONS
+= --with-screen
=ncurses
54 # lynx should be installed before running tests
56 # Use the HTML and CSS styling external test suite as referenced at
57 # http://www.w3.org/2005/MWI/Tests/
58 COMPONENT_TEST_CMD
= $(@D
)/src
/lynx
59 COMPONENT_TEST_ARGS
= -dump \
60 http
://web.archive.org
/web
/20160629092744/http
://cameronmoll.com
/mobile
/mkp
/pg1.html \
61 http
://web.archive.org
/web
/20160629092744/http
://cameronmoll.com
/mobile
/mkp
/pg2.html \
62 http
://web.archive.org
/web
/20160629092744/http
://cameronmoll.com
/mobile
/mkp
/pg3.html \
63 http
://web.archive.org
/web
/20160629092744/http
://cameronmoll.com
/mobile
/mkp
/pg4.html
64 COMPONENT_TEST_TARGETS
=
66 ASLR_MODE
= $(ASLR_ENABLE
)
68 # Auto-generated dependencies
69 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
70 REQUIRED_PACKAGES
+= compress
/bzip2
71 REQUIRED_PACKAGES
+= library
/brotli
72 REQUIRED_PACKAGES
+= library
/libidn2
73 REQUIRED_PACKAGES
+= library
/ncurses
74 REQUIRED_PACKAGES
+= library
/zlib
75 REQUIRED_PACKAGES
+= system
/library