Magellan Linux

Contents of /branches/R11-unstable/extras/gnokii/gnokii-0.6.31-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21358 - (show annotations) (download)
Tue Jun 17 11:52:12 2014 UTC (9 years, 11 months ago) by niro
Original Path: trunk/extras/gnokii/gnokii-0.6.31-r3.smage2
File size: 1642 byte(s)
-rebuild against readline-6.3
1 # $Id$
2
3 PNAME="gnokii"
4 PVER="0.6.31"
5 PBUILD="r3"
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.3
13 >= dev-libs/glib2-2.38
14 >= dev-libs/libical-1.0
15 >= dev-libs/libusb-1
16 >= x11-libs/gtk2+-2.24
17 >= sys-apps/pcsc-lite-1.8
18 >= net-wlan/bluez-5.14"
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 }