Magellan Linux

Contents of /branches/magellan-next/extras/pidgin/pidgin-2.10.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9418 - (show annotations) (download)
Tue Nov 29 11:54:00 2011 UTC (12 years, 5 months ago) by niro
File size: 3341 byte(s)
auto added: ver bump to 2.10.0-r1
1 # $Id$
2
3 PNAME="pidgin"
4 PVER="2.10.0"
5 PBUILD="r1"
6
7 PCATEGORIE="net-im"
8
9 DESCRIPTION="Pigin is a multi-protocol instant messaging client for Linux."
10 HOMEPAGE="http://www.pidgin.im/"
11
12 DEPEND="
13 >= dev-libs/glib2-2.28
14 >= x11-libs/gtk2+-2.24
15 >= dev-libs/nspr-4.8
16 >= dev-libs/nss-3.12
17 >= app-text/gtkspell-2.0.16
18 >= x11-libs/startup-notification-0.12
19 >= dev-lang/perl-5.14
20 >= dev-lang/tcl-8.5
21 >= dev-lang/tk-8.5
22 >= sys-apps/dbus-1.5
23 >= dev-libs/dbus-glib-0.98
24 >= dev-libs/cyrus-sasl-2.1
25 >= media-libs/gstreamer-0.10.35
26 >= media-libs/gst-plugins-base-0.10.35
27 >= media-libs/gst-plugins-good-0.10.30
28 >= dev-db/sqlite-3.7
29 >= x11-libs/libXScrnSaver-1.2
30 >= net-libs/meanwhile-1.0.2
31 >= net-dns/avahi-0.6.30
32 >= net-dns/libidn-1.23
33 >= net-libs/libgadu-1.11
34 >= sys-libs/ncurses-5.9
35 >= net-misc/networkmanager-0.9"
36 # Todo: farsight2 support for voice/video -> --disable-vv atm
37
38 SDEPEND=">= sys-dev/gettext-0.18"
39
40 SRCFILE="${PNAME}-${PVER}.tar.bz2"
41 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
42
43 PIDGIN_ENC_PVER="3.1"
44 PIDGIN_ENC_FILE="${PNAME}-encryption-${PIDGIN_ENC_PVER}.tar.gz"
45 PIDGIN_ENC_DIR="${BUILDDIR}/${PNAME}-encryption-${PIDGIN_ENC_PVER}"
46
47 sminclude mtools
48
49 SRC_URI=(
50 sourceforge://${PNAME}/${SRCFILE}
51 sourceforge://pidgin-encrypt/${PIDGIN_ENC_FILE}
52 mirror://${PNAME}/${SRCFILE}
53 mirror://${PNAME}/${PIDGIN_ENC_FILE}
54 mirror://${PNAME}/pidgin-2.0.2-prefs.xml
55 mirror://${PNAME}/${PNAME}-${PVER}-nm09-more.patch
56 )
57
58 UP2DATE="updatecmd ${HOMEPAGE}/download/source/ | lasttarball"
59
60 src_prepare()
61 {
62 munpack ${SRCFILE} || die
63 munpack ${PIDGIN_ENC_FILE} || die
64 cd ${SRCDIR}
65
66 # networkmanager-0.9 fixes from upstream
67 # see: http://developer.pidgin.im/ticket/13859
68 mpatch ${PNAME}-${PVER}-nm09-more.patch || die
69 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 # pidgin
76 mconfigure \
77 --enable-nss \
78 --enable-perl \
79 --enable-tcl \
80 --enable-tk \
81 --enable-dbus \
82 --enable-gstreamer \
83 --enable-cyrus-sasl \
84 --enable-meanwhile \
85 --enable-avahi \
86 --enable-consoleui \
87 --enable-cap \
88 --enable-idn \
89 --enable-nm \
90 --with-gadu-includes=. \
91 --with-gadu-libs=. \
92 --disable-mono \
93 --disable-gevolution \
94 --disable-vv \
95 || die
96
97 mmake || die
98
99 # pidgin-encryption
100 cd ${PIDGIN_ENC_DIR}
101
102 PKG_CONFIG_PATH=${SRCDIR}/pidgin:${SRCDIR}/libpurple:${PKG_CONFIG_PATH} \
103 mconfigure || die
104 mmake || die
105 }
106
107 src_install()
108 {
109
110 # pidgin
111 cd ${SRCDIR}
112
113 # needed directories
114 minstalldir /etc/purple || die
115 minstalldir /usr/include/pidgin/src || die
116
117 mmake DESTDIR=${BINDIR} install || die
118
119 # install default preferences
120 minstallfile -s pidgin-2.0.2-prefs.xml /etc/purple/prefs.xml || die
121
122 # install includes
123 minstallfile config.h /usr/include/pidgin || die
124
125 cd ${SRCDIR}/src
126 tar cf - *.h | (cd ${BINDIR}/usr/include/pidgin/src ; tar xvf -)
127
128 cd ${SRCDIR}
129 minstalldocs ABOUT-NLS NEWS AUTHORS PROGRAMMING_NOTES COPYING \
130 README* COPYRIGHT ChangeLog* HACKING \
131 doc/CREDITS doc/FAQ || die
132
133 # pidgin-encryption
134 cd ${PIDGIN_ENC_DIR}
135
136 # needed directories
137 minstalldir /usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die
138
139 mmake DESTDIR=${BINDIR} install || die
140
141 # docs
142 local i
143 for i in CHANGELOG INSTALL NOTES README TODO VERSION WISHLIST
144 do
145 minstallfile ${i} /usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die ${i}
146 done
147 gzip -r9 ${BINDIR}/usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die
148 }