fix broken dependency
[openadk.git] / package / bluez / Makefile
blob406dff3c528a955a3d4c4fa281c0cac271f7fcdf
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 ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= bluez
7 PKG_VERSION:= 5.19
8 PKG_RELEASE:= 1
9 PKG_HASH:= 12778f3b66e71eec50eeb2e652de94a2578f33b8c8bd57c981fa00adab524c8a
10 PKG_DESCR:= bluetooth applications
11 PKG_SECTION:= net/wifi
12 PKG_DEPENDS:= glib dbus libreadline
13 PKG_BUILDDEP:= glib dbus readline
14 PKG_URL:= http://www.bluez.org/
15 PKG_SITES:= http://mirror.anl.gov/pub/linux/bluetooth/
17 include ${ADK_TOPDIR}/mk/package.mk
19 $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
21 TARGET_LDFLAGS+= -lncurses
23 ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
24 XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
25 endif
27 ifeq ($(ADK_TARGET_USE_PIE),y)
28 CONFIGURE_ARGS+= --enable-pie
29 else
30 CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
31 CONFIGURE_ARGS+= --disable-pie
32 endif
34 CONFIGURE_ARGS+= --enable-tools \
35 --disable-udev \
36 --disable-test \
37 --disable-systemd \
38 --disable-obex \
39 --disable-cups
41 bluez-install:
42 ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
43 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
44 ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
45 ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
46 $(INSTALL_DATA) ./files/main.conf \
47 ${IDIR_BLUEZ}/etc/bluetooth
48 $(INSTALL_DATA) ./files/bluetooth.conf \
49 $(IDIR_BLUEZ)/etc/dbus-1/system.d
51 include ${ADK_TOPDIR}/mk/pkg-bottom.mk