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