Makefile 3.6 KB

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