Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:= weechat
  5. PKG_VERSION:= 0.1.8
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 73d6bc211ac32c597f0d278506480a20
  8. PKG_DESCR:= Lightweight IRC client
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libncurses libiconv
  11. PKG_BUILDDEP+= ncurses libiconv
  12. ifeq (${ADK_COMPILE_WEECHAT_WITH_TLS},y)
  13. PKG_DEPENDS+= gnutls
  14. PKG_BUILDDEP+= gnutls
  15. endif
  16. ifeq (${ADK_COMPILE_WEECHAT_WITH_LUA},y)
  17. PKG_DEPENDS+= liblua
  18. PKG_BUILDDEP+= lua
  19. endif
  20. PKG_URL:= http://weechat.flashtux.org/download/
  21. PKG_SITES:= http://weechat.flashtux.org/download/
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,WEECHAT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. ifeq (${ADK_COMPILE_WEECHAT_WITH_TLS},y)
  25. ENABLE_TLS:= --with-libgnutls-prefix=${STAGING_DIR}/usr
  26. else
  27. ENABLE_TLS:= --disable-gnutls
  28. endif
  29. ifneq (${ADK_COMPILE_WEECHAT_WITH_LUA},y)
  30. DISABLE_LUA:= --disable-lua
  31. endif
  32. CONFIGURE_ARGS+= ${ENABLE_TLS} \
  33. --with-debug=0 \
  34. --disable-perl \
  35. --disable-python \
  36. --disable-ruby \
  37. --with-libiconv-prefix='${STAGING_DIR}/usr' \
  38. ${DISABLE_LUA}
  39. post-install:
  40. ${INSTALL_DIR} ${IDIR_WEECHAT}/usr/bin
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/weechat-curses \
  42. ${IDIR_WEECHAT}/usr/bin/
  43. include ${TOPDIR}/mk/pkg-bottom.mk