Contents of /branches/magellan-next/extras/bluez/bluez-4.96-r1.smage2
Parent Directory | Revision Log
Revision 9340 -
(show annotations)
(download)
Sun Nov 27 15:06:01 2011 UTC (12 years, 9 months ago) by niro
File size: 3002 byte(s)
Sun Nov 27 15:06:01 2011 UTC (12 years, 9 months ago) by niro
File size: 3002 byte(s)
auto added: ver bump to 4.96-r1
1 | # $Id$ |
2 | |
3 | PNAME="bluez" |
4 | PVER="4.96" |
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}/udev-bluetooth.rules |
36 | mirror://${PNAME}/udev-bluetooth.sh |
37 | mirror://${PNAME}/${PNAME}-4.56-as-needed.patch |
38 | mirror://${PNAME}/${PNAME}-4.56-cups-location.patch |
39 | ) |
40 | |
41 | UP2DATE="updatecmd 'http://www.kernel.org/pub/linux/bluetooth/?C=M;O=A' | grep ${PNAME}-[0-9] | lasttarball gz" |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | cd ${SRCDIR} |
47 | |
48 | # fix linking issues |
49 | mpatch ${PNAME}-4.56-as-needed.patch || die |
50 | |
51 | # fix cups location, needed for multilib systems |
52 | mpatch ${PNAME}-4.56-cups-location.patch || die |
53 | |
54 | # rebuild configure |
55 | autoreconf --install --force --verbose || die |
56 | } |
57 | |
58 | src_compile() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | mconfigure \ |
63 | --localstatedir=/var \ |
64 | --disable-debug \ |
65 | --disable-gtk-doc \ |
66 | --enable-network \ |
67 | --enable-serial \ |
68 | --enable-input \ |
69 | --enable-audio \ |
70 | --enable-service \ |
71 | --enable-gstreamer \ |
72 | --enable-alsa \ |
73 | --enable-usb \ |
74 | --enable-netlink \ |
75 | --enable-tools \ |
76 | --enable-bccmd \ |
77 | --enable-hid2hci \ |
78 | --enable-dfutool \ |
79 | --disable-hidd \ |
80 | --disable-pand \ |
81 | --disable-dund \ |
82 | --enable-cups \ |
83 | --disable-test \ |
84 | --enable-manpages \ |
85 | --enable-configfiles \ |
86 | --disable-initscripts \ |
87 | --disable-pcmciarules \ |
88 | || die |
89 | |
90 | mmake || die |
91 | } |
92 | |
93 | src_install() |
94 | { |
95 | cd ${SRCDIR} |
96 | |
97 | mmake DESTDIR=${BINDIR} install || die |
98 | |
99 | # udev rules |
100 | minstalludevrule udev-bluetooth.rules 70-bluetooth.rules || die |
101 | minstalludevrule scripts/bluetooth-serial.rules 70-bluetooth-pcmcia.rules || die |
102 | minstalludevrule scripts/bluetooth-hid2hci.rules 70-bluetooth-hid2hci.rules || die |
103 | # udev helper |
104 | minstalludevhelper udev-bluetooth.sh bluetooth.sh || die |
105 | minstalludevhelper scripts/bluetooth_serial || die |
106 | |
107 | # config |
108 | minstalldir /etc/bluetooth || die |
109 | minstallfile input/input.conf /etc/bluetooth || die |
110 | minstallfile audio/audio.conf /etc/bluetooth || die |
111 | minstallfile network/network.conf /etc/bluetooth || die |
112 | |
113 | minstalldocs AUTHORS ChangeLog README || die |
114 | } |
115 | |
116 | postinstall() |
117 | { |
118 | if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
119 | then |
120 | # reload udev-rules |
121 | udevadm control --reload-rules && udevadm trigger |
122 | fi |
123 | |
124 | # reload dbus |
125 | mreloadunit dbus.service |
126 | |
127 | # start bluetooth service |
128 | mstartunit bluetooth.service |
129 | } |
130 | |
131 | postremove() |
132 | { |
133 | # stop bluetooth service |
134 | mstopunit bluetooth.service |
135 | |
136 | # reload dbus |
137 | mreloadunit dbus.service |
138 | } |