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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://weechat.flashtux.org
/download
/
17 PKG_MD5SUM
:=42f96620c3b2fd3dca9768d9ce16dd06
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/weechat
/Default
22 SUBMENU
:=Instant Messaging
25 TITLE
:=Lightweight IRC client
26 URL
:=http
://weechat.flashtux.org
/
29 define Package
/weechat
/Default
/description
30 Weechat is fast
, light
& extensible IRC client.
34 define Package
/weechat
35 $(call Package
/weechat
/Default
)
37 DEPENDS
:=+libiconv
+libgnutls
+libncurses
40 define Package
/weechat
/description
41 $(call Package
/weechat
/Default
/description
)
45 define Package
/weechat-mod-charset
46 $(call Package
/weechat
/Default
)
47 TITLE
+= (charset plugin
)
51 define Package
/weechat-mod-charset
/description
52 $(call Package
/weechat
/Default
/description
)
53 This packages contains a charset plugin for Weechat.
57 define Package
/weechat-mod-lua
58 $(call Package
/weechat
/Default
)
60 DEPENDS
:=weechat
+liblua
63 define Package
/weechat-mod-lua
/description
64 $(call Package
/weechat
/Default
/description
)
65 This packages contains an LUA scripting plugin for Weechat.
71 --with-libgnutls-prefix
=$(STAGING_DIR
)/usr \
72 --without-doc-xsl-prefix \
73 --with-libiconv-prefix
="$(STAGING_DIR)/usr/lib/libiconv" \
74 --without-libintl-prefix \
81 LDFLAGS
="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
83 ifndef ($(SDK
)$(CONFIG_PACKAGE_weechat-mod-lua
),)
86 --with-lua-inc
="$(STAGING_DIR)/usr/include" \
87 --with-lua-lib
="$(STAGING_DIR)/usr/lib"
96 define Build
/Configure
97 $(call Build
/Configure
/Default
)
98 $(call libtool_disable_rpath
)
102 $(MAKE
) -C
$(PKG_BUILD_DIR
) all
103 $(call libtool_fixup_libdir
,$(PKG_INSTALL_DIR
))
104 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
107 define Package
/weechat
/install
108 $(INSTALL_DIR
) $(1)/usr
/bin
109 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/weechat-curses
$(1)/usr
/bin
/
110 $(INSTALL_DIR
) $(1)/usr
/lib
/weechat
/plugins
115 define Package
/weechat-mod-
$(1)/install
116 $(INSTALL_DIR
) $$(1)/usr
/lib
/weechat
/plugins
117 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/weechat
/plugins
/$(1).so
* $$(1)/usr
/lib
/weechat
/plugins
/
120 $$(eval
$$(call BuildPackage
,weechat-mod-
$(1)))
123 $(eval
$(call BuildPackage
,weechat
))
124 $(eval
$(call BuildPlugin
,charset
))
125 $(eval
$(call BuildPlugin
,lua
))