Magellan Linux

Contents of /branches/R11-stable/extras/gnokii/gnokii-0.6.31-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15137 - (show annotations) (download)
Wed Jan 2 10:49:15 2013 UTC (11 years, 10 months ago) by niro
File size: 1643 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="gnokii"
4 PVER="0.6.31"
5 PBUILD="r1"
6
7 PCAT="app-misc"
8
9 DESCRIPTION="gnokii provides tools and a user space driver for use with mobile phones."
10 HOMEPAGE="http://www.gnokii.org/"
11
12 DEPEND=">= sys-libs/readline-6.2
13 >= dev-libs/glib2-2.34
14 >= dev-libs/libical-0.48
15 >= dev-libs/libusb-1
16 >= x11-libs/gtk2+-2.24
17 >= sys-apps/pcsc-lite-1.8
18 >= net-wlan/bluez-4.95"
19
20 SDEPEND=">= sys-dev/gettext-0.18
21 >= virtual/kernel-headers"
22
23 SRCFILE="${PNAME}-${PVER}.tar.bz2"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 sminclude mtools mbuild
27
28 SRC_URI=(
29 http://www.gnokii.org/download/${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 )
32
33 UP2DATE="updatecmd ${HOMEPAGE}/download/${PNAME}/ | grep ${PNAME}-[0-9] | lasttarball"
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38
39 mconfigure \
40 --disable-fulldebug \
41 --disable-xdebug \
42 --disable-rlpdebug \
43 --enable-nls \
44 --enable-security \
45 --disable-unix98test \
46 --enable-libpcsclite \
47 --enable-libical \
48 --enable-libusb \
49 --enable-irda \
50 --enable-bluetooth \
51 --enable-smsd \
52 --with-x \
53 --disable-mysql \
54 --disable-postgres \
55 || die
56
57 mmake || die
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}
63 minstall || die
64
65 # needs suid bit
66 mchmod 4755 /usr/sbin/mgnokiidev || die
67
68 # gnokii config
69 sed -i 's:/usr/local:/usr:' Docs/sample/gnokiirc || die
70 minstalletc Docs/sample/gnokiirc || die
71
72 # missing desktop icon
73 minstallpixmap Docs/sample/logo/gnokii.xpm xgnokii.xpm || die
74 }
75
76 postinstall()
77 {
78 echo
79 echo "Make sure the user that runs gnokii has read/write access to the device"
80 echo "which your phone is connected to."
81 echo "The simple way of doing that is to add your user to the uucp group."
82 echo
83 }