debian swirl logo

Back to the packages list bluez

#!/usr/bin/make -f
# build rules for bluez

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

LDFLAGS += -Wl,--as-needed

DEB_DH_INSTALLINIT_ARGS = "--name=bluetooth"

# Workaround a bug in cdbs, which doesn't run dh_install and dh_systemd
# in the correct order, by pointing dh_systemd_enable and dh_systemd_start
# at the uninstalled service file.
# Once the bug #715504 in cdbs has been fixed, this workaround should be
# removed again.
DEB_DH_SYSTEMD_ENABLE_ARGS_bluez = src/bluetooth.service
DEB_DH_SYSTEMD_START_ARGS_bluez = src/bluetooth.service

DEB_CONFIGURE_EXTRA_FLAGS := \
                             --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                             --enable-static \
                             --disable-hal \
                             --enable-sap \
                             --enable-health \
                             --enable-pnat \
                             --enable-gstreamer \
                             --enable-alsa \
                             --enable-usb \
                             --enable-tools \
                             --enable-bccmd \
                             --enable-pcmcia \
                             --enable-hid2hci \
                             --enable-dfutool \
                             --enable-hidd \
                             --enable-pand \
                             --enable-dund \
                             --enable-cups \
                             --enable-test \
                             --enable-datafiles \
                             --enable-debug \
                             --enable-dbusoob \
                             --enable-wiimote \
                             --enable-gatt \
                             --with-systemdunitdir=/lib/systemd/system

DEB_DESTDIR := $(CURDIR)/debian/tmp
# for debug pakcages
DEB_DBG_PACKAGES = bluez-dbg libbluetooth3-dbg

TEST_PROGRAM_LIST = simple-agent simple-service test-adapter test-audio test-device \
		test-discovery test-input test-manager test-network test-serial \
		test-service test-telephony

install/bluez::
		install -D -m 0755 $(CURDIR)/test/agent \
			$(CURDIR)/debian/bluez/usr/bin/bluetooth-agent
		for d in $(TEST_PROGRAM_LIST) ; do \
			install -D -m 0755 $(CURDIR)/test/$$d \
				$(CURDIR)/debian/bluez/usr/bin/bluez-$$d ; \
		done

		install -D -m 0644 $(CURDIR)/debian/README.examples \
			$(CURDIR)/debian/bluez/usr/share/doc/bluez/examples/README

binary-install/bluez-gstreamer::
	LD_LIBRARY_PATH= "$(CURDIR)/debian/tmp/usr/lib:$(LD_LIBRARY_PATH)" \
			dh_gstscancodecs -pbluez-gstreamer

binary-install/bluez::
		install -D -m 0644 $(CURDIR)/debian/bluetooth-dbus.conf \
			$(CURDIR)/debian/bluez/etc/dbus-1/system.d/bluetooth.conf

Builds:

bluetooth
bluetooth support
bluez-alsa
bluetooth alsa support
bluez-audio
transitional package
bluez
bluetooth tools and daemons
bluez-compat
bluez 3.x compatibility binaries
bluez-cups
bluetooth printer driver for cups
bluez-dbg
bluetooth tools and daemons (with debugging symbols)
bluez-gstreamer
bluetooth gstreamer support
bluez-pcmcia-support
pcmcia support files for bluez 2.0 bluetooth tools
bluez-utils
transitional package
libbluetooth3-dbg
library to use the bluez linux bluetooth stack with debugging symbols
libbluetooth3
library to use the bluez linux bluetooth stack
libbluetooth-dev
development files for using the bluez linux bluetooth library