9a512f3978
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7801 3c298f89-4303-0410-b956-a3cf2f4a3e73
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=weechat
|
|
PKG_VERSION:=0.2.5
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=http://weechat.flashtux.org/download/
|
|
PKG_MD5SUM:=42f96620c3b2fd3dca9768d9ce16dd06
|
|
PKG_CAT:=bzcat
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/weechat
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libiconv +libncurses +liblua +libgnutls
|
|
TITLE:=Lightweight IRC client
|
|
DESCRIPTION:=\
|
|
Weechat is fast, light & extensible IRC client.
|
|
URL:=http://weechat.flashtux.org/
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--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 \
|
|
--enable-lua \
|
|
--with-lua-inc="$(STAGING_DIR)/usr/include" \
|
|
--with-lua-lib="$(STAGING_DIR)/usr/lib" \
|
|
--disable-perl \
|
|
--disable-python \
|
|
--disable-ruby \
|
|
, \
|
|
LIBS="-llua -ldl -lm -L$(STAGING_DIR)/usr/lib/libiconv/lib"
|
|
|
|
MAKE_FLAGS += \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
all install
|
|
|
|
define Package/weechat/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
|
|
# FIXME : weechat is not configured to compile with lua since 0.2.4
|
|
#$(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/lua.so* $(1)/usr/lib/weechat/plugins/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,weechat))
|