c4e09055e4ff98e5274732753b9fd0f60c13f526
[openwrt/svn-archive/archive.git] / net / weechat / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=weechat
11 PKG_VERSION:=0.3.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.weechat.org/files/src
16 PKG_MD5SUM:=0d2a089bfbfa550e0c65618a171fb3c4
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/weechat/Default
25 SUBMENU:=Instant Messaging
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Lightweight IRC client
29 URL:=http://www.weechat.org/
30 endef
31
32 define Package/weechat/Default/description
33 Weechat is fast, light & extensible IRC client.
34 endef
35
36
37 define Package/weechat
38 $(call Package/weechat/Default)
39 DEPENDS:=+libgnutls +libncursesw $(ICONV_DEPENDS)
40 endef
41
42 define Package/weechat/description
43 $(call Package/weechat/Default/description)
44 endef
45
46 CMAKE_OPTIONS+= \
47 -DENABLE_PYTHON=OFF \
48 -DENABLE_PERL=OFF \
49 -DENABLE_LUA=OFF
50
51 TARGET_LDFLAGS += \
52 -L$(ICONV_PREFIX)/lib \
53 -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
54
55 define Package/weechat/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
58 $(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/* \
61 $(1)/usr/lib/weechat/plugins/
62 endef
63
64 $(eval $(call BuildPackage,weechat))