Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2038 - (hide annotations) (download)
Fri Jun 12 17:19:54 2009 UTC (14 years, 11 months ago) by niro
File size: 3141 byte(s)
-fixed dependecies
1 niro 2034 # $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 niro 2035 cd ${SRCDIR}
99 niro 2034
100     mmake DESTDIR=${BINDIR} install || die
101    
102     # initscript
103     minstallrc bluetoothd.rc bluetoothd || die
104 niro 2036 minstallconf bluetoothd.confd bluetoothd || die
105 niro 2034
106     # udev rules
107     minstalludevrule udev-bluetooth.rules 70-bluetooth.rules || die
108 niro 2037 minstalludevrule scripts/bluetooth-serial.rules 70-bluetooth-pcmcia.rules || die
109     minstalludevrule scripts/bluetooth-hid2hci.rules 70-bluetooth-hid2hci.rules || die
110 niro 2034 # 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 niro 2038 if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
126     then
127     # reload udev-rules
128     udevadm control --reload-rules && udevadm trigger
129     fi
130 niro 2034
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