avr32 workarounds
[openadk.git] / package / bluez / Makefile
bloba4fa983e3cb94c09e861c24d83563e11451e37c2
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${TOPDIR}/rules.mk
6 PKG_NAME:= bluez
7 PKG_VERSION:= 4.96
8 PKG_RELEASE:= 1
9 PKG_MD5SUM:= 296111afac49e3f9035085ac14daf518
10 PKG_DESCR:= bluetooth libraries and applications
11 PKG_SECTION:= bluetooth
12 PKG_DEPENDS:= kmod-bt libusb glib dbus
13 PKG_BUILDDEP:= libusb dbus glib libusb-compat
14 PKG_URL:= http://www.bluez.org/
15 PKG_SITES:= http://mirror.anl.gov/pub/linux/bluetooth/
17 PKG_ARCH_DEPENDS:= !avr32
19 include ${TOPDIR}/mk/package.mk
21 $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 ifeq ($(ADK_STATIC),y)
24 XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
25 endif
26 TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
27 CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
28 CONFIGURE_ARGS+= --enable-tools \
29 --enable-alsa \
30 --enable-usb \
31 --enable-bccmd \
32 --enable-hidd \
33 --enable-pand \
34 --enable-dund \
35 --enable-netlink \
36 --disable-pie \
37 --disable-cups
39 bluez-install:
40 ifneq ($(ADK_STATIC),y)
41 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
42 ${CP} ${WRKINST}/usr/lib/libbluetooth.so* ${IDIR_BLUEZ}/usr/lib
43 endif
44 ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
45 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
46 ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
47 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
48 ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin
49 ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
50 $(INSTALL_DATA) ./files/main.conf \
51 ${IDIR_BLUEZ}/etc/bluetooth
52 $(INSTALL_DATA) ./files/bluetooth.conf \
53 $(IDIR_BLUEZ)/etc/dbus-1/system.d
55 include ${TOPDIR}/mk/pkg-bottom.mk