Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME= lynx
  7. PKG_VERSION= 2.8.7dev.7
  8. PKG_RELEASE= 1
  9. PKG_MD5SUM= 83891107c873421e5ac917cc0ab53fe8
  10. MASTER_SITES= http://lynx.isc.org/current/ \
  11. ${MASTER_SITE_MIRBSD}
  12. DISTFILES= ${PKG_NAME}${PKG_VERSION}.tar.gz
  13. WRKDIST= ${WRKDIR}/lynx2-8-7
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LYNX,lynx,${PKG_VERSION}-${PKG_RELEASE}))
  16. CONFIGURE_STYLE= gnu
  17. TCPPFLAGS+= -DLYNX_VERSION=\"${PKG_VERSION}-OpenADK-${PKG_RELEASE}\"
  18. # do not hardcode paths; do not scan for ports stuff
  19. CONFIGURE_ENV+= ac_cv_path_TELNET=telnet \
  20. ac_cv_path_TN3270=tn3270 \
  21. ac_cv_path_RLOGIN=rlogin \
  22. ac_cv_path_MV=mv \
  23. ac_cv_path_GZIP=gzip \
  24. ac_cv_path_UNCOMPRESS=gunzip \
  25. ac_cv_path_UNZIP=unzip \
  26. ac_cv_path_BZIP2=bzip2 \
  27. ac_cv_path_TAR=tar \
  28. ac_cv_path_COMPRESS=compress \
  29. ac_cv_path_RM=rm \
  30. ac_cv_path_UUDECODE=uudecode \
  31. ac_cv_path_ZCAT=zcat \
  32. ac_cv_path_ZIP=zip
  33. # from MirPorts Framework
  34. CONFIGURE_ARGS+= --enable-vertrace \
  35. --enable-warnings \
  36. --disable-nls \
  37. --disable-full-paths \
  38. --with-ssl=/usr \
  39. --without-gnutls \
  40. --without-socks \
  41. --without-socks5 \
  42. --with-screen=ncursesw \
  43. --enable-widec \
  44. --enable-addrlist-page \
  45. --enable-charset-choice \
  46. --enable-cjk \
  47. --enable-japanese-utf8 \
  48. --enable-color-style \
  49. --disable-default-colors \
  50. --disable-htmlized-cfg \
  51. --enable-ipv6 \
  52. --enable-kbd-layout \
  53. --enable-locale-charset \
  54. --enable-nested-tables \
  55. --disable-scrollbar \
  56. --enable-justify-elts \
  57. --enable-internal-links \
  58. --enable-nsl-fork \
  59. --enable-underlines \
  60. --without-bzlib \
  61. --with-zlib \
  62. --without-x
  63. # local stuff
  64. CONFIGURE_ARGS+= --with-ssl=${STAGING_DIR}/usr \
  65. --disable-full-paths \
  66. --with-cfg-file=/etc/lynx.cfg \
  67. --with-lss-file=/etc/lynx.lss \
  68. --disable-font-switch
  69. TCPPFLAGS+= -I${STAGING_DIR}/include/openssl
  70. TCPPFLAGS+= -DUSE_OPENSSL_INCL -DUSE_X509_SUPPORT
  71. # needs libiconv
  72. CONFIGURE_ARGS+= --disable-japanese-utf8
  73. # shrink size
  74. CONFIGURE_ARGS+= --disable-vertrace \
  75. --disable-trace \
  76. --disable-cjk \
  77. --disable-kbd-layout \
  78. --disable-prettysrc \
  79. --disable-finger \
  80. --disable-dired
  81. ifeq (${ADK_UNICODE},)
  82. CONFIGURE_ARGS+= --with-screen=ncurses \
  83. --disable-widec \
  84. --disable-locale-charset
  85. endif
  86. ifneq (${ADK_IPV6},y)
  87. CONFIGURE_ARGS+= --disable-ipv6
  88. endif
  89. MAKE_FILE= makefile
  90. BUILD_STYLE= auto
  91. INSTALL_STYLE= auto
  92. post-install:
  93. ${INSTALL_DIR} ${IDIR_LYNX}/etc ${IDIR_LYNX}/usr/bin
  94. ${CP} ${WRKINST}/etc/lynx.{cfg,lss} ${IDIR_LYNX}/etc
  95. ${CP} ${WRKINST}/usr/bin/lynx ${IDIR_LYNX}/usr/bin
  96. include ${TOPDIR}/mk/pkg-bottom.mk