Makefile 1.4 KB

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