wok-current annotate bluez/receipt @ rev 15967

glib: an attemp to cross compile it to ARM
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 24 17:36:28 2014 +0100 (2014-02-24)
parents 999d29597a59
children a5b865e166cd
rev   line source
pankso@4357 1 # SliTaz package receipt.
pankso@4357 2
pankso@4357 3 PACKAGE="bluez"
domcox@14369 4 VERSION="4.101"
pankso@4357 5 CATEGORY="system-tools"
pankso@4357 6 SHORT_DESC="Bluetooth protocol stack."
pankso@4357 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
slaxemulator@7715 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@4357 10 WEB_SITE="http://www.bluez.org/"
slaxemulator@11015 11 #WGET_URL="http://www.kernel.org/pub/linux/bluetooth/$TARBALL"
slaxemulator@11015 12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/bluetooth/$TARBALL"
jozee@4932 13 TAGS="bluetooth"
pankso@4357 14
domcox@14369 15 DEPENDS="linux-bluetooth alsa-lib glib dbus pygobject dbus-python"
pascal@14375 16 BUILD_DEPENDS="alsa-lib-dev dbus-dev glib-dev libusb-dev pkg-config libusb-compat"
domcox@14369 17
pankso@4357 18 # Rules to configure and make the package.
jozee@5076 19
pankso@4357 20 compile_rules()
pankso@4357 21 {
pankso@4357 22 cd $src
pascal@14375 23 sed -i 's/NEED_USB/xx&/' tools/*.c
pankso@4357 24 ./configure \
pankso@4357 25 --prefix=/usr \
pankso@4357 26 --sysconfdir=/etc \
pankso@4357 27 --localstatedir=/var \
domcox@14369 28 --libexecdir=/lib \
pankso@4357 29 --mandir=/usr/share/man \
domcox@14369 30 --enable-bccmd \
domcox@14369 31 --enable-dfutool \
domcox@14369 32 --enable-dund \
jozee@5076 33 --enable-hid2hci \
jozee@5076 34 --enable-hidd \
domcox@14369 35 --enable-pand \
domcox@14369 36 --enable-usb \
domcox@14369 37 --enable-cups \
domcox@14369 38 --enable-tools \
domcox@14369 39 --enable-wiimote \
domcox@14369 40 --disable-test \
domcox@14369 41 --without-systemdunitdir \
pankso@4357 42 $CONFIGURE_ARGS &&
pankso@4357 43 make &&
slaxemulator@10990 44 make DESTDIR=$DESTDIR install
pankso@4357 45 }
pankso@4357 46
pankso@4357 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4357 48 genpkg_rules()
pankso@4357 49 {
jozee@5077 50 mkdir -p $fs/usr/lib/alsa-lib
pascal@15002 51 cp -a $install/usr/bin $fs/usr
pascal@15002 52 cp -a $install/usr/sbin $fs/usr
pascal@15002 53 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15002 54 cp -a $install/usr/lib/alsa-lib/*.so* $fs/usr/lib/alsa-lib
pascal@15002 55 cp -a $install/usr/lib/bluetooth $fs/usr/lib
pascal@15002 56 cp -a $install/usr/lib/cups $fs/usr/lib
pascal@15002 57 cp -a $install/etc $fs
pascal@15002 58 cp -a $install/var $fs
domcox@14369 59
jozee@5076 60 #some extra tools and config files
jozee@5076 61 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent
jozee@5076 62 cp $src/audio/audio.conf $fs/etc/bluetooth
pankso@4357 63 }