Root/mcabber/Makefile

1# $Id: Makefile 5624 2006-11-23 00:29:07Z Jirka $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=mcabber
6PKG_VERSION:=0.9.10
7PKG_RELEASE:=3
8# http://mcabber.com/files/mcabber-0.10.0.tar.bz2
9
10PKG_SOURCE:=mcabber-$(PKG_VERSION).tar.bz2
11PKG_SOURCE_URL:=http://mcabber.com/files/
12PKG_MD5SUM:=887415d16c32af58eab2ec2d9bb17fa6
13PKG_CAT:=bzip2 -cd
14
15PKG_BUILD_DIR:=$(BUILD_DIR)/mcabber-$(PKG_VERSION)
16
17include $(INCLUDE_DIR)/package.mk
18include $(INCLUDE_DIR)/nls.mk
19
20define Package/mcabber
21    SECTION:=network
22    CATEGORY:=Network
23    TITLE:=Mcabber
24    DEPENDS:=+libncursesw +libreadline $(INTL_DEPENDS) $(ICONV_DEPENDS) +libcharset +libopenssl
25    URL:=http://mcabber.com/
26endef
27
28define Package/mcabber/description
29    Terminal Jabber client.
30endef
31
32EXTRA_CFLAGS += \
33        -I$(STAGING_DIR)/usr/include
34
35EXTRA_LDFLAGS += \
36    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
37    -lm
38
39
40define Build/Configure
41    $(call Build/Configure/Default, \
42        --prefix=/usr --disable-opensearch --with-ssl --disable-gpgme \
43        export READLINE=1 \
44    )
45endef
46
47define Package/mcabber/install
48    $(INSTALL_DIR) $(1)/usr/bin/
49    $(INSTALL_DIR) $(1)/usr/share/mcabber/help/en/
50    $(INSTALL_DIR) $(1)/root/.mcabber/
51
52    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mcabber $(1)/usr/bin/
53    $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/help/en/*.txt $(1)/usr/share/mcabber/help/en/
54    $(INSTALL_DATA) ./files/mcabberrc.example $(1)/root/.mcabber/mcabberrc
55endef
56
57$(eval $(call BuildPackage,mcabber))
58

Archive Download this file



interactive