Makefile 2.9 KB

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