Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_NOPARALLEL:= 1
  15. PKG_FLAVOURS_ELINKS:= WITH_IPV6
  16. PKGFD_WITH_IPV6:= enable IPv6 support
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,ELINKS,elinks,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. INSTALL_STYLE:= manual
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  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 ${TOPDIR}/mk/pkg-bottom.mk