summaryrefslogtreecommitdiff
path: root/package/bluez/Makefile
blob: 406dff3c528a955a3d4c4fa281c0cac271f7fcdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		bluez
PKG_VERSION:=		5.19
PKG_RELEASE:=		1
PKG_HASH:=		12778f3b66e71eec50eeb2e652de94a2578f33b8c8bd57c981fa00adab524c8a
PKG_DESCR:=		bluetooth applications
PKG_SECTION:=		net/wifi
PKG_DEPENDS:=		glib dbus libreadline
PKG_BUILDDEP:=		glib dbus readline
PKG_URL:=		http://www.bluez.org/
PKG_SITES:=		http://mirror.anl.gov/pub/linux/bluetooth/

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

TARGET_LDFLAGS+=	-lncurses

ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
XAKE_FLAGS+=		CCLD="$(TARGET_CC) -all-static -pthread"
endif

ifeq ($(ADK_TARGET_USE_PIE),y)
CONFIGURE_ARGS+=	--enable-pie
else
CONFIGURE_ENV+=		ac_cv_prog_cc_pie=no
CONFIGURE_ARGS+=	--disable-pie
endif

CONFIGURE_ARGS+=	--enable-tools \
			--disable-udev \
			--disable-test \
			--disable-systemd \
			--disable-obex \
			--disable-cups

bluez-install:
	${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
	${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
	${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
	${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
	$(INSTALL_DATA) ./files/main.conf \
		${IDIR_BLUEZ}/etc/bluetooth
	$(INSTALL_DATA) ./files/bluetooth.conf \
		$(IDIR_BLUEZ)/etc/dbus-1/system.d

include ${ADK_TOPDIR}/mk/pkg-bottom.mk