Annotation of /trunk/extras/bluez/bluez-4.56-r1.smage2
Parent Directory | Revision Log
Revision 3751 -
(hide annotations)
(download)
Tue Nov 3 14:06:02 2009 UTC (14 years, 10 months ago) by niro
File size: 3140 byte(s)
Tue Nov 3 14:06:02 2009 UTC (14 years, 10 months ago) by niro
File size: 3140 byte(s)
auto added: ver bump to 4.56-r1
1 | niro | 3751 | # $Id$ |
2 | |||
3 | PNAME="bluez" | ||
4 | PVER="4.56" | ||
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.22 | ||
14 | >= dev-libs/libusb-0.1.12 | ||
15 | >= dev-libs/libnl-1.1 | ||
16 | >= media-libs/alsa-lib-1.0.21 | ||
17 | >= media-libs/gstreamer-0.10.25 | ||
18 | >= media-libs/gst-plugins-base-0.10.25 | ||
19 | >= media-libs/libsndfile-1.0.20 | ||
20 | >= net-print/cups-1.4 | ||
21 | >= sys-fs/udev-146 | ||
22 | >= sys-apps/dbus-1.3 | ||
23 | >= sys-libs/pam-1.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 ${SRCDIR} | ||
99 | |||
100 | mmake DESTDIR=${BINDIR} install || die | ||
101 | |||
102 | # initscript | ||
103 | minstallrc bluetoothd.rc bluetoothd || die | ||
104 | minstallconf bluetoothd.confd bluetoothd || die | ||
105 | |||
106 | # udev rules | ||
107 | minstalludevrule udev-bluetooth.rules 70-bluetooth.rules || die | ||
108 | minstalludevrule scripts/bluetooth-serial.rules 70-bluetooth-pcmcia.rules || die | ||
109 | minstalludevrule scripts/bluetooth-hid2hci.rules 70-bluetooth-hid2hci.rules || die | ||
110 | # udev helper | ||
111 | minstalludevhelper udev-bluetooth.sh bluetooth.sh || die | ||
112 | minstalludevhelper scripts/bluetooth_serial || die | ||
113 | |||
114 | # config | ||
115 | minstalldir /etc/bluetooth || die | ||
116 | minstallfile input/input.conf /etc/bluetooth || die | ||
117 | minstallfile audio/audio.conf /etc/bluetooth || die | ||
118 | minstallfile network/network.conf /etc/bluetooth || die | ||
119 | |||
120 | minstalldocs AUTHORS ChangeLog README || die | ||
121 | } | ||
122 | |||
123 | postinstall() | ||
124 | { | ||
125 | if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
126 | then | ||
127 | # reload udev-rules | ||
128 | udevadm control --reload-rules && udevadm trigger | ||
129 | fi | ||
130 | |||
131 | # reload dbus | ||
132 | mreloadservice dbus | ||
133 | |||
134 | # start bluetooth service | ||
135 | mstartservice bluetoothd | ||
136 | } | ||
137 | |||
138 | postremove() | ||
139 | { | ||
140 | # stop bluetooth service | ||
141 | mstopservice bluetoothd | ||
142 | |||
143 | # reload dbus | ||
144 | mreloadservice dbus | ||
145 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |