1
0

Makefile 2.9 KB

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