3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=d0ba50e251ae1e7f2c09024facde8e40
10 PKG_SOURCE_URL
:=http
://bluez.sourceforge.net
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,BLUEZ_LIBS
,bluez-libs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.source
: $(DL_DIR
)/$(PKG_SOURCE
)
22 zcat
$(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
23 touch
$(BLUEZLIBS_DIR
)/.source
25 $(PKG_BUILD_DIR
)/.configured
:
26 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
29 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
30 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
49 $(DISABLE_LARGEFILE
) \
57 $(PKG_BUILD_DIR
)/.built
:
58 rm -rf
$(PKG_INSTALL_DIR
)
59 mkdir
-p
$(PKG_INSTALL_DIR
)
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 install -d
-m0755
$(IDIR_BLUEZ_LIBS
)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.so.
* $(IDIR_BLUEZ_LIBS
)/usr
/lib
/
68 $(RSTRIP
) $(IDIR_BLUEZ_LIBS
)
69 $(IPKG_BUILD
) $(IDIR_BLUEZ_LIBS
) $(PACKAGE_DIR
)
71 $(STAGING_DIR
)/usr
/lib
/libbluetooth.so
: $(PKG_BUILD_DIR
)/.built
72 mkdir
-p
$(STAGING_DIR
)/usr
/include/bluetooth
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/bluetooth
/*.h
$(STAGING_DIR
)/usr
/include/bluetooth
74 mkdir
-p
$(STAGING_DIR
)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
77 install-dev
: $(STAGING_DIR
)/usr
/lib
/libbluetooth.so
80 rm -rf
$(STAGING_DIR
)/usr
/include/bluetooth
81 rm -rf
$(STAGING_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*}
83 compile-targets
: install-dev
84 clean-targets
: uninstall-dev