2006-09-17 11:57:40 +00:00
|
|
|
#
|
2010-03-24 04:49:34 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-09-17 11:57:40 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=weechat
|
2008-01-20 15:31:11 +00:00
|
|
|
PKG_VERSION:=0.2.6
|
|
|
|
PKG_RELEASE:=1
|
2006-09-17 11:57:40 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-03-24 04:49:34 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.weechat.org/files/src
|
2008-01-20 15:31:11 +00:00
|
|
|
PKG_MD5SUM:=ccdecf663b0050a23049acb4b9a76193
|
2006-09-17 11:57:40 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
2009-07-05 13:14:30 +00:00
|
|
|
PKG_CONFIG_DEPENDS = CONFIG_PACKAGE_weechat-mod-lua
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2006-09-17 11:57:40 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-09-09 14:09:25 +00:00
|
|
|
define Package/weechat/Default
|
2007-09-25 18:29:45 +00:00
|
|
|
SUBMENU:=Instant Messaging
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Lightweight IRC client
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://www.weechat.org/
|
2007-09-09 14:09:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/weechat/Default/description
|
|
|
|
Weechat is fast, light & extensible IRC client.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-09-17 11:57:40 +00:00
|
|
|
define Package/weechat
|
2007-09-09 14:09:25 +00:00
|
|
|
$(call Package/weechat/Default)
|
|
|
|
MENU=1
|
|
|
|
DEPENDS:=+libiconv +libgnutls +libncurses
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/weechat/description
|
|
|
|
$(call Package/weechat/Default/description)
|
2006-09-17 11:57:40 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:09:25 +00:00
|
|
|
|
|
|
|
define Package/weechat-mod-charset
|
|
|
|
$(call Package/weechat/Default)
|
|
|
|
TITLE+= (charset plugin)
|
|
|
|
DEPENDS:=weechat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/weechat-mod-charset/description
|
|
|
|
$(call Package/weechat/Default/description)
|
|
|
|
This packages contains a charset plugin for Weechat.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/weechat-mod-lua
|
|
|
|
$(call Package/weechat/Default)
|
2009-04-25 20:36:30 +00:00
|
|
|
TITLE+= (Lua plugin)
|
2009-09-03 02:14:24 +00:00
|
|
|
DEPENDS:=weechat +liblua @BROKEN
|
2007-09-09 14:09:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/weechat-mod-lua/description
|
|
|
|
$(call Package/weechat/Default/description)
|
2009-04-25 20:36:30 +00:00
|
|
|
This packages contains an Lua scripting plugin for Weechat.
|
2007-09-09 14:09:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
2007-06-30 15:31:25 +00:00
|
|
|
--with-debug=0 \
|
|
|
|
--with-libgnutls-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--without-doc-xsl-prefix \
|
|
|
|
--with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--disable-aspell \
|
|
|
|
--disable-perl \
|
|
|
|
--disable-python \
|
|
|
|
--disable-ruby \
|
2008-01-20 15:31:11 +00:00
|
|
|
LUACONFIG="" \
|
2010-02-17 17:22:16 +00:00
|
|
|
ac_cv_path_LIBGNUTLS_CONFIG="pkg-config gnutls" \
|
2007-06-30 15:31:25 +00:00
|
|
|
|
2010-02-17 17:22:16 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib \
|
|
|
|
-Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
2009-11-28 11:26:48 +00:00
|
|
|
|
2008-09-28 00:13:40 +00:00
|
|
|
ifneq ($(CONFIG_PACKAGE_weechat-mod-lua),)
|
2007-09-09 14:09:25 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-lua \
|
2008-02-05 15:39:22 +00:00
|
|
|
--enable-plugins \
|
|
|
|
--with-plugins="lua" \
|
2007-09-09 14:09:25 +00:00
|
|
|
--with-lua-inc="$(STAGING_DIR)/usr/include" \
|
2008-09-28 00:13:40 +00:00
|
|
|
--with-lua-lib="$(STAGING_DIR)/usr/lib"
|
2007-09-09 14:09:25 +00:00
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
LIBS="-ldl -lm"
|
2008-09-28 00:13:40 +00:00
|
|
|
TARGET_LDFLAGS += -lcrypt
|
2007-09-09 14:09:25 +00:00
|
|
|
else
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-lua
|
|
|
|
endif
|
|
|
|
|
|
|
|
define Build/Compile
|
2008-01-20 15:31:11 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(LUA_FLAGS) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
LUACONFIG="" \
|
|
|
|
all install
|
2007-09-09 14:09:25 +00:00
|
|
|
endef
|
2006-09-17 11:57:40 +00:00
|
|
|
|
2010-02-17 17:22:16 +00:00
|
|
|
define Package/weechat/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
|
2007-09-09 14:09:25 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BuildPlugin
|
|
|
|
|
2010-02-17 17:22:16 +00:00
|
|
|
define Package/weechat-mod-$(1)/install
|
2007-09-09 14:09:25 +00:00
|
|
|
$(INSTALL_DIR) $$(1)/usr/lib/weechat/plugins
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/$(1).so* $$(1)/usr/lib/weechat/plugins/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$$(eval $$(call BuildPackage,weechat-mod-$(1)))
|
2006-09-17 11:57:40 +00:00
|
|
|
endef
|
2007-06-20 12:05:20 +00:00
|
|
|
|
2006-09-17 11:57:40 +00:00
|
|
|
$(eval $(call BuildPackage,weechat))
|
2007-09-09 14:09:25 +00:00
|
|
|
$(eval $(call BuildPlugin,charset))
|
|
|
|
$(eval $(call BuildPlugin,lua))
|