aboutsummaryrefslogtreecommitdiff
path: root/network/pidgin/pidgin.build
blob: a2594794b09255bd6a35571ceb132a2d2f318a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>

source /usr/src/ports/Build/build.sh

NAME=pidgin
VERSION=2.10.7
BUILD=1
DEPENDS=('gtk+ >= 2.24.17-1' 'libxml >= 2.9.0-1' 'gnutls >= 3.1.10-1' 'gstreamer >= 1.0.6-1' 'farstream >= 0.2.2-1' 'dbus_glib >= 0.100.2-1' 'networkmanager >= 0.9.8.0-1')
OPTDEPENDS=('libotr >= 4.0.0-1' 'libnotify >= 0.7.5-1' 'avahi >= 0.6.31-1')

# Description

cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: Pidgin (multi-protocol chat client)
${NAME}:
${NAME}: Pidgin is an instant message client that supports many protocols,
${NAME}: including MSN, AIM, Yahoo!, Jabber, ICQ, IRC, Groupwise, SILC,
${NAME}: Gadu-Gadu and Zephyr.
${NAME}:
${NAME}: Homepage: http://pidgin.im
${NAME}:
${NAME}:
${NAME}:
${NAME}:
EOF

cat > ${PKG}/install/doinst.sh <<EOF
#!/bin/sh

if [ -x usr/bin/gtk-update-icon-cache ]; then
  usr/bin/gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
fi
EOF

# Sources

export PKG_CONFIG_PATH="${PKG}${SYS_DIR[share]}/pkgconfig"
export PIDGIN_INCS="-I${PKG}${SYS_DIR[include]}/pidgin -I${PKG}${SYS_DIR[include]}/libpurple"

configure()
{
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
 --build="${ARCH}-slackware-linux" \
 --disable-dependency-tracking \
 --enable-static=no \
 --enable-shared=yes \
 --prefix="${SYS_DIR[usr]}" \
 --mandir="${SYS_DIR[man]}" \
 --sysconfdir="${SYS_DIR[etc]}" \
 --libdir="${SYS_DIR[lib]}" \
 --localstatedir="${SYS_DIR[var]}" \
 ${*}
}

SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCPACK[0]=${URL[sf]}/${SRCNAME[0]}/files/Pidgin/${SRCVERS[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCCOPY[0]="GPL2"

build0()
{
sed -i 's|$(libdir)/pkgconfig|$(datarootdir)/pkgconfig|g' $(find . -name "Makefile.in")
sed -i 's|$(libdir)/gnt|$(libdir)/plugins/gnt|g' $(find finch -name "Makefile.in")
sed -i 's|$(libdir)/finch|$(libdir)/plugins/finch|g' $(find finch -name "Makefile.in")
sed -i 's|$(libdir)/pidgin|$(libdir)/plugins/pidgin|g' $(find pidgin -name "Makefile.in")
sed -i 's|${libdir}/pidgin|${libdir}/plugins/pidgin|g' $(find pidgin -name "*.pc.in")
sed -i 's|$(libdir)/purple-$(PURPLE_MAJOR_VERSION)|$(libdir)/plugins/purple-$(PURPLE_MAJOR_VERSION)|g' $(find libpurple -name "Makefile.in")
sed -i 's|${libdir}/purple-@PURPLE_MAJOR_VERSION@|${libdir}/plugins/purple-@PURPLE_MAJOR_VERSION@|g' $(find libpurple -name "*.pc.in")
configure \
 --disable-silent-rules \
 --disable-debug \
 --disable-perl \
 --disable-tcl \
 --disable-doxygen \
 --disable-schemas-install \
 --disable-startup-notification \
 --disable-meanwhile \
 --disable-gtkspell \
 --disable-gstreamer \
 --disable-vv \
 --enable-gnutls=yes \
 --enable-cap \
 --enable-nm \
 --with-system-ssl-certs="${SYS_DIR[etc]}/ssl/certs"
make ${JOBS} V=1
make install DESTDIR="${PKG}"
doc AUTHORS COPYRIGHT doc/gtkrc-2.0
changelog ChangeLog
#FIXME: Finch ought to be a subpackage
}

SRCNAME[1]=${NAME}-otr
SRCVERS[1]=4.0.0
SRCPACK[1]=${URL[sf]}/${SRCNAME[1]}/${SRCNAME[1]}-${SRCVERS[1]}.tar.gz
SRCCOPY[1]="GPL2"

build1()
{
sed -i 's|${libdir}/pidgin|${libdir}/plugins/pidgin|g' Makefile.{am,in}
CPPFLAGS="${PIDGIN_INCS}" \
configure
make ${JOBS}
make install DESTDIR="${PKG}"
doc AUTHORS
changelog NEWS
}

SRCNAME[2]=${NAME}-nudge
SRCVERS[2]=20101006
SRCPACK[2]=${SRCNAME[2]}-${SRCVERS[2]}.tar.xz

build2()
{
sed -i 's|$(LIBDIR)/purple-2|$(LIBDIR)/plugins/purple-2|g' Makefile
make ${JOBS} CFLAGS="${FLAGS}" Q="" \
 EXTRA_CFLAGS="${PIDGIN_INCS}" \
 EXTRA_LIBS="-L${PKG}${SYS_DIR[lib]}"
make install DESTDIR="${PKG}" LIBDIR="${SYS_DIR[lib]}"
}

SRCNAME[3]=purple-libnotify-plus
SRCVERS[3]=20130423
SRCPACK[3]=${SRCNAME[3]}-${SRCVERS[3]}.tar.xz
SRCCOPY[3]="GPL3"

build3()
{
CPPFLAGS="${PIDGIN_INCS}" \
configure \
 --with-purple-plugindir="${SYS_DIR[lib]}/plugins/purple-2"
make ${JOBS}
make install DESTDIR="${PKG}"
doc AUTHORS
}

SRCNAME[4]=pidgin-musictracker
SRCVERS[4]=0.4.22
SRCPACK[4]=http://${SRCNAME[4]}.googlecode.com/files/${SRCNAME[4]}-${SRCVERS[4]}.tar.bz2
SRCCOPY[4]="GPL2"

build4()
{
sed -i 's|$(libdir)/pidgin|$(libdir)/plugins/pidgin|g' $(find . -name "Makefile.in")
PIDGIN_CFLAGS="${PIDGIN_INCS}" \
configure
make ${JOBS}
make install DESTDIR="${PKG}"
doc AUTHORS
changelog ChangeLog
}

SRCNAME[5]=pbar
SRCVERS[5]=0.3
SRCPACK[5]=${SRCNAME[5]}-${SRCVERS[5]}.tar.xz
SRCCOPY[5]="GPL3"

build5()
{
make ${JOBS} OPTS="${FLAGS}" \
 EXTRA_CFLAGS="${PIDGIN_INCS}" \
 EXTRA_LIBS="-L${PKG}${SYS_DIR[lib]} -lpurple"
make install DESTDIR="${PKG}" PREFIX="${SYS_DIR[usr]}"
changelog ChangeLog
}