Makefile 1.8 KB

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