2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
17 PKG_MD5SUM:=69c292237bebd4b7a1ff29c0f9c76380
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/weechat
28 DEPENDS:=+libncurses +liblua +libgnutls
29 TITLE:=Lightweight IRC client
31 Weechat is fast, light & extensible IRC client.
32 URL:=http://weechat.flashtux.org/
35 define Build/Configure
36 $(call Build/Configure/Default, \
38 --with-libgnutls-prefix=$(STAGING_DIR)/usr \
39 --without-doc-xsl-prefix \
40 --without-libiconv-prefix \
41 --without-libintl-prefix \
44 --with-lua-inc="$(STAGING_DIR)/usr/include" \
45 --with-lua-lib="$(STAGING_DIR)/usr/lib" \
50 LIBS="-llua -ldl -lm" \
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
60 define Package/weechat/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
63 $(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/lua.so* $(1)/usr/lib/weechat/plugins/
67 $(eval $(call BuildPackage,weechat))