2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://bluez.sourceforge.net
/download
17 PKG_MD5SUM
:=8c2ca546c0e7bb73dbd0e906fce7f6b1
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/bluez-libs
24 TITLE
:=Bluetooth library
25 URL
:=http
://www.bluez.org
/
32 TARGET_CFLAGS
+= $(FPIC
)
35 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 DESTDIR
="$(PKG_INSTALL_DIR)" \
40 define Build
/InstallDev
41 mkdir
-p
$(1)/usr
/include/bluetooth
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/bluetooth
/*.h
$(1)/usr
/include/bluetooth
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*} $(1)/usr
/lib
/
45 mkdir
-p
$(1)/usr
/lib
/pkgconfig
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/bluez.
pc $(1)/usr
/lib
/pkgconfig
/
49 define Package
/bluez-libs
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.so.
* $(1)/usr
/lib
/
54 $(eval
$(call BuildPackage
,bluez-libs
))