Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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:= elinks
  5. PKG_VERSION:= 0.11.7
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 145c510cae41c204d0f23dce4bdd23ab
  8. PKG_DESCR:= advanced text web browser
  9. PKG_SECTION:= browser
  10. PKG_DEPENDS:= libopenssl
  11. PKG_BUILDDEP:= openssl
  12. PKG_URL:= http://elinks.or.cz/
  13. PKG_SITES:= http://elinks.or.cz/download/
  14. PKG_FLAVOURS:= WITH_IPV6
  15. PKGFD_WITH_IPV6:= enable IPv6 support
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,ELINKS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. INSTALL_STYLE:= manual
  19. TCFLAGS+= -fPIC
  20. CONFIGURE_ENV+= $(shell echo ac_cv_file_./features.conf | tr [:blank:]-/. _)=yes
  21. CONFIGURE_ENV+= $(shell echo ac_cv_file_${WRKBUILD}/features.conf | tr [:blank:]-/. _)=yes
  22. CONFIGURE_ARGS+= --enable-small \
  23. --enable-256-colors \
  24. --with-openssl='${STAGING_DIR}/usr' \
  25. --disable-backtrace \
  26. --disable-data \
  27. --disable-formhist \
  28. --disable-leds \
  29. --disable-mailcap \
  30. --disable-mouse \
  31. --disable-smb \
  32. --disable-uri-rewrite \
  33. --disable-xbel \
  34. --without-bzlib \
  35. --without-gpm \
  36. --without-idn \
  37. --without-gnutls \
  38. --without-libiconv \
  39. --without-lua \
  40. --without-spidermonkey \
  41. --without-x \
  42. --without-zlib
  43. MAKE_FLAGS+= CC='${TARGET_CC}'
  44. ifneq (${ADK_PACKAGE_ELINKS_WITH_IPV6},)
  45. CONFIGURE_ARGS+= --enable-ipv6
  46. else
  47. CONFIGURE_ARGS+= --disable-ipv6
  48. endif
  49. do-install:
  50. ${INSTALL_DIR} ${IDIR_ELINKS}/usr/bin
  51. ${INSTALL_BIN} ${WRKBUILD}/src/elinks ${IDIR_ELINKS}/usr/bin/
  52. include ${TOPDIR}/mk/pkg-bottom.mk