Update bluez-libs to 3.36 (#3765)
[openwrt/svn-archive/archive.git] / libs / bluez-libs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bluez-libs
12 PKG_VERSION:=3.36
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
17 PKG_MD5SUM:=8c2ca546c0e7bb73dbd0e906fce7f6b1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/bluez-libs
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Bluetooth library
25 URL:=http://www.bluez.org/
26 endef
27
28 CONFIGURE_ARGS += \
29 --enable-shared \
30 --enable-static \
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
35 all install
36 endef
37
38 define Build/InstallDev
39 mkdir -p $(1)/usr/include/bluetooth
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(1)/usr/include/bluetooth
41 mkdir -p $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(1)/usr/lib/
43 mkdir -p $(1)/usr/lib/pkgconfig
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/bluez.pc $(1)/usr/lib/pkgconfig/
45 endef
46
47 define Package/bluez-libs/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,bluez-libs))