blob: 9a547e20efa653a24ea30872fca06ffb39f2f6b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= lynx
PKG_VERSION:= 2.8.8
PKG_RELEASE:= 2
PKG_HASH:= 234c9dc77d4c4594ad6216d7df4d49eae3019a3880e602f39721b35b97fbc408
PKG_DESCR:= text browser
PKG_SECTION:= app/browser
PKG_DEPENDS:= libncurses zlib
PKG_BUILDDEP:= ncurses zlib
PKG_URL:= http://lynx.isc.org/
PKG_SITES:= http://lynx.isc.org/${PKG_NAME}${PKG_VERSION}/
PKG_NOPARALLEL:= 1
DISTFILES:= ${PKG_NAME}${PKG_VERSION}.tar.gz
WRKDIST= ${WRKDIR}/lynx2-8-8
PKG_CHOICES_LYNX:= WITH_LIBRESSL WITH_OPENSSL
PKGCD_WITH_LIBRESSL:= use libressl for crypto
PKGCB_WITH_LIBRESSL:= libressl
PKGCS_WITH_LIBRESSL:= libressl
PKGCD_WITH_OPENSSL:= use openssl for crypto
PKGCB_WITH_OPENSSL:= openssl
PKGCS_WITH_OPENSSL:= libopenssl
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LYNX,lynx,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_CPPFLAGS+= -I${STAGING_TARGET_DIR}/include/openssl
TARGET_CPPFLAGS+= -DUSE_OPENSSL_INCL -DUSE_X509_SUPPORT
CONFIGURE_ENV+= ac_cv_path_TELNET=telnet \
ac_cv_path_TN3270=tn3270 \
ac_cv_path_RLOGIN=rlogin \
ac_cv_path_MV=mv \
ac_cv_path_GZIP=gzip \
ac_cv_path_UNCOMPRESS=gunzip \
ac_cv_path_UNZIP=unzip \
ac_cv_path_BZIP2=bzip2 \
ac_cv_path_TAR=tar \
ac_cv_path_COMPRESS=compress \
ac_cv_path_RM=rm \
ac_cv_path_UUDECODE=uudecode \
ac_cv_path_ZCAT=zcat \
ac_cv_path_ZIP=zip \
ac_cv_path_NCURSES_CONFIG=${STAGING_TARGET_DIR}/usr/bin/ncurses5-config
CONFIGURE_ARGS+= --disable-warnings \
--without-gnutls \
--without-socks \
--without-socks5 \
--enable-addrlist-page \
--enable-charset-choice \
--enable-color-style \
--disable-default-colors \
--disable-htmlized-cfg \
--enable-nested-tables \
--disable-scrollbar \
--enable-justify-elts \
--enable-internal-links \
--enable-nsl-fork \
--enable-underlines \
--without-bzlib \
--without-x \
--with-zlib=${STAGING_TARGET_DIR}/usr \
--with-ssl=${STAGING_TARGET_DIR}/usr \
--with-curses-dir=${STAGING_TARGET_DIR}/usr \
--disable-full-paths \
--with-cfg-file=/etc/lynx.cfg \
--with-lss-file=/etc/lynx.lss \
--disable-font-switch \
--disable-japanese-utf8 \
--disable-vertrace \
--disable-trace \
--disable-cjk \
--disable-kbd-layout \
--disable-prettysrc \
--disable-finger \
--disable-dired \
--with-screen=ncurses \
--disable-widec \
--disable-locale-charset \
--with-build-cc=$(HOST_CC) \
--with-build-cflags="$(HOST_CFLAGS)" \
--with-build-cppflags="-I/usr/include/ncurses"
MAKE_FILE:= makefile
lynx-install:
${INSTALL_DIR} ${IDIR_LYNX}/etc ${IDIR_LYNX}/usr/bin
${CP} ${WRKINST}/etc/lynx.{cfg,lss} ${IDIR_LYNX}/etc
${CP} ${WRKINST}/usr/bin/lynx ${IDIR_LYNX}/usr/bin
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|