Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9415 - (show annotations) (download)
Tue Nov 29 10:07:20 2011 UTC (12 years, 5 months ago) by niro
File size: 3171 byte(s)
import from trunk
1 # $Id: pidgin-2.6.6-r1.smage2 5116 2010-03-07 18:47:17Z niro $
2
3 PNAME="pidgin"
4 PVER="2.7.7"
5 PBUILD="r1"
6
7 PCATEGORIE="net-im"
8 STATE="unstable"
9
10 DESCRIPTION="Pigin is a multi-protocol instant messaging client for Linux."
11 HOMEPAGE="http://www.pidgin.im/"
12
13 DEPEND=">= x11-libs/gtk2+-2.18
14 >= dev-libs/glib2-2.22
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.10
19 >= dev-lang/perl-5.10
20 >= dev-lang/tcl-8.5
21 >= dev-lang/tk-8.5
22 >= sys-apps/dbus-1.3
23 >= dev-libs/dbus-glib-0.82
24 >= dev-libs/cyrus-sasl-2.1
25 >= media-libs/gstreamer-0.10.25
26 >= media-libs/gst-plugins-base-0.10.25
27 >= media-libs/gst-plugins-good-0.10.16
28 >= dev-db/sqlite-3.6
29 >= x11-libs/libXScrnSaver-1
30 >= net-libs/meanwhile-1
31 >= net-dns/avahi-0.6.25
32 >= net-dns/libidn-1.15
33 >= net-libs/libgadu-1.8.2
34 >= sys-libs/ncurses-5.7"
35
36 # Todo: farsight2 support for voice/video -> --disable-vv atm
37
38 SDEPEND=">= sys-dev/gettext-0.17"
39
40 SRCFILE="${PNAME}-${PVER}.tar.bz2"
41 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
42
43 PIDGIN_ENC_PVER="3.0"
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 )
56
57 UP2DATE="updatecmd ${HOMEPAGE}/download/source/ | lasttarball"
58
59 src_prepare()
60 {
61 munpack ${SRCFILE} || die
62 munpack ${PIDGIN_ENC_FILE} || die
63 }
64
65 src_compile()
66 {
67 cd ${SRCDIR}
68
69 # pidgin
70 mconfigure \
71 --enable-nss \
72 --enable-perl \
73 --enable-tcl \
74 --enable-tk \
75 --enable-dbus \
76 --enable-gstreamer \
77 --enable-cyrus-sasl \
78 --enable-meanwhile \
79 --enable-avahi \
80 --enable-consoleui \
81 --enable-cap \
82 --enable-idn \
83 --with-gadu-includes=. \
84 --with-gadu-libs=. \
85 --disable-mono \
86 --disable-gevolution \
87 --disable-nm \
88 --disable-vv \
89 || die
90
91 mmake || die
92
93 # pidgin-encryption
94 cd ${PIDGIN_ENC_DIR}
95
96 PKG_CONFIG_PATH=${SRCDIR}/pidgin:${SRCDIR}/libpurple:${PKG_CONFIG_PATH} \
97 mconfigure || die
98 mmake || die
99 }
100
101 src_install()
102 {
103
104 # pidgin
105 cd ${SRCDIR}
106
107 # needed directories
108 minstalldir /etc/purple || die
109 minstalldir /usr/include/pidgin/src || die
110
111 mmake DESTDIR=${BINDIR} install || die
112
113 # install default preferences
114 minstallfile -s pidgin-2.0.2-prefs.xml /etc/purple/prefs.xml || die
115
116 # install includes
117 minstallfile config.h /usr/include/pidgin || die
118
119 cd ${SRCDIR}/src
120 tar cf - *.h | (cd ${BINDIR}/usr/include/pidgin/src ; tar xvf -)
121
122 cd ${SRCDIR}
123 minstalldocs ABOUT-NLS NEWS AUTHORS PROGRAMMING_NOTES COPYING \
124 README* COPYRIGHT ChangeLog* HACKING \
125 doc/CREDITS doc/FAQ || die
126
127 # pidgin-encryption
128 cd ${PIDGIN_ENC_DIR}
129
130 # needed directories
131 minstalldir /usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die
132
133 mmake DESTDIR=${BINDIR} install || die
134
135 # docs
136 local i
137 for i in CHANGELOG INSTALL NOTES README TODO VERSION WISHLIST
138 do
139 minstallfile ${i} /usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die ${i}
140 done
141 gzip -r9 ${BINDIR}/usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die
142 }