cbtt: add -nodefaultlibs to LFLAGS
[packages.git] / net / weechat / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=weechat
12 PKG_VERSION:=0.2.5
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
17 PKG_MD5SUM:=42f96620c3b2fd3dca9768d9ce16dd06
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/weechat
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+libiconv +libncurses +liblua +libgnutls
29   TITLE:=Lightweight IRC client
30   DESCRIPTION:=\
31         Weechat is fast, light & extensible IRC client.
32   URL:=http://weechat.flashtux.org/
33 endef
34
35 CONFIGURE_ARGS += \
36         --with-debug=0 \
37         --with-libgnutls-prefix=$(STAGING_DIR)/usr \
38         --without-doc-xsl-prefix \
39         --with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \
40         --without-libintl-prefix \
41         --disable-aspell \
42         --enable-lua \
43         --with-lua-inc="$(STAGING_DIR)/usr/include" \
44         --with-lua-lib="$(STAGING_DIR)/usr/lib" \
45         --disable-perl \
46         --disable-python \
47         --disable-ruby \
48         , \
49         LIBS="-llua -ldl -lm -L$(STAGING_DIR)/usr/lib/libiconv/lib"
50
51 MAKE_FLAGS += \
52         DESTDIR="$(PKG_INSTALL_DIR)" \
53         all install
54
55 define Package/weechat/install  
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
58         $(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
59         # FIXME : weechat is not configured to compile with lua since 0.2.4
60         #$(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/lua.so* $(1)/usr/lib/weechat/plugins/
61 endef
62
63 $(eval $(call BuildPackage,weechat))