42a448c39b075afa3e3af9783404af46cf02b678
[openwrt/svn-archive/archive.git] / net / irssi / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=irssi
11 PKG_VERSION:=0.8.10
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://irssi.org/files/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)a.tar.bz2
16 PKG_MD5SUM:=38e616bccb6a34ff6d91690317c2fa19
17 PKG_CAT:=bzcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/irssi
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+glib +libncurses
27 TITLE:=console irc client
28 DESCRIPTION:=IRC client for the text console
29 URL:=http://irssi.org
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default,--with-perl=no \
34 --with-glib1 \
35 --with-gnu-ld \
36 --with-textui \
37 --without-terminfo \
38 --without-bot \
39 --without-file-offset-size \
40 --without-ssl \
41 --disable-ssl \
42 --disable-ipv6 \
43 --disable-proxy \
44 --with-glib-prefix=$(STAGING_DIR)/usr,ac_cv_c_bigendian=no \
45 ac_cv_sizeof_off_t=8)
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 CC=$(TARGET_CC)
51 endef
52
53 define Package/irssi/install
54 mkdir -p $(1)/usr/bin
55 $(CP) $(PKG_BUILD_DIR)/src/fe-text/$(PKG_NAME) $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,irssi))