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
14 PKG_MD5SUM
:=69c292237bebd4b7a1ff29c0f9c76380
16 PKG_SOURCE_URL
:=http
://weechat.flashtux.org
/download
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
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
+libiconv
29 TITLE
:=Lightweight IRC client
31 Weechat is fast
, light
& extensible IRC client.
32 URL
:=http
://weechat.flashtux.org
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" \
42 --target
=$(GNU_TARGET_NAME
) \
43 --host
=$(GNU_TARGET_NAME
) \
44 --build
=$(GNU_HOST_NAME
) \
48 --with-libgnutls-prefix
=$(STAGING_DIR
)/usr \
57 $(call Build
/Compile
/Default
,DESTDIR
="$(PKG_INSTALL_DIR)" \
61 define Package
/weechat
/install
62 install -d
-m0755
$(1)/usr
/bin
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/weechat-curses
$(1)/usr
/bin
66 $(eval
$(call BuildPackage
,weechat
))