Magellan Linux

Contents of /trunk/extras/bluez/bluez-4.41-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2034 - (show annotations) (download)
Fri Jun 12 16:46:25 2009 UTC (14 years, 11 months ago) by niro
File size: 2960 byte(s)
auto added: ver bump to 4.41-r1
1 # $Id$
2
3 PNAME="bluez"
4 PVER="4.41"
5 PBUILD="r1"
6
7 PCATEGORIE="net-wlan"
8 STATE="unstable"
9
10 DESCRIPTION=""
11 HOMEPAGE="http://www.bluez.org/"
12
13 DEPEND=">= dev-libs/glib2-2.20
14 >= dev-libs/libusb-0.1.12
15 >= dev-libs/libnl-1.1
16 >= media-libs/alsa-lib-1.0.19
17 >= media-libs/gstreamer-0.10.23
18 >= media-libs/gst-plugins-base-0.10.23
19 >= media-libs/libsndfile-1.0.20
20 >= net-print/cups-1.3
21 >= sys-fs/udev-142
22 >= sys-apps/dbus-1.2.14
23 >= sys-libs/pam-1"
24
25 SDEPEND=">= sys-dev/flex-2.5.35
26 >= dev-util/pkgconfig-0.23"
27
28 SRCFILE="${PNAME}-${PVER}.tar.gz"
29 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30
31 sminclude mtools
32
33 SRC_URI=(
34 http://www.kernel.org/pub/linux/bluetooth/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/bluetoothd.rc
37 mirror://${PNAME}/bluetoothd.confd
38 mirror://${PNAME}/udev-bluetooth.rules
39 mirror://${PNAME}/udev-bluetooth.sh
40 mirror://${PNAME}/${PNAME}-${PVER}-as-needed.patch
41 mirror://${PNAME}/${PNAME}-${PVER}-cups-location.patch
42 )
43
44 UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/bluetooth/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball gz"
45
46 src_prepare()
47 {
48 munpack ${SRCFILE} || die
49 cd ${SRCDIR}
50
51 # fix linking issues
52 mpatch ${PNAME}-${PVER}-as-needed.patch || die
53
54 # fix cups location, needed for multilib systems
55 mpatch ${PNAME}-${PVER}-cups-location.patch || die
56
57 # rebuild configure
58 autoreconf --install --force --verbose || die
59 }
60
61 src_compile()
62 {
63 cd ${SRCDIR}
64
65 mconfigure \
66 --localstatedir=/var \
67 --disable-debug \
68 --disable-gtk-doc \
69 --enable-network \
70 --enable-serial \
71 --enable-input \
72 --enable-audio \
73 --enable-service \
74 --enable-gstreamer \
75 --enable-alsa \
76 --enable-usb \
77 --enable-netlink \
78 --enable-tools \
79 --enable-bccmd \
80 --enable-hid2hci \
81 --enable-dfutool \
82 --disable-hidd \
83 --disable-pand \
84 --disable-dund \
85 --enable-cups \
86 --disable-test \
87 --enable-manpages \
88 --enable-configfiles \
89 --disable-initscripts \
90 --disable-pcmciarules \
91 || die
92
93 mmake || die
94 }
95
96 src_install()
97 {
98 cd ${BINDIR}
99
100 mmake DESTDIR=${BINDIR} install || die
101
102 # initscript
103 minstallrc bluetoothd.rc bluetoothd || die
104 minstallconfd bluetoothd.confd bluetoothd || die
105
106 # udev rules
107 minstalludevrule udev-bluetooth.rules 70-bluetooth.rules || die
108 minstalludevrule scripts/bluetooth.rules 70-bluetooth-pcmcia.rules || die
109 # udev helper
110 minstalludevhelper udev-bluetooth.sh bluetooth.sh || die
111 minstalludevhelper scripts/bluetooth_serial || die
112
113 # config
114 minstalldir /etc/bluetooth || die
115 minstallfile input/input.conf /etc/bluetooth || die
116 minstallfile audio/audio.conf /etc/bluetooth || die
117 minstallfile network/network.conf /etc/bluetooth || die
118
119 minstalldocs AUTHORS ChangeLog README || die
120 }
121
122 postinstall()
123 {
124 # reload udev-rules
125 udevadm control --reload_rules && udevadm trigger
126
127 # reload dbus
128 mreloadservice dbus
129
130 # start bluetooth service
131 mstartservice bluetoothd
132 }
133
134 postremove()
135 {
136 # stop bluetooth service
137 mstopservice bluetoothd
138
139 # reload dbus
140 mreloadservice dbus
141 }

Properties

Name Value
svn:keywords Id