Root/pidgin/Makefile

1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=pidgin
9PKG_VERSION:=2.7.11
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=@SF/$(PKG_NAME)
14PKG_MD5SUM:=07c2a2535b4d7436b5ec7685fe063fec
15
16PKG_INSTALL:=1
17
18include $(INCLUDE_DIR)/package.mk
19include $(INCLUDE_DIR)/nls.mk
20
21define Package/libpurple
22  SECTION:=libs
23  CATEGORY:=Libraries
24  DEPENDS:=+libxml2 +libgnutls +libncursesw +glib2 $(ICONV_DEPENDS) $(INTL_DEPENDS)
25  TITLE:=libpurple is intended to be the core of an IM program
26  URL:=http://developer.pidgin.im
27endef
28
29define Package/libpurple/description
30    libpurple is intended to be the core of an IM program. When using libpurple, you'll basically be writing a UI for this core chunk of code.
31endef
32
33define Build/Configure
34    $(call Build/Configure/Default, \
35        --enable-shared \
36        --enable-static \
37        --disable-screensaver \
38        --disable-sm \
39        --disable-gtkspell \
40        --without-x \
41        --disable-gstreamer \
42        --disable-vv \
43        --disable-idn \
44        --disable-meanwhile \
45        --disable-avahi \
46        --disable-dbus \
47        --disable-perl \
48        --with-gnutls-libs=$(STAGING_DIR)/usr/lib \
49        --with-gnutls-includes=$(STAGING_DIR)/usr/include \
50        --with-ncurses-headers=$(STAGING_DIR)/usr/include/ncursesw \
51        --disable-gtkui \
52        --disable-consoleui \
53        --disable-tcl \
54        --disable-tk \
55    )
56endef
57
58TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(INTL_LDFLAGS)
59
60define Build/InstallDev
61    $(INSTALL_DIR) $(1)/usr/include/libpurple
62    $(CP) \
63        $(PKG_INSTALL_DIR)/usr/include/libpurple/* \
64        $(1)/usr/include/libpurple
65
66    $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/lib/purple-2 $(1)/usr/lib/pkgconfig
67    $(CP) \
68        $(PKG_INSTALL_DIR)/usr/lib/libpurple.{la,a,so*} \
69        $(1)/usr/lib
70    $(CP) \
71        $(PKG_INSTALL_DIR)/usr/lib/purple-2/* \
72        $(1)/usr/lib/purple-2
73    $(CP) \
74        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/purple.pc \
75        $(1)/usr/lib/pkgconfig
76
77    $(INSTALL_DIR) $(1)/usr/share/aclocal
78    $(INSTALL_DATA) \
79        $(PKG_INSTALL_DIR)/usr/share/aclocal/purple.m4 \
80        $(1)/usr/share/aclocal
81endef
82
83define Package/libpurple/install
84    $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/lib/purple-2
85    $(CP) \
86        $(PKG_INSTALL_DIR)/usr/lib/libpurple.so* \
87        $(1)/usr/lib
88    $(CP) \
89        $(PKG_INSTALL_DIR)/usr/lib/purple-2/*.so* \
90        $(1)/usr/lib/purple-2
91endef
92
93$(eval $(call BuildPackage,libpurple))
94

Archive Download this file



interactive