fix weechat depends on gnutls
[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.0
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=69c292237bebd4b7a1ff29c0f9c76380
15
16 PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
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:=+libncurses +liblua +libgnutls +libiconv
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 define Build/Configure  
36         (cd $(PKG_BUILD_DIR); \
37         $(TARGET_CONFIGURE_OPTS) \
38         CFLAGS="$(TARGET_CFLAGS)" \
39         CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
40         LDFLAGS="-L$(STAGING_DIR)/usr/lib -liconv" \
41         ./configure \
42                 --target=$(GNU_TARGET_NAME) \
43                 --host=$(GNU_TARGET_NAME) \
44                 --build=$(GNU_HOST_NAME) \
45                 --prefix=/usr \
46                 --sysconfdir=/etc \
47                 --disable-nls \
48                 --with-libgnutls-prefix=$(STAGING_DIR)/usr \
49                 --with-debug=0 \
50                 --disable-perl \
51                 --disable-python \
52                 --disable-ruby \
53         );
54 endef
55
56 define Build/Compile
57 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
58         all install)
59 endef
60
61 define Package/weechat/install  
62         install -d -m0755 $(1)/usr/bin
63         $(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin
64 endef
65  
66 $(eval $(call BuildPackage,weechat))