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
+gnutls
+libiconv
29 TITLE
:=Lightweight IRC client
30 DESCRIPTION
:=Fast
, light
& extensible IRC client
\\\
31 URL
:=http
://weechat.flashtux.org
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" \
41 --target
=$(GNU_TARGET_NAME
) \
42 --host
=$(GNU_TARGET_NAME
) \
43 --build
=$(GNU_HOST_NAME
) \
47 --with-libgnutls-prefix
=$(STAGING_DIR
)/usr \
56 $(call Build
/Compile
/Default
,DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Package
/weechat
/install
61 install -d
-m0755
$(1)/usr
/bin
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/weechat-curses
$(1)/usr
/bin
65 $(eval
$(call BuildPackage
,weechat
))