Port weechat to -ng, and upgrade it to 0.2.0, closes #740
[openwrt/svn-archive/archive.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 +gnutls +libiconv
29 TITLE:=Lightweight IRC client
30 DESCRIPTION:=Fast, light & extensible IRC client\\\
31 URL:=http://weechat.flashtux.org
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR); \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
39 LDFLAGS="-L$(STAGING_DIR)/usr/lib -liconv" \
40 ./configure \
41 --target=$(GNU_TARGET_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --build=$(GNU_HOST_NAME) \
44 --prefix=/usr \
45 --sysconfdir=/etc \
46 --disable-nls \
47 --with-libgnutls-prefix=$(STAGING_DIR)/usr \
48 --with-debug=0 \
49 --disable-perl \
50 --disable-python \
51 --disable-ruby \
52 );
53 endef
54
55 define Build/Compile
56 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
57 all install)
58 endef
59
60 define Package/weechat/install
61 install -d -m0755 $(1)/usr/bin
62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin
63 endef
64
65 $(eval $(call BuildPackage,weechat))