Contents of /branches/magellan-next/extras/bluez/bluez-4.95-r1.smage2
Parent Directory | Revision Log
Revision 8463 -
(show annotations)
(download)
Tue Jul 19 07:09:25 2011 UTC (13 years, 2 months ago) by niro
File size: 3161 byte(s)
Tue Jul 19 07:09:25 2011 UTC (13 years, 2 months ago) by niro
File size: 3161 byte(s)
auto added: ver bump to 4.95-r1
1 | # $Id$ |
2 | |
3 | PNAME="bluez" |
4 | PVER="4.95" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-wlan" |
8 | |
9 | DESCRIPTION="Libraries and tools for the Bluetooth protocol stack." |
10 | HOMEPAGE="http://www.bluez.org/" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.28 |
13 | >= dev-libs/libusb-1.0 |
14 | >= dev-libs/libnl-1.1 |
15 | >= media-libs/alsa-lib-1.0.24 |
16 | >= media-libs/gstreamer-0.10.35 |
17 | >= media-libs/gst-plugins-base-0.10.35 |
18 | >= media-libs/libsndfile-1.0.25 |
19 | >= net-print/cups-1.4 |
20 | >= sys-fs/udev-171 |
21 | >= sys-apps/dbus-1.4 |
22 | >= sys-libs/pam-1.1" |
23 | |
24 | SDEPEND=">= sys-dev/flex-2.5.35 |
25 | >= dev-util/pkgconfig-0.25" |
26 | |
27 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
29 | |
30 | sminclude mtools |
31 | |
32 | SRC_URI=( |
33 | http://www.kernel.org/pub/linux/bluetooth/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | mirror://${PNAME}/bluetoothd.rc |
36 | mirror://${PNAME}/bluetoothd.confd |
37 | mirror://${PNAME}/udev-bluetooth.rules |
38 | mirror://${PNAME}/udev-bluetooth.sh |
39 | mirror://${PNAME}/${PNAME}-4.56-as-needed.patch |
40 | mirror://${PNAME}/${PNAME}-4.56-cups-location.patch |
41 | ) |
42 | |
43 | UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/bluetooth/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball gz" |
44 | |
45 | src_prepare() |
46 | { |
47 | munpack ${SRCFILE} || die |
48 | cd ${SRCDIR} |
49 | |
50 | # fix linking issues |
51 | mpatch ${PNAME}-4.56-as-needed.patch || die |
52 | |
53 | # fix cups location, needed for multilib systems |
54 | mpatch ${PNAME}-4.56-cups-location.patch || die |
55 | |
56 | # rebuild configure |
57 | autoreconf --install --force --verbose || die |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | mconfigure \ |
65 | --localstatedir=/var \ |
66 | --disable-debug \ |
67 | --disable-gtk-doc \ |
68 | --enable-network \ |
69 | --enable-serial \ |
70 | --enable-input \ |
71 | --enable-audio \ |
72 | --enable-service \ |
73 | --enable-gstreamer \ |
74 | --enable-alsa \ |
75 | --enable-usb \ |
76 | --enable-netlink \ |
77 | --enable-tools \ |
78 | --enable-bccmd \ |
79 | --enable-hid2hci \ |
80 | --enable-dfutool \ |
81 | --disable-hidd \ |
82 | --disable-pand \ |
83 | --disable-dund \ |
84 | --enable-cups \ |
85 | --disable-test \ |
86 | --enable-manpages \ |
87 | --enable-configfiles \ |
88 | --disable-initscripts \ |
89 | --disable-pcmciarules \ |
90 | || die |
91 | |
92 | mmake || die |
93 | } |
94 | |
95 | src_install() |
96 | { |
97 | cd ${SRCDIR} |
98 | |
99 | mmake DESTDIR=${BINDIR} install || die |
100 | |
101 | # initscript |
102 | minstallrc bluetoothd.rc bluetoothd || die |
103 | minstallconf bluetoothd.confd bluetoothd || die |
104 | |
105 | # udev rules |
106 | minstalludevrule udev-bluetooth.rules 70-bluetooth.rules || die |
107 | minstalludevrule scripts/bluetooth-serial.rules 70-bluetooth-pcmcia.rules || die |
108 | minstalludevrule scripts/bluetooth-hid2hci.rules 70-bluetooth-hid2hci.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 | if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
125 | then |
126 | # reload udev-rules |
127 | udevadm control --reload-rules && udevadm trigger |
128 | fi |
129 | |
130 | # reload dbus |
131 | mreloadservice dbus |
132 | |
133 | # start bluetooth service |
134 | mstartservice bluetoothd |
135 | } |
136 | |
137 | postremove() |
138 | { |
139 | # stop bluetooth service |
140 | mstopservice bluetoothd |
141 | |
142 | # reload dbus |
143 | mreloadservice dbus |
144 | } |